from django.http import Http404
from django.http.response import HttpResponseRedirect
from django.shortcuts import render, get_object_or_404
from django.http import Http404
from django.http.response import HttpResponseRedirect
from django.shortcuts import render, get_object_or_404
from django.utils.translation import ugettext_lazy as _
from newsletter.forms import UnsubscribeForm, SubscribeForm
from newsletter.models import Subscription
from django.utils.translation import ugettext_lazy as _
from newsletter.forms import UnsubscribeForm, SubscribeForm
from newsletter.models import Subscription
subscription.active = True
subscription.save()
return render(request, 'newsletter/confirm_subscription.html', {
subscription.active = True
subscription.save()
return render(request, 'newsletter/confirm_subscription.html', {
'form': form,
})
def unsubscribed(request):
return render(request, 'newsletter/unsubscribed.html', {
'form': form,
})
def unsubscribed(request):
return render(request, 'newsletter/unsubscribed.html', {