clone from upstream lithium project
This commit is contained in:
parent
6f5167c24f
commit
f946e4933a
56 changed files with 754 additions and 503 deletions
|
|
@ -2,4 +2,4 @@ from django.apps import AppConfig
|
|||
|
||||
|
||||
class PagesConfig(AppConfig):
|
||||
name = 'pages'
|
||||
name = "pages"
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
from django.urls import path
|
||||
|
||||
from . import views
|
||||
from .views import HomePageView, AboutPageView
|
||||
|
||||
urlpatterns = [
|
||||
path('', views.HomePageView.as_view(), name='home'),
|
||||
path('about/', views.AboutPageView.as_view(), name='about'),
|
||||
path("", HomePageView.as_view(), name="home"),
|
||||
path("about/", AboutPageView.as_view(), name="about"),
|
||||
]
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ from django.views.generic import TemplateView
|
|||
|
||||
|
||||
class HomePageView(TemplateView):
|
||||
template_name = 'pages/home.html'
|
||||
template_name = "pages/home.html"
|
||||
|
||||
|
||||
class AboutPageView(TemplateView):
|
||||
template_name = 'pages/about.html'
|
||||
template_name = "pages/about.html"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue