diff --git a/fet2020/authentications/admin.py b/fet2020/authentications/admin.py index 4185d360..e69de29b 100644 --- a/fet2020/authentications/admin.py +++ b/fet2020/authentications/admin.py @@ -1,3 +0,0 @@ -# from django.contrib import admin - -# Register your models here. diff --git a/fet2020/authentications/models.py b/fet2020/authentications/models.py index 0b4331b3..e69de29b 100644 --- a/fet2020/authentications/models.py +++ b/fet2020/authentications/models.py @@ -1,3 +0,0 @@ -# from django.db import models - -# Create your models here. diff --git a/fet2020/authentications/tests.py b/fet2020/authentications/tests.py index a79ca8be..e69de29b 100644 --- a/fet2020/authentications/tests.py +++ b/fet2020/authentications/tests.py @@ -1,3 +0,0 @@ -# from django.test import TestCase - -# Create your tests here. diff --git a/fet2020/blackboard/tests.py b/fet2020/blackboard/tests.py index a79ca8be..e69de29b 100644 --- a/fet2020/blackboard/tests.py +++ b/fet2020/blackboard/tests.py @@ -1,3 +0,0 @@ -# from django.test import TestCase - -# Create your tests here. diff --git a/fet2020/fet2020/asgi.py b/fet2020/fet2020/asgi.py index e4d81b3e..be2e0c86 100644 --- a/fet2020/fet2020/asgi.py +++ b/fet2020/fet2020/asgi.py @@ -1,12 +1,3 @@ -""" -ASGI config for fet2020 project. - -It exposes the ASGI callable as a module-level variable named ``application``. - -For more information on this file, see -https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ -""" - import os from django.core.asgi import get_asgi_application diff --git a/fet2020/fet2020/settings.py b/fet2020/fet2020/settings.py index 312e7403..4b834e78 100644 --- a/fet2020/fet2020/settings.py +++ b/fet2020/fet2020/settings.py @@ -1,16 +1,3 @@ - -""" -Django settings for fet2020 project. - -Generated by 'django-admin startproject' using Django 3.0.5. - -For more information on this file, see -https://docs.djangoproject.com/en/3.0/topics/settings/ - -For the full list of settings and their values, see -https://docs.djangoproject.com/en/3.0/ref/settings/ -""" - import os import environ from urllib.parse import urljoin diff --git a/fet2020/fet2020/urls.py b/fet2020/fet2020/urls.py index f447a461..81de07ee 100644 --- a/fet2020/fet2020/urls.py +++ b/fet2020/fet2020/urls.py @@ -1,18 +1,3 @@ -"""test1 URL Configuration - -The `urlpatterns` list routes URLs to views. For more information please see: - https://docs.djangoproject.com/en/3.0/topics/http/urls/ -Examples: -Function views - 1. Add an import: from my_app import views - 2. Add a URL to urlpatterns: path('', views.home, name='home') -Class-based views - 1. Add an import: from other_app.views import Home - 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') -Including another URLconf - 1. Import the include() function: from django.urls import include, path - 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) -""" from django.contrib import admin from django.urls import path, include from django.conf.urls.static import static @@ -20,6 +5,7 @@ from django.conf import settings from django.views.generic import RedirectView from . import views from posts.views import PostViewSet +from members.urls import member_urlpatterns, jobs_urlpatterns from members.views import MemberViewSet, JobViewSet, JobGroupViewSet, JobMemberViewSet from rest_framework import routers @@ -41,6 +27,8 @@ urlpatterns = [ path('ckeditor/', include('ckeditor_uploader.urls')), path('api/', include(router.urls)), path('members/', include('members.urls'), name='members'), + path('jobs/', include(jobs_urlpatterns), name='jobs'), + path('member/', include(member_urlpatterns), name='member'), path('blackboard/', include('blackboard.urls'), name='blackboard'), path('tasks/', include('tasks.urls'), name='tasks'), ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) diff --git a/fet2020/fet2020/wsgi.py b/fet2020/fet2020/wsgi.py index a9913082..5d996e36 100644 --- a/fet2020/fet2020/wsgi.py +++ b/fet2020/fet2020/wsgi.py @@ -1,12 +1,3 @@ -""" -WSGI config for fet2020 project. - -It exposes the WSGI callable as a module-level variable named ``application``. - -For more information on this file, see -https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ -""" - import os from django.core.wsgi import get_wsgi_application diff --git a/fet2020/members/tests.py b/fet2020/members/tests.py index a79ca8be..e69de29b 100644 --- a/fet2020/members/tests.py +++ b/fet2020/members/tests.py @@ -1,3 +0,0 @@ -# from django.test import TestCase - -# Create your tests here. diff --git a/fet2020/members/urls.py b/fet2020/members/urls.py index ab861c0d..16753f25 100644 --- a/fet2020/members/urls.py +++ b/fet2020/members/urls.py @@ -6,6 +6,12 @@ from . import views urlpatterns = [ path('', views.index, name='members'), path('', views.members_view), - path('jobs/', views.jobs_view), - path('member/', views.profile_view, name='member'), +] + +member_urlpatterns = [ + path('', views.profile_view, name='member'), +] + +jobs_urlpatterns = [ + path('', views.jobs_view, name='jobs'), ] diff --git a/fet2020/posts/tests.py b/fet2020/posts/tests.py index a79ca8be..e69de29b 100644 --- a/fet2020/posts/tests.py +++ b/fet2020/posts/tests.py @@ -1,3 +0,0 @@ -# from django.test import TestCase - -# Create your tests here. diff --git a/fet2020/tasks/tests.py b/fet2020/tasks/tests.py index a79ca8be..e69de29b 100644 --- a/fet2020/tasks/tests.py +++ b/fet2020/tasks/tests.py @@ -1,3 +0,0 @@ -# from django.test import TestCase - -# Create your tests here. diff --git a/fet2020/templates/admin/documents/app_index.html b/fet2020/templates/admin/documents/app_index.html deleted file mode 100644 index d2d9d268..00000000 --- a/fet2020/templates/admin/documents/app_index.html +++ /dev/null @@ -1,7 +0,0 @@ -{% extends "admin/app_index.html" %} - -{% block sidebar %} -

Hello

-
  • asdf
- -{% endblock %} \ No newline at end of file diff --git a/fet2020/templates/admin/documents/change_list.html b/fet2020/templates/admin/documents/change_list.html deleted file mode 100644 index 4ef01650..00000000 --- a/fet2020/templates/admin/documents/change_list.html +++ /dev/null @@ -1,7 +0,0 @@ -{% extends "admin/change_list.html" %} - -{% block object-tools-items %} - -{{ block.super }} -
  • sdf
  • -{% endblock %} \ No newline at end of file diff --git a/fet2020/templates/admin/documents/preview.html b/fet2020/templates/admin/documents/preview.html deleted file mode 100644 index 8e44b01d..00000000 --- a/fet2020/templates/admin/documents/preview.html +++ /dev/null @@ -1,5 +0,0 @@ - -{% extends "admin/base_site.html" %} -{% block content %} -

    Preview

    -{% endblock %} \ No newline at end of file diff --git a/fet2020/templates/admin/index.html b/fet2020/templates/admin/index.html index 6d98ad89..e1b65301 100644 --- a/fet2020/templates/admin/index.html +++ b/fet2020/templates/admin/index.html @@ -1,7 +1 @@ {% extends "admin/index.html" %} -{% block content%} -
    -{{block.super}} -Hello -
    -{% endblock %} \ No newline at end of file diff --git a/fet2020/templates/layout.html b/fet2020/templates/layout.html index fc19a816..1fa7b960 100644 --- a/fet2020/templates/layout.html +++ b/fet2020/templates/layout.html @@ -48,19 +48,19 @@ footer {
    diff --git a/fet2020/templates/members/index.html b/fet2020/templates/members/index.html index 2465ef3b..331fdb9f 100644 --- a/fet2020/templates/members/index.html +++ b/fet2020/templates/members/index.html @@ -24,7 +24,7 @@ {% for job in pinned_job_groups %} @@ -32,7 +32,7 @@ {% for job in unpinned_job_groups %} diff --git a/fet2020/templates/members/partials/_member.html b/fet2020/templates/members/partials/_member.html index 57df88c5..1ed9d65d 100644 --- a/fet2020/templates/members/partials/_member.html +++ b/fet2020/templates/members/partials/_member.html @@ -1,5 +1,5 @@ {# only thumb and name of member #} - +