Commit 96acee11 authored by Luuk Scholten's avatar Luuk Scholten
Browse files

Merge branch 'fix/require-login-styleguide' into 'release/1.0.0'

Require login for the styleguide

Hij valt onder het kopje 'voor leden', dus dan is dit in principe ook gewenst

Relevant voor #155 maar heeft meer werk nodig om echt goed te zijn. Dus dit is voor nu beter.

See merge request !219
parents 99f77697 50d2c0ae
......@@ -74,7 +74,7 @@ urlpatterns = [
url(r'^become-active/', TemplateView.as_view(template_name='singlepages/become_active.html'), name='become-active'),
url(r'^photos/', include('photos.urls')),
url(r'^statistics/', members.views.statistics, name='statistics'),
url(r'^styleguide/', TemplateView.as_view(template_name='singlepages/styleguide.html'), name='styleguide'),
url(r'^styleguide/', views.styleguide, name='styleguide'),
url(r'^career/', include('partners.urls')),
url(r'^contact$', TemplateView.as_view(template_name='singlepages/contact.html'), name='contact'),
from django.conf import settings
from django.contrib.auth import authenticate
from django.contrib.admin.views.decorators import staff_member_required
from django.contrib.auth.decorators import login_required
from django.http import (HttpResponseBadRequest,
HttpResponseForbidden, JsonResponse)
from django.shortcuts import render
from django.utils import timezone
from django.views.decorators.csrf import csrf_exempt
from django.views.decorators.http import require_POST
......@@ -10,6 +12,11 @@ from django.views.decorators.http import require_POST
from members.models import Member
def styleguide(request):
return render(request, 'singlepages/styleguide.html')
def wiki_login(request):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment