1
0
mirror of https://github.com/creyD/asiimov.git synced 2026-06-12 00:52: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

@@ -19,8 +19,9 @@ In most cases the best thing you can do is to create an issue with your contribu
If you feel like the issue is easily fixable for you and the consensus of the issue is positive for your idea, go for it! If you feel like the issue is easily fixable for you and the consensus of the issue is positive for your idea, go for it!
- Fork the repository - Fork the repository
- Checkout the dev branch
- Commit your changes with an understandable commit message - Commit your changes with an understandable commit message
- Create a pull request from your fork to the main repository (preferably in the dev branch!) - Create a pull request from your fork to the main repository (from your branch to the `dev` branch)
- Profit! - Profit!
## Which branch should I push to? ## Which branch should I push to?

View File

@@ -53,7 +53,7 @@ ROOT_URLCONF = 'asiimov.urls'
TEMPLATES = [ TEMPLATES = [
{ {
'BACKEND': 'django.template.backends.django.DjangoTemplates', 'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [], 'DIRS': [os.path.join(BASE_DIR, 'common', 'templates')],
'APP_DIRS': True, 'APP_DIRS': True,
'OPTIONS': { 'OPTIONS': {
'context_processors': [ '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('profile/settings', views.me_settings, name='me_settings'),
path('help', views.help, name='help'), 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.http import HttpResponseForbidden
from django.contrib.auth.decorators import login_required from django.contrib.auth.decorators import login_required
# STATIC PAGES # STATIC PAGES
def help(request): def help(request):
return render(request, 'core/help.html') return render(request, 'static_pages/help.html')
def imprint(request): 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 # PUBLIC AREA