add an empty home page

This commit is contained in:
Frédéric Péters 2014-03-24 19:24:21 +01:00
parent 4e7151d3b0
commit 59e1662cdd
5 changed files with 28 additions and 3 deletions

View File

@ -81,3 +81,7 @@ USE_TZ = True
# https://docs.djangoproject.com/en/1.6/howto/static-files/
STATIC_URL = '/static/'
TEMPLATE_DIRS = (
os.path.join(BASE_DIR, 'hobo', 'templates'),
)

View File

@ -0,0 +1,4 @@
{% extends "gadjo/base.html" %}
{% block page-title %}Portail admin{% endblock %}
{% block site-title %}Portail admin{% endblock %}
{% block footer %}Portail admin — Copyright © Entr'ouvert{% endblock %}

View File

@ -0,0 +1,14 @@
{% extends "hobo/base.html" %}
{% load i18n %}
{% load url from future %}
{% block appbar %}
<h2>{% trans 'Welcome' %}</h2>
{% endblock %}
{% block content %}
<p>
</p>
{% endblock %}

View File

@ -4,9 +4,7 @@ from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'hobo.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^$', 'hobo.views.home', name='home'),
url(r'^admin/', include(admin.site.urls)),
)

5
hobo/views.py Normal file
View File

@ -0,0 +1,5 @@
from django.views.generic.base import TemplateView
class Home(TemplateView):
template_name = 'hobo/home.html'
home = Home.as_view()