Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
bmw-ocr
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
9e92729e
authored
2022-05-12 16:12:30 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix myadmin
1 parent
04358547
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
src/apps/urls.py
src/settings/__init__.py
src/apps/urls.py
View file @
9e92729
...
...
@@ -13,12 +13,12 @@ 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.contrib
import
admin
from
apps.admin
import
my_admin_site
from
django.urls
import
path
,
include
urlpatterns
=
[
#
path('admin/', admin.site.urls),
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
'myadmin/'
,
my_admin_site
.
urls
),
path
(
r'api/user/'
,
include
(
'apps.account.urls'
)),
path
(
r'api/create/'
,
include
(
'apps.doc.create_urls'
)),
...
...
src/settings/__init__.py
View file @
9e92729
...
...
@@ -35,7 +35,7 @@ ALLOWED_HOSTS = conf.ALLOWED_HOSTS
# Application definition
INSTALLED_APPS
=
[
#
'django.contrib.admin',
'django.contrib.admin'
,
'apps.apps.MyAdminConfig'
,
'django.contrib.auth'
,
'django.contrib.contenttypes'
,
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment