Updating my code

This commit is contained in:
Rupika 2019-01-19 22:29:25 -08:00
parent 567cae05d3
commit 82c9a5fc46
5 changed files with 18 additions and 3 deletions

0
back/__init__.py Normal file
View file

9
back/backend/urls.py Normal file
View 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('')
]

Binary file not shown.

View file

@ -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! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True DEBUG = True
ALLOWED_HOSTS = ['localhost','192.168.99.100'] ALLOWED_HOSTS = ['localhost','192.168.99.100', '127.0.0.1']
# Application definition # Application definition
INSTALLED_APPS = [ INSTALLED_APPS = [
'django.contrib.admin', 'django.contrib.admin',
'django.contrib.admindocs',
'django.contrib.auth', 'django.contrib.auth',
'django.contrib.contenttypes', 'django.contrib.contenttypes',
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'backend',
] ]
MIDDLEWARE = [ MIDDLEWARE = [

View file

@ -14,8 +14,12 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) 2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
""" """
from django.contrib import admin 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 = [ 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'))
] ]