diff --git a/roofis2/core/settings.py b/roofis2/core/settings.py index b851c81..c3e59da 100644 --- a/roofis2/core/settings.py +++ b/roofis2/core/settings.py @@ -38,6 +38,7 @@ INSTALLED_APPS = [ 'django.contrib.staticfiles', 'django_extensions', 'rest_framework', + 'roomservice' ] MIDDLEWARE = [ diff --git a/roofis2/core/urls.py b/roofis2/core/urls.py index 833d046..b25e30b 100644 --- a/roofis2/core/urls.py +++ b/roofis2/core/urls.py @@ -1,4 +1,4 @@ -"""respool URL Configuration +"""roofis2 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ @@ -21,6 +21,7 @@ from rest_framework.permissions import AllowAny urlpatterns = [ path('admin/', admin.site.urls), + path('', include('roomservice.urls')), # APIs # path('api/', include('respool.api.urls')), diff --git a/roofis2/roomservice/urls.py b/roofis2/roomservice/urls.py new file mode 100644 index 0000000..7901aef --- /dev/null +++ b/roofis2/roomservice/urls.py @@ -0,0 +1,7 @@ +from django.urls import path +from . import views + +app_name = 'roomservice' +urlpatterns = [ + path('', views.home, name='home'), +] diff --git a/roofis2/roomservice/views.py b/roofis2/roomservice/views.py index 91ea44a..670e72f 100644 --- a/roofis2/roomservice/views.py +++ b/roofis2/roomservice/views.py @@ -1,3 +1,6 @@ from django.shortcuts import render + # Create your views here. +def home(request): + return render(request, 'base.jinja', {}) diff --git a/roofis2/templates/base.jinja b/roofis2/templates/base.jinja index 21f7c2a..e60f4d5 100644 --- a/roofis2/templates/base.jinja +++ b/roofis2/templates/base.jinja @@ -26,33 +26,6 @@ -{#
#}