Skip to content

Instantly share code, notes, and snippets.

@AntelopeSalad
Created January 26, 2014 22:01
Show Gist options
  • Save AntelopeSalad/8640017 to your computer and use it in GitHub Desktop.
Save AntelopeSalad/8640017 to your computer and use it in GitHub Desktop.
from django.views.generic.base import TemplateView
from django.contrib.auth.decorators import login_required
from django.utils.decorators import method_decorator
class AccountSettings(TemplateView):
template_name = 'accountsettings/details.html'
@method_decorator(login_required)
def dispatch(self, *args, **kwargs):
return super().dispatch(*args, **kwargs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment