initial commit

This commit is contained in:
wsvincent 2018-02-15 12:28:05 -05:00
commit 6f5167c24f
45 changed files with 763 additions and 0 deletions

0
pages/__init__.py Normal file
View file

3
pages/admin.py Normal file
View file

@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

5
pages/apps.py Normal file
View file

@ -0,0 +1,5 @@
from django.apps import AppConfig
class PagesConfig(AppConfig):
name = 'pages'

View file

3
pages/models.py Normal file
View file

@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

3
pages/tests.py Normal file
View file

@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

8
pages/urls.py Normal file
View 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
View 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'