django-admin2/docs/ref/built-in-views.rst

58 lines
1.2 KiB
ReStructuredText
Raw Normal View History

Built-In Views
===============
2013-07-06 11:54:48 +00:00
Each of these views contains the list of context variables that are included in
their templates.
2013-07-05 10:06:09 +00:00
2013-07-13 10:37:44 +00:00
.. note:: TODO: Fix the capitalization of context variables!
2013-07-06 13:06:27 +00:00
View Constants
---------------
The following are available in every view:
2013-07-06 12:40:49 +00:00
:next: The page to redirect the user to after login
:MEDIA_URL: Specify a directory where file uploads for users who use your site go
:STATIC_URL: Specify a directory for JavaScript, CSS and image files.
:user: Currently logged in user
2013-07-06 13:06:27 +00:00
View Descriptions
------------------
2013-07-06 12:40:49 +00:00
.. autoclass:: djadmin2.views.IndexView
:members:
.. autoclass:: djadmin2.views.AppIndexView
:members:
.. autoclass:: djadmin2.views.ModelListView
:members:
.. autoclass:: djadmin2.views.ModelDetailView
:members:
.. autoclass:: djadmin2.views.ModelEditFormView
:members:
.. autoclass:: djadmin2.views.ModelAddFormView
:members:
.. autoclass:: djadmin2.views.ModelDeleteView
:members:
.. autoclass:: djadmin2.views.PasswordChangeView
:members:
.. autoclass:: djadmin2.views.PasswordChangeDoneView
:members:
.. autoclass:: djadmin2.views.LoginView
:members:
.. autoclass:: djadmin2.views.LogoutView
:members: