Browse Source

Simple homepage

remotes/origin/feincms
Tomas Gavenciak 10 years ago
parent
commit
7a88ce8006
  1. 11
      mamweb/templates/feature.html
  2. 9
      mamweb/templates/home.html
  3. 8
      mamweb/templates/page.html
  4. 3
      mamweb/urls.py

11
mamweb/templates/feature.html

@ -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 %}

9
mamweb/templates/home.html

@ -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 %}

8
mamweb/templates/page.html

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

3
mamweb/urls.py

@ -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.

Loading…
Cancel
Save