1
0
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:
2020-01-13 16:30:27 +01:00
parent 0d50a12fd2
commit 266ae39082
7 changed files with 17 additions and 7 deletions

View File

@@ -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': [

View File

@@ -0,0 +1,5 @@
{% extends 'master.html' %}
{% block content %}
TESt
{% endblock %}

View 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')
]

View File

@@ -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