Browse Source

引入mptt库<Pipfile>
新增mptt的引用<settings.py>

DYaiu 4 years ago
parent
commit
a661586030
2 changed files with 3 additions and 1 deletions
  1. 1 0
      Pipfile
  2. 2 1
      my_project/settings.py

+ 1 - 0
Pipfile

@@ -12,6 +12,7 @@ djangorestframework-bulk = "*"
 mysql = "*"
 mysqlclient = "*"
 django-filter = "*"
+django-mptt = "*"
 
 [requires]
 python_version = "3.7"

+ 2 - 1
my_project/settings.py

@@ -37,7 +37,8 @@ INSTALLED_APPS = [
     'django.contrib.staticfiles',
     'rest_framework',
     'django_filters',
-    'workreport'
+    'workreport',
+    'mptt'
 ]
 
 MIDDLEWARE = [