admindocs 'views' section depends on SITE_ID setting
|Reported by:||Ramiro Morales||Owned by:||Bouke Haarsma|
|Cc:||Baptiste Mispelon, bouke@…||Triage Stage:||Accepted|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Description (last modified by )
It seems the admindocs views try to detect if th sited contrib app is installed and avoid to use its features if it's not.
But in a couple of places it uses
settings.SITE_ID and the new 1.6 default project template settings.py doesn't include it because the sites framework isn't installed.
Perhaps it could be replaced by 'django.contrib.sites.models.get_current_site(request)` as suggested by https://docs.djangoproject.com/en/1.6/ref/contrib/sites/#hooking-into-the-current-site-from-views?
Change History (10)
comment:1 Changed 3 years ago by
|Cc:||Baptiste Mispelon added|
|Triage Stage:||Unreviewed → Accepted|
comment:2 Changed 3 years ago by
|Owner:||changed from nobody to Bouke Haarsma|
|Status:||new → assigned|