#16259: State more clearly that django.contrib.ccontenttypes depends on
django.contrib.sites
-------------------------------------+-------------------------------------
Reporter: zimnyx | Owner: nobody
Type: | Status: closed
Cleanup/optimization | Component: Documentation
Milestone: | Severity: Normal
Version: SVN | Keywords:
Resolution: | Has patch: 0
worksforme | Needs tests: 0
Triage Stage: Accepted | Easy pickings: 0
Needs documentation: 0 |
Patch needs improvement: 0 |
UI/UX: 0 |
-------------------------------------+-------------------------------------
Changes (by mattmcc):
* status: new => closed
* resolution: => worksforme
Comment:
I can't reproduce this. get_model does indeed return None if the app for
a given model is not in INSTALLED_APPS. Further, contenttypes does not
depend on sites. The documentation uses the site model as an example for
generic relations, nothing more.
{{{
>>> from django.conf import settings
>>> 'django.contrib.sites' in settings.INSTALLED_APPS
False
>>> from django.db.models import get_model
>>> print get_model('sites', 'Site')
None
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/16259#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.