textile in infopages
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Thu, 14 Feb 2013 11:08:13 +0000 (12:08 +0100)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Thu, 14 Feb 2013 11:08:13 +0000 (12:08 +0100)
edumed/templates/flatpages/default.html
edumed/urls.py

index b9ce096..1a6f372 100755 (executable)
@@ -1,7 +1,8 @@
 {% extends "base.html" %}
 {% extends "base.html" %}
+{% load textile_pl from fnp_markup %}
 
 {% block title %}{{ flatpage.title }}{% endblock %}
 
 {% block body %}
 
 {% block title %}{{ flatpage.title }}{% endblock %}
 
 {% block body %}
-{{ flatpage.content }}
-{% endblock %}
\ No newline at end of file
+{{ flatpage.content|textile_pl }}
+{% endblock %}
index 5978ddf..d988610 100644 (file)
@@ -10,7 +10,7 @@ urlpatterns = patterns('',
     url(r'^kompetencje/', include('curriculum.urls')),
     url(r'^lekcje/', include('catalogue.urls')),
 #    url(r'^i/', include('django.contrib.flatpages.urls')),
     url(r'^kompetencje/', include('curriculum.urls')),
     url(r'^lekcje/', include('catalogue.urls')),
 #    url(r'^i/', include('django.contrib.flatpages.urls')),
-    url(r'^i/(?P<url>.*)$', 'django.contrib.flatpages.views.flatpage',
+    url(r'^info/(?P<url>.*)$', 'django.contrib.flatpages.views.flatpage',
         name="info"),
     url(r'^szukaj/', include('haystack.urls')),
 )
         name="info"),
     url(r'^szukaj/', include('haystack.urls')),
 )