Updating my code
This commit is contained in:
parent
567cae05d3
commit
82c9a5fc46
5 changed files with 18 additions and 3 deletions
0
back/__init__.py
Normal file
0
back/__init__.py
Normal file
9
back/backend/urls.py
Normal file
9
back/backend/urls.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
# from django.urls import path
|
||||
|
||||
from django.conf.urls import url, include
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^$', views.profile),
|
||||
# path('')
|
||||
]
|
BIN
back/db.sqlite3
BIN
back/db.sqlite3
Binary file not shown.
|
@ -25,18 +25,20 @@ SECRET_KEY = 'w*d2$rg#i88&6^9u2)jl0!4_)=_e1)0fxreofqzb(qxaw$3+$d'
|
|||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = True
|
||||
|
||||
ALLOWED_HOSTS = ['localhost','192.168.99.100']
|
||||
ALLOWED_HOSTS = ['localhost','192.168.99.100', '127.0.0.1']
|
||||
|
||||
|
||||
# Application definition
|
||||
|
||||
INSTALLED_APPS = [
|
||||
'django.contrib.admin',
|
||||
'django.contrib.admindocs',
|
||||
'django.contrib.auth',
|
||||
'django.contrib.contenttypes',
|
||||
'django.contrib.sessions',
|
||||
'django.contrib.messages',
|
||||
'django.contrib.staticfiles',
|
||||
'backend',
|
||||
]
|
||||
|
||||
MIDDLEWARE = [
|
||||
|
|
|
@ -14,8 +14,12 @@ Including another URLconf
|
|||
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
||||
"""
|
||||
from django.contrib import admin
|
||||
from django.conf.urls import url
|
||||
from django.conf.urls import url, include
|
||||
# from django.urls import path, include
|
||||
|
||||
urlpatterns = [
|
||||
url('admin/', admin.site.urls),
|
||||
# path('admin/', admin.site.urls),
|
||||
# path('username/reports/', include('backend.urls'))
|
||||
url(r'^admin/', admin.site.urls),
|
||||
url(r'^username/reports/', include('backend.urls'))
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue