This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ python | |
Python 2.6.6 (r266:84292, May 1 2012, 13:52:17) | |
[GCC 4.4.6 20110731 (Red Hat 4.4.6-3)] on linux2 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> exit | |
Use exit() or Ctrl-D (i.e. EOF) to exit | |
>>> quit | |
Use quit() or Ctrl-D (i.e. EOF) to exit | |
>>> exit() | |
$ python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example based on http://lukeplant.me.uk/blog/posts/djangos-cbvs-were-a-mistake/ | |
# Not tested, just designed to give a general idea of the games CBVs let you play | |
from django.core.urlresolvers import reverse_lazy | |
from django.views.generic.edit import ProcessFormView | |
# Utilities for interacting with a user | |
class UserViewMixin(object): | |
_high_priority_user = None | |
@property |
NewerOlder