mirror of
https://github.com/creyD/asiimov.git
synced 2026-06-12 17:12:23 +02:00
Misc Update
- Added templating structure - Added static pages - Fixed some styling - Improved contribution guide
This commit is contained in:
@@ -53,7 +53,7 @@ ROOT_URLCONF = 'asiimov.urls'
|
||||
TEMPLATES = [
|
||||
{
|
||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||
'DIRS': [],
|
||||
'DIRS': [os.path.join(BASE_DIR, 'common', 'templates')],
|
||||
'APP_DIRS': True,
|
||||
'OPTIONS': {
|
||||
'context_processors': [
|
||||
|
||||
5
src/core/templates/static_pages/about.html
Normal file
5
src/core/templates/static_pages/about.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{% extends 'master.html' %}
|
||||
|
||||
{% block content %}
|
||||
TESt
|
||||
{% endblock %}
|
||||
0
src/core/templates/static_pages/help.html
Normal file
0
src/core/templates/static_pages/help.html
Normal file
0
src/core/templates/static_pages/imprint.html
Normal file
0
src/core/templates/static_pages/imprint.html
Normal file
@@ -15,5 +15,6 @@ urlpatterns = [
|
||||
path('profile/settings', views.me_settings, name='me_settings'),
|
||||
|
||||
path('help', views.help, name='help'),
|
||||
path('imprint', views.imprint, name='imprint')
|
||||
path('imprint', views.imprint, name='imprint'),
|
||||
path('about', views.about, name='about')
|
||||
]
|
||||
|
||||
@@ -3,15 +3,18 @@ from django.shortcuts import render, get_object_or_404, redirect
|
||||
from django.http import HttpResponseForbidden
|
||||
from django.contrib.auth.decorators import login_required
|
||||
|
||||
|
||||
# STATIC PAGES
|
||||
|
||||
|
||||
def help(request):
|
||||
return render(request, 'core/help.html')
|
||||
return render(request, 'static_pages/help.html')
|
||||
|
||||
|
||||
def imprint(request):
|
||||
return render(request, 'core/imprint.html')
|
||||
return render(request, 'static_pages/imprint.html')
|
||||
|
||||
|
||||
def about(request):
|
||||
return render(request, 'static_pages/about.html')
|
||||
|
||||
|
||||
# PUBLIC AREA
|
||||
|
||||
Reference in New Issue
Block a user