mirror of
https://github.com/creyD/asiimov.git
synced 2026-06-11 16:42:23 +02:00
Misc Update
- Added templating structure - Added static pages - Fixed some styling - Improved contribution guide
This commit is contained in:
@@ -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?
|
||||||
|
|||||||
@@ -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': [
|
||||||
|
|||||||
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('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')
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user