-{% extends "mil/base.html" %}
+{% extends "base_mil.html" %}
{% block title %}{{ object }}{% endblock %}
-{% extends "mil/base.html" %}
+{% extends "base_mil.html" %}
{% load chunks %}
{% block title %}Katalog kompetencji medialnych i informacyjnych{% endblock %}
--- /dev/null
+from django.conf.urls import patterns, include, url
+from .views import MILHomeView
+
+
+urlpatterns = patterns('',
+ url(r'^$', MILHomeView.as_view(), name="mil_home"),
+ url(r'^kompetencje/', include('curriculum.urls')),
+)
+
+
+
SUBDOMAIN_URLCONFS = {
None: 'edumed.urls',
- 'katalog': 'mil.urls',
+ 'katalog': 'edumed.milurls',
}
# Python dotted path to the WSGI application used by Django's runserver.
'edumed',
'curriculum',
'catalogue',
- 'mil',
'fnpdjango',
'south',
--- /dev/null
+{% extends "base_super.html" %}
+{% load subdomainurls %}
+
+{% block top_navigation %}
+ <li><a class="menu-wspolpraca" href="{% url "mil_home" %}">Konsultacje</a></li>
+ <li><a class="menu-kompetencje" href="{% url "curriculum" %}">Kompetencje</a></li>
+ <li><a class="menu-wspolpraca" href="">Weź udział</a></li>
+ <li><a class="menu-lekcje" href="{% url 'home' subdomain=None %}">Materiały edukacyjne</a></li>
+ <li><a class="menu-kontakt" href="">Kontakt</a></li>
+{% endblock %}
--- /dev/null
+{% extends "base_mil.html" }
+
+{% block body %}
+mil
+{% endblock %}
context['package_student_url'] = os.path.join(settings.MEDIA_URL, settings.CATALOGUE_PACKAGE_STUDENT)
return context
+
+class MILHomeView(TemplateView):
+ template_name = 'base_mil.html'
+
+
class AvatarlessProfileEditView(ProfileEditView):
form_class = AvatarlessEditProfileForm
+++ /dev/null
-{% extends "base_super.html" %}
-{% load subdomainurls %}
-
- {% block top_navigation %}
- <li><a class="menu-wspolpraca" href="">Konsultacje</a></li>
- <li><a class="menu-kompetencje" href="{% url "curriculum" %}">Kompetencje</a></li>
- <li><a class="menu-wspolpraca" href="">Weź udział</a></li>
- <li><a class="menu-lekcje" href="{% url 'home' subdomain=None %}">Materiały edukacyjne</a></li>
- <li><a class="menu-kontakt" href="">Kontakt</a></li>
-{% endblock %}
-
-{% block body %}
-mil
-{% endblock %}
\ No newline at end of file
+++ /dev/null
-from django.conf.urls import patterns, include, url
-from .views import root
-
-
-urlpatterns = patterns('',
- url(r'^$', root, name="root"),
- url(r'^kompetencje/', include('curriculum.urls')),
-)
+++ /dev/null
-from django.http import HttpResponse
-from django.shortcuts import render
-
-
-def root(request):
- return render(request, 'mil/base.html')