From 667a470f4153b1bb5d73b76c846a6f7c8b71e212 Mon Sep 17 00:00:00 2001 From: Zak Timson Date: Sun, 14 Jan 2018 16:48:55 -0500 Subject: [PATCH] Updated newsletter subscription system --- OACPL/urls.py | 1 - newsletters/templates/newsletters.html | 79 ++++++++++---------------- newsletters/views.py | 12 +--- 3 files changed, 34 insertions(+), 58 deletions(-) diff --git a/OACPL/urls.py b/OACPL/urls.py index 52dc719..b6f0877 100644 --- a/OACPL/urls.py +++ b/OACPL/urls.py @@ -37,7 +37,6 @@ urlpatterns = [ url(r'^logout/', main.views.logout, name='logout'), url(r'^media/secure/(?P.*)$', protected_serve, {'document_root': os.path.join(settings.MEDIA_ROOT, 'secure')}, name='secure media'), url(r'^media/(?P.*)$', serve, {'document_root': settings.MEDIA_ROOT}, name='media'), - url(r'^newsletter/subscribe', newsletters.views.subscribe, name='subscribe'), url(r'^newsletter/', newsletters.views.newsletters, name='newsletters'), url(r'^tinymce/', include('tinymce.urls')) ] diff --git a/newsletters/templates/newsletters.html b/newsletters/templates/newsletters.html index 1bac8de..047bad0 100644 --- a/newsletters/templates/newsletters.html +++ b/newsletters/templates/newsletters.html @@ -15,16 +15,20 @@
{% if request.user.is_anonymous %} - + {% endif %} {% for newsletter in newsletters %}