-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
41 lines (26 loc) · 837 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
=========================
Django common application
=========================
Django-common provides useful shortcuts for developing django projects.
Overview
========
context_processors
~~~~~~~~~~~~~~~~~~
* settings_processor - put django.conf.settings into RequestContext
decorators
~~~~~~~~~~
* render_to - classic render_to functionality
* paged - paginate the `response_qs` variable in response. Used with render_to.
* ajax - wrap view reponse into JSON
fields
~~~~~~
* AutoOneToOneField - OneToOne field which automatically creates related object
forms
~~~~~
* build_form - shortcut for creating GET/POST form with one line of code
http
~~~~
* HttpResponseJson - Response class which wraps data into JSON format. Used in common.decorators.ajax
middleware
~~~~~~~~~~
* LoginRequiredMiddleware - restrict guest access