| Version 5 (modified by , 20 years ago) ( diff ) |
|---|
Namespace Simplification
On django-developers, we discussed some changes to the django namespace, and adding a new "shortcuts" module to allow 1 line imports for common tasks. These changes are part of RemovingTheMagic.
Here's a summary of what should be done:
Move httpwrappers
Status: Done
Move django.utils.httpwrappers, plus the Http404 exception. to django.http
Move template
Status: In progress
Move django.core.template to django.template
Rename DjangoContext to ??? and move to django.template (name still not decided)
You will need to update TEMPLATE_LOADERS in your settings from
TEMPLATE_LOADERS = (
'django.core.template.loaders.filesystem.load_template_source',
'django.core.template.loaders.app_directories.load_template_source',
# 'django.core.template.loaders.eggs.load_template_source',
)
to
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.load_template_source',
'django.template.loaders.app_directories.load_template_source',
# 'django.template.loaders.eggs.load_template_source',
)
Move formfields
Status: Not started
Move django.core.formfields to django.forms
Add "shortcuts" modules for common tasks
Status: Not started
Add django.shortcuts.views, django.shortcuts.templatetags, what else?