diff --git a/back/__init__.py b/back/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/back/backend/urls.py b/back/backend/urls.py new file mode 100644 index 0000000..2c4b95d --- /dev/null +++ b/back/backend/urls.py @@ -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('') +] diff --git a/back/db.sqlite3 b/back/db.sqlite3 index b6fecf6..03e9140 100644 Binary files a/back/db.sqlite3 and b/back/db.sqlite3 differ diff --git a/back/reimbursinator/settings.py b/back/reimbursinator/settings.py index 56718b2..7b526da 100644 --- a/back/reimbursinator/settings.py +++ b/back/reimbursinator/settings.py @@ -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 = [ diff --git a/back/reimbursinator/urls.py b/back/reimbursinator/urls.py index b11d0df..d5ef412 100644 --- a/back/reimbursinator/urls.py +++ b/back/reimbursinator/urls.py @@ -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')) ]