hello view

This commit is contained in:
Johanna 2014-11-17 11:06:35 +01:00
parent de7fc7173c
commit ee034e976f
6 changed files with 16 additions and 4 deletions

View File

@ -26,7 +26,7 @@ DEBUG = True
TEMPLATE_DEBUG = True
TEMPLATE_DIRS = (
'frontend/templates'
'frontend/templates',
)
TEMPLATE_CONTEXT_PROCESSORS = global_settings.TEMPLATE_CONTEXT_PROCESSORS + ('django.core.context_processors.request',)
@ -50,7 +50,6 @@ INSTALLED_APPS = (
'bootstrap3_datetime',
'django_bootstrap_breadcrumbs',
'frontend',
'debug_toolbar'
)
MIDDLEWARE_CLASSES = (

View File

@ -7,11 +7,14 @@ admin.autodiscover()
from frontend.views import login_wrap, logout_wrap
from frontend.views import IndexView, ProjectView, ProjectUpdateView, ProjectPersonView, ProjectMapPersonView
from frontend.views import HelloView
urlpatterns = patterns(
'',
url(r'^$', IndexView.as_view(), name=u'frontend-index'),
url(r'^project/$', ProjectView.as_view(), name=u'frontend-projects'),
url(r'^hello/$', HelloView.as_view(), name=u'frontend-hello'),
url(r'^project/(?P<project_id>\d+)/update$', ProjectUpdateView.as_view(), name=u'frontend-project-update'),
url(r'^project/(?P<project_id>\d+)/map/person$', ProjectPersonView.as_view(), name=u'frontend-project-view-person'),
url(r'^project/(?P<project_id>\d+)/map/person/(?P<person_uuid>[\w\d-]+)$', ProjectMapPersonView.as_view(), name=u'frontend-project-map-person'),

View File

@ -0,0 +1,5 @@
{% extends "layout/base.html" %}
{% block content %}
hallo <br>
<a href="{% url 'frontend-index' %}">zurück</a>
{% endblock %}

View File

@ -4,6 +4,8 @@
<p>
<ul>
<li><a href="{% url 'frontend-projects' %}">Citavi projects</a></li>
<li><a href="{% url 'frontend-hello' %}">hello</a></li>
</ul>
Feel free to discover.<br>
</p>

View File

@ -101,7 +101,10 @@ class ProtectedUpdateView(LoggedInMixin, MyUpdateView):
class IndexView(ProtectedTemplateView):
template_name = u'index.html'
page_title = u'Index'
class HelloView(ProtectedTemplateView):
template_name = u'hello.html'
page_title = u'Hello'
class ProjectView(ProtectedFormView):
template_name = u'projects.html'

View File

@ -1,5 +1,5 @@
psycopg2
django
django==1.6.5
django-crispy-forms
django-pipeline
django-bootstrap-breadcrumbs