Make migrations, template stuff

This commit is contained in:
2021-02-14 12:48:12 +00:00
parent 5874c5299b
commit 82ebef8465
7 changed files with 107 additions and 3 deletions

View File

@@ -65,7 +65,7 @@ ROOT_URLCONF = 'core.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'DIRS': ['templates'],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [

View File

@@ -2,7 +2,10 @@ from django.contrib import admin
from django.urls import path
from django.conf.urls import include
from . import views
urlpatterns = [
path('', views.Index.as_view(), name='index'),
path('user/', include('users.urls')),
path('vehicles/', include('vehicles.urls')),
path('admin/', admin.site.urls),

5
core/views.py Normal file
View File

@@ -0,0 +1,5 @@
from django.views import generic
class Index(generic.TemplateView):
template_name = 'index.html'