initial commit
This commit is contained in:
commit
6f5167c24f
45 changed files with 763 additions and 0 deletions
0
pages/__init__.py
Normal file
0
pages/__init__.py
Normal file
3
pages/admin.py
Normal file
3
pages/admin.py
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
5
pages/apps.py
Normal file
5
pages/apps.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class PagesConfig(AppConfig):
|
||||
name = 'pages'
|
||||
0
pages/migrations/__init__.py
Normal file
0
pages/migrations/__init__.py
Normal file
3
pages/models.py
Normal file
3
pages/models.py
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
3
pages/tests.py
Normal file
3
pages/tests.py
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
8
pages/urls.py
Normal file
8
pages/urls.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
from django.urls import path
|
||||
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
path('', views.HomePageView.as_view(), name='home'),
|
||||
path('about/', views.AboutPageView.as_view(), name='about'),
|
||||
]
|
||||
9
pages/views.py
Normal file
9
pages/views.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
from django.views.generic import TemplateView
|
||||
|
||||
|
||||
class HomePageView(TemplateView):
|
||||
template_name = 'pages/home.html'
|
||||
|
||||
|
||||
class AboutPageView(TemplateView):
|
||||
template_name = 'pages/about.html'
|
||||
Loading…
Add table
Add a link
Reference in a new issue