Add about and privacy pages

This commit is contained in:
Jason McBrayer 2018-05-26 13:28:13 -04:00
parent 722a5c73fd
commit 507c52bb96
2 changed files with 9 additions and 0 deletions

View File

@ -19,6 +19,8 @@ from brutaldon import views
urlpatterns = [ urlpatterns = [
path('admin/', admin.site.urls), path('admin/', admin.site.urls),
path('about', views.about, name='about'),
path('privacy', views.privacy, name='privacy'),
path('home/next/<int:next>', views.home, name='home_next'), path('home/next/<int:next>', views.home, name='home_next'),
path('home/prev/<int:prev>', views.home, name='home_prev'), path('home/prev/<int:prev>', views.home, name='home_prev'),
path('home', views.home, name='home'), path('home', views.home, name='home'),

View File

@ -398,3 +398,10 @@ def delete(request, id):
return render(request, 'main/delete.html', return render(request, 'main/delete.html',
{"toot": toot, 'confirm_page': True, {"toot": toot, 'confirm_page': True,
"fullbrutalism": fullbrutalism_p(request)}) "fullbrutalism": fullbrutalism_p(request)})
def about(request):
return render(request, 'main/about.html',
{"fullbrutalism": fullbrutalism_p(request)})
def privacy(request):
return render(request, 'main/privacy.html',
{"fullbrutalism": fullbrutalism_p(request)})