Commit f8c545b8 authored by fred's avatar fred

add newsletter app to write newsletters

parent 085971bd
...@@ -131,6 +131,7 @@ INSTALLED_APPS = ( ...@@ -131,6 +131,7 @@ INSTALLED_APPS = (
'datetimewidget', 'datetimewidget',
'django_bootstrap_staticfiles', 'django_bootstrap_staticfiles',
'emissions', 'emissions',
'newsletter',
'panikdb.aa', 'panikdb.aa',
'panikdb.customtags', 'panikdb.customtags',
) )
......
...@@ -13,6 +13,7 @@ from haystack.query import SearchQuerySet ...@@ -13,6 +13,7 @@ from haystack.query import SearchQuerySet
from emissions.views import FacetedSearchView from emissions.views import FacetedSearchView
from emissions.urls import urlpatterns as emissions_urlpatterns from emissions.urls import urlpatterns as emissions_urlpatterns
from newsletter.urls import management_patterns as newsletter_urlpatterns
from urls_utils import decorated_includes from urls_utils import decorated_includes
...@@ -30,6 +31,9 @@ urlpatterns = patterns('', ...@@ -30,6 +31,9 @@ urlpatterns = patterns('',
url(r'^emissions/', url(r'^emissions/',
decorated_includes(login_required, include(emissions_urlpatterns))), decorated_includes(login_required, include(emissions_urlpatterns))),
url(r'^newsletters/',
decorated_includes(login_required, include(newsletter_urlpatterns))),
url(r'^news/$', 'panikdb.views.news', name='news-list'), url(r'^news/$', 'panikdb.views.news', name='news-list'),
url(r'^accounts/logout/', 'django.contrib.auth.views.logout_then_login', name='logout'), url(r'^accounts/logout/', 'django.contrib.auth.views.logout_then_login', name='logout'),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment