hello view
This commit is contained in:
parent
de7fc7173c
commit
ee034e976f
|
@ -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 = (
|
||||
|
|
|
@ -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'),
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
{% extends "layout/base.html" %}
|
||||
{% block content %}
|
||||
hallo <br>
|
||||
<a href="{% url 'frontend-index' %}">zurück</a>
|
||||
{% endblock %}
|
|
@ -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>
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
psycopg2
|
||||
django
|
||||
django==1.6.5
|
||||
django-crispy-forms
|
||||
django-pipeline
|
||||
django-bootstrap-breadcrumbs
|
||||
|
|
Loading…
Reference in New Issue