Permalink
Browse files

fix for SITES_PACKAGE

  • Loading branch information...
1 parent 5160cbf commit c3ab2f4cff90bc67433f200d8190a34e8c35829c @wardi committed Mar 30, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 dynamicsiteslite/middleware.py
@@ -82,10 +82,10 @@ def process_request(self, request):
if folder_name:
# set from where urlconf will be loaded if it exists
try:
- urlconf_pkg = '%s.urls' % folder_name
- __import__("%s.%s" % (settings.SITES_PACKAGE, urlconf_pkg))
- self.logger.debug('using sites.%s for urlconf',
- urlconf_pkg)
+ urlconf_pkg = '%s.%s.urls' % (
+ settings.SITES_PACKAGE, folder_name)
+ __import__(urlconf_pkg)
+ self.logger.debug('using %s for urlconf', urlconf_pkg)
self.request.urlconf = urlconf_pkg
except ImportError:
# urlconf doesn't exist... skip it

0 comments on commit c3ab2f4

Please sign in to comment.