Make migrations, template stuff
This commit is contained in:
@@ -65,7 +65,7 @@ ROOT_URLCONF = 'core.urls'
|
||||
TEMPLATES = [
|
||||
{
|
||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||
'DIRS': [],
|
||||
'DIRS': ['templates'],
|
||||
'APP_DIRS': True,
|
||||
'OPTIONS': {
|
||||
'context_processors': [
|
||||
|
||||
@@ -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
5
core/views.py
Normal file
@@ -0,0 +1,5 @@
|
||||
from django.views import generic
|
||||
|
||||
|
||||
class Index(generic.TemplateView):
|
||||
template_name = 'index.html'
|
||||
Reference in New Issue
Block a user