diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 419cab9..548c4a3 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -3,6 +3,9 @@
+
+
+
@@ -15,74 +18,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
@@ -153,7 +94,6 @@
-
@@ -175,12 +115,13 @@
-
+
+
@@ -197,14 +138,16 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
-
-
+
+
-
-
+
-
+
+
@@ -298,6 +249,34 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -312,7 +291,6 @@
-
@@ -327,13 +305,6 @@
-
-
-
-
-
-
-
@@ -350,6 +321,7 @@
+
@@ -357,33 +329,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -404,24 +349,94 @@
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
diff --git a/apps/__pycache__/__init__.cpython-36.pyc b/apps/__pycache__/__init__.cpython-36.pyc
index 2bf8b37..89ccac7 100644
Binary files a/apps/__pycache__/__init__.cpython-36.pyc and b/apps/__pycache__/__init__.cpython-36.pyc differ
diff --git a/apps/system/__pycache__/__init__.cpython-36.pyc b/apps/system/__pycache__/__init__.cpython-36.pyc
index cde341e..89c3481 100644
Binary files a/apps/system/__pycache__/__init__.cpython-36.pyc and b/apps/system/__pycache__/__init__.cpython-36.pyc differ
diff --git a/apps/system/__pycache__/admin.cpython-36.pyc b/apps/system/__pycache__/admin.cpython-36.pyc
index 16f30ce..051b949 100644
Binary files a/apps/system/__pycache__/admin.cpython-36.pyc and b/apps/system/__pycache__/admin.cpython-36.pyc differ
diff --git a/apps/system/__pycache__/apps.cpython-36.pyc b/apps/system/__pycache__/apps.cpython-36.pyc
index db16f95..7dda6be 100644
Binary files a/apps/system/__pycache__/apps.cpython-36.pyc and b/apps/system/__pycache__/apps.cpython-36.pyc differ
diff --git a/apps/system/__pycache__/forms.cpython-36.pyc b/apps/system/__pycache__/forms.cpython-36.pyc
index a3a0516..d78b7d1 100644
Binary files a/apps/system/__pycache__/forms.cpython-36.pyc and b/apps/system/__pycache__/forms.cpython-36.pyc differ
diff --git a/apps/system/__pycache__/mixin.cpython-36.pyc b/apps/system/__pycache__/mixin.cpython-36.pyc
index 2158f26..74730c0 100644
Binary files a/apps/system/__pycache__/mixin.cpython-36.pyc and b/apps/system/__pycache__/mixin.cpython-36.pyc differ
diff --git a/apps/system/__pycache__/models.cpython-36.pyc b/apps/system/__pycache__/models.cpython-36.pyc
index 1ac937f..e2c321e 100644
Binary files a/apps/system/__pycache__/models.cpython-36.pyc and b/apps/system/__pycache__/models.cpython-36.pyc differ
diff --git a/apps/system/__pycache__/urls.cpython-36.pyc b/apps/system/__pycache__/urls.cpython-36.pyc
new file mode 100644
index 0000000..28d2668
Binary files /dev/null and b/apps/system/__pycache__/urls.cpython-36.pyc differ
diff --git a/apps/system/__pycache__/views.cpython-36.pyc b/apps/system/__pycache__/views.cpython-36.pyc
new file mode 100644
index 0000000..5f29a67
Binary files /dev/null and b/apps/system/__pycache__/views.cpython-36.pyc differ
diff --git a/apps/system/__pycache__/views_user.cpython-36.pyc b/apps/system/__pycache__/views_user.cpython-36.pyc
index b237f4a..e719866 100644
Binary files a/apps/system/__pycache__/views_user.cpython-36.pyc and b/apps/system/__pycache__/views_user.cpython-36.pyc differ
diff --git a/apps/system/migrations/__pycache__/0001_initial.cpython-36.pyc b/apps/system/migrations/__pycache__/0001_initial.cpython-36.pyc
index 89ab794..1f69f03 100644
Binary files a/apps/system/migrations/__pycache__/0001_initial.cpython-36.pyc and b/apps/system/migrations/__pycache__/0001_initial.cpython-36.pyc differ
diff --git a/apps/system/migrations/__pycache__/__init__.cpython-36.pyc b/apps/system/migrations/__pycache__/__init__.cpython-36.pyc
index 82a4459..833e215 100644
Binary files a/apps/system/migrations/__pycache__/__init__.cpython-36.pyc and b/apps/system/migrations/__pycache__/__init__.cpython-36.pyc differ
diff --git a/apps/system/urls.py b/apps/system/urls.py
new file mode 100644
index 0000000..41e9a3c
--- /dev/null
+++ b/apps/system/urls.py
@@ -0,0 +1,9 @@
+from django.urls import path
+
+from .views import SystemView
+
+app_name = 'system'
+
+urlpatterns = [
+ path('', SystemView.as_view(), name='login'),
+]
diff --git a/apps/system/views.py b/apps/system/views.py
index 91ea44a..a2c097f 100644
--- a/apps/system/views.py
+++ b/apps/system/views.py
@@ -1,3 +1,11 @@
from django.shortcuts import render
+from django.views.generic.base import View
+
+from .mixin import LoginRequiredMixin
+
+
+class SystemView(LoginRequiredMixin, View):
+
+ def get(self, request):
+ return render(request, 'system/system_index.html')
-# Create your views here.
diff --git a/db.sqlite3 b/db.sqlite3
index 1c9ef1e..bb4186c 100644
Binary files a/db.sqlite3 and b/db.sqlite3 differ
diff --git a/sandboxMP/__pycache__/settings.cpython-36.pyc b/sandboxMP/__pycache__/settings.cpython-36.pyc
index 844f395..0b65aad 100644
Binary files a/sandboxMP/__pycache__/settings.cpython-36.pyc and b/sandboxMP/__pycache__/settings.cpython-36.pyc differ
diff --git a/sandboxMP/__pycache__/urls.cpython-36.pyc b/sandboxMP/__pycache__/urls.cpython-36.pyc
index bc5d2bb..07ad707 100644
Binary files a/sandboxMP/__pycache__/urls.cpython-36.pyc and b/sandboxMP/__pycache__/urls.cpython-36.pyc differ
diff --git a/sandboxMP/urls.py b/sandboxMP/urls.py
index 0f31823..d3ae5f7 100644
--- a/sandboxMP/urls.py
+++ b/sandboxMP/urls.py
@@ -14,18 +14,21 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
-from django.urls import path
+from django.urls import path, include
from django.conf import settings
from django.urls import re_path
from django.views.static import serve
from system.views_user import IndexView, LoginView, LogoutView
+
urlpatterns = [
path('admin/', admin.site.urls),
path('', IndexView.as_view(), name='index'),
path('login/', LoginView.as_view(), name='login'),
path('logout/', LogoutView.as_view(), name='logout'),
+ path('system/', include('system.urls', namespace='system')),
+
]
if settings.DEBUG:
diff --git a/templates/system/system_index.html b/templates/system/system_index.html
new file mode 100644
index 0000000..7120b27
--- /dev/null
+++ b/templates/system/system_index.html
@@ -0,0 +1,21 @@
+{% extends "base-left.html" %}
+{% load staticfiles %}
+
+
+{% block content %}
+
+
+
+ 系统管理首页:system_index,content是页面定义的主要区域,
+ 头部和底部内容以及导航栏都是通过模板继承的,之后的所有
+ 功能前端页面都是在content内进行编辑。
+
+
+
+
+{% endblock %}
+
+
+{% block javascripts %}
+
+{% endblock %}