Package django :: Package contrib :: Package admin :: Package views :: Module doc
[hide private]
[frames] | no frames]

Module doc

source code

Classes [hide private]
  GenericSite
Functions [hide private]
 
doc_index(request) source code
 
bookmarklets(request) source code
 
template_tag_index(request) source code
 
template_filter_index(request) source code
 
view_index(request) source code
 
view_detail(request, view) source code
 
model_index(request) source code
 
model_detail(request, app_label, model_name) source code
 
template_detail(request, template) source code
 
missing_docutils_page(request)
Display an error message for people without docutils
source code
 
load_all_installed_template_libraries() source code
 
get_return_data_type(func_name)
Return a somewhat-helpful data type given a function name
source code
 
get_readable_field_data_type(field) source code
 
extract_views_from_urlpatterns(urlpatterns, base='')
Return a list of views from a list of urlpatterns.
source code
 
simplify_regex(pattern)
Clean up urlpattern regexes into something somewhat readable by Mere Humans: turns something like "^(?P<sport_slug>\w+)/athletes/(?P<athlete_slug>\w+)/$" into "<sport_slug>/athletes/<athlete_slug>/"
source code
Variables [hide private]
  MODEL_METHODS_EXCLUDE = '_', 'add_', 'delete', 'save', 'set_'
  DATA_TYPE_MAPPING = {'AutoField': _('Integer'), 'BooleanField'...
  named_group_matcher = re.compile(r'\(\?P(<\w+>).+?\)')
  non_named_group_matcher = re.compile(r'\(.*?\)')
Function Details [hide private]

extract_views_from_urlpatterns(urlpatterns, base='')

source code 

Return a list of views from a list of urlpatterns.

Each object in the returned list is a two-tuple: (view_func, regex)


Variables Details [hide private]

DATA_TYPE_MAPPING

Value:
{'AutoField': _('Integer'), 'BooleanField': _('Boolean (Either True or\
 False)'), 'CharField': _('String (up to %(max_length)s)'), 'CommaSepa\
ratedIntegerField': _('Comma-separated integers'), 'DateField': _('Dat\
e (without time)'), 'DateTimeField': _('Date (with time)'), 'DecimalFi\
eld': _('Decimal number'), 'EmailField': _('E-mail address'), 'FileFie\
ld': _('File path'), 'FilePathField': _('File path'), 'FloatField': _(\
'Floating point number'), 'ForeignKey': _('Integer'), 'ImageField': _(\
'File path'), 'IntegerField': _('Integer'), 'IPAddressField': _('IP ad\
...