Permalink
Browse files

Added a setting NEXUS_SKIP_INSTALLED_APPS_REQUIREMENTS that allows yo…

…u to have an app using nexus that doesn't use django.contrib.auth or django.contrib.sessions.
  • Loading branch information...
1 parent d1f3771 commit 611299e6142da3aba70362687746dc9e1500598d @mscheibe mscheibe committed May 2, 2012
Showing with 4 additions and 0 deletions.
  1. +2 −0 README.rst
  2. +2 −0 nexus/models.py
View
@@ -41,6 +41,8 @@ Now you'll want to include it within your ``urls.py``::
('^nexus/', include(nexus.site.urls)),
)
+By default Nexus requires django.contrib.auth and django.contrib.sessions. If you are using a custom auth system you can skip these requirements by using the setting ``NEXUS_SKIP_INSTALLED_APPS_REQUIREMENTS = True`` in your django settings.
+
Modules
=======
View
@@ -2,6 +2,8 @@
from django.core.exceptions import ImproperlyConfigured
_reqs = ('django.contrib.auth', 'django.contrib.sessions')
+if getattr(settings, 'NEXUS_SKIP_INSTALLED_APPS_REQUIREMENTS', False):
+ _reqs = ()
for r in _reqs:
if r not in settings.INSTALLED_APPS:
raise ImproperlyConfigured("Put '%s' in your "

0 comments on commit 611299e

Please sign in to comment.