Skip to content
This repository has been archived by the owner on Jun 20, 2018. It is now read-only.

Commit

Permalink
Merge pull request #3 from eventbrite/master
Browse files Browse the repository at this point in the history
not everyone uses django auth, don't couple nexus to it.
  • Loading branch information
dcramer committed May 16, 2012
2 parents d1f3771 + 611299e commit b09116c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
=======

Expand Down
2 changes: 2 additions & 0 deletions nexus/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit b09116c

Please sign in to comment.