Simple homepage

This commit is contained in:
Tomas Gavenciak 2015-04-02 00:26:28 +02:00
parent 997e4bcdfd
commit 7a88ce8006
4 changed files with 11 additions and 20 deletions

View file

@ -1,11 +0,0 @@
{% extends "base.html" %}
{% load cms_tags staticfiles sekizai_tags menu_tags %}
{% block content %}
<div class="jumbotron">
{% placeholder "feature" %}
</div>
<div>
{% placeholder "content" %}
</div>
{% endblock content %}

View file

@ -0,0 +1,9 @@
{% extends "base.html" %}
{% block content %}
<div>
<h2>Vítejte na testwebu MaM!</h2>
<p><a href='/admin/'>Administrátorské rozhraní</a> (admin/admin)
</div>
{% endblock content %}

View file

@ -1,8 +0,0 @@
{% extends "base.html" %}
{% load cms_tags staticfiles sekizai_tags menu_tags %}
{% block content %}
<div>
{% placeholder "content" %}
</div>
{% endblock content %}

View file

@ -3,14 +3,15 @@ from django.conf.urls.i18n import i18n_patterns
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.contrib import admin
from django.conf import settings
from django.views.generic.base import TemplateView
urlpatterns = i18n_patterns('',
url(r'^admin/', include(admin.site.urls)), # NOQA
url(r'^r/', include('django.conf.urls.shortcut')),
url(r'^admin_tools/', include('admin_tools.urls')),
url(r'^ckeditor/', include('ckeditor.urls')),
url(r'^', include('seminar.urls')),
url(r'^$', TemplateView.as_view(template_name='home.html'), name='home'),
)
# This is only needed when using runserver.