Add templates

This commit is contained in:
Jan Nowak 2022-06-09 14:52:42 +02:00
parent 6e0bc260d4
commit 1712349965
5 changed files with 16 additions and 1 deletions

View File

@ -37,6 +37,7 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'core.apps.CoreConfig',
]
MIDDLEWARE = [

View File

@ -14,8 +14,9 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('core.urls')),
]

View File

9
core/urls.py Normal file
View File

@ -0,0 +1,9 @@
from django.contrib import admin
from django.urls import path
from . import views
app_name = "menu"
urlpatterns = [
path('' , views.home, name="home"),
]

View File

@ -1,3 +1,7 @@
from django.shortcuts import render
# Create your views here.
def home(request):
return render(request, 'core/home.html')