Opened 13 years ago

Closed 12 years ago

#1791 closed enhancement (fixed)

Application dependencies should be documented

Reported by: anonymous Owned by: Adrian Holovaty
Component: Documentation Version: master
Severity: normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


svn At revision 2864.






# 'django.contrib.sites',



~/mydjangoproject$ python syncdb
Error: None couldn't be installed, because there were errors in your model:
flatpages.flatpage: 'sites' has m2m relation with uninstalled model Site

if I uncomment django.contrib.sites everything works

Change History (4)

comment:1 Changed 13 years ago by Esaj

Resolution: invalid
Status: newclosed

That's because flatpages depends on sites.

comment:2 Changed 13 years ago by eugene@…

Component: Core frameworkDocumentation
Resolution: invalid
Status: closedreopened
Summary: django.contrib.flatpages does not install if django.contrib.sites is not installedApplication dependencies should be documented
Type: defectenhancement

Application dependencies should be documented.

One more frequently occured dependency chain: django.contrib.admin depends on django.contrib.auth, and django.contrib.contenttypes. Attempts to run an app without them brings following errors (?):

Validating models...
admin.logentry: 'user' has relation with uninstalled model User
admin.logentry: 'content_type' has relation with uninstalled model ContentType
2 errors found.

I don't think this is an error per se, but it should be documented to reduce a confusion. For starters these error messages don't say anything about what additional applications are required.

comment:3 Changed 12 years ago by Michael Radziej <mir@…>

Triage Stage: UnreviewedAccepted

comment:4 Changed 12 years ago by Jacob

Resolution: fixed
Status: reopenedclosed

(In [5432]) Fixed #1791 - documented dependancies of contrib packages.

Note: See TracTickets for help on using tickets.
Back to Top