fix myadmin
Showing
2 changed files
with
3 additions
and
3 deletions
... | @@ -13,12 +13,12 @@ Including another URLconf | ... | @@ -13,12 +13,12 @@ Including another URLconf |
13 | 1. Import the include() function: from django.urls import include, path | 13 | 1. Import the include() function: from django.urls import include, path |
14 | 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) | 14 | 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) |
15 | """ | 15 | """ |
16 | # from django.contrib import admin | 16 | from django.contrib import admin |
17 | from apps.admin import my_admin_site | 17 | from apps.admin import my_admin_site |
18 | from django.urls import path, include | 18 | from django.urls import path, include |
19 | 19 | ||
20 | urlpatterns = [ | 20 | urlpatterns = [ |
21 | # path('admin/', admin.site.urls), | 21 | path('admin/', admin.site.urls), |
22 | path('myadmin/', my_admin_site.urls), | 22 | path('myadmin/', my_admin_site.urls), |
23 | path(r'api/user/', include('apps.account.urls')), | 23 | path(r'api/user/', include('apps.account.urls')), |
24 | path(r'api/create/', include('apps.doc.create_urls')), | 24 | path(r'api/create/', include('apps.doc.create_urls')), | ... | ... |
... | @@ -35,7 +35,7 @@ ALLOWED_HOSTS = conf.ALLOWED_HOSTS | ... | @@ -35,7 +35,7 @@ ALLOWED_HOSTS = conf.ALLOWED_HOSTS |
35 | # Application definition | 35 | # Application definition |
36 | 36 | ||
37 | INSTALLED_APPS = [ | 37 | INSTALLED_APPS = [ |
38 | # 'django.contrib.admin', | 38 | 'django.contrib.admin', |
39 | 'apps.apps.MyAdminConfig', | 39 | 'apps.apps.MyAdminConfig', |
40 | 'django.contrib.auth', | 40 | 'django.contrib.auth', |
41 | 'django.contrib.contenttypes', | 41 | 'django.contrib.contenttypes', | ... | ... |
-
Please register or sign in to post a comment