Skip to content

Commit

Permalink
Fixes: #17 partially
Browse files Browse the repository at this point in the history
  • Loading branch information
pcicman committed Sep 24, 2009
1 parent 4d79595 commit 7762522
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
7 changes: 5 additions & 2 deletions cms/appresolver.py
Expand Up @@ -76,6 +76,9 @@ def urlconf_module(self):

def reset_cache(self):
self._dynamic_url_conf_module.reset_cache()
from django.core import urlresolvers
urlresolvers._resolver_cache = {}



class ApplicationRegexUrlResolver(PageRegexURLResolver):
Expand Down Expand Up @@ -162,6 +165,6 @@ def reset_cache(self):
"""
self._urlpatterns = None
# recache patterns with new state
fake = self.urlpatterns

#fake = self.urlpatterns
dynamic_app_regex_url_resolver = DynamicAppRegexURLResolver()
1 change: 0 additions & 1 deletion example/sampleapp/urls.py
@@ -1,5 +1,4 @@
from django.conf.urls.defaults import *
from django.core.urlresolvers import reverse

urlpatterns = patterns('sampleapp.views',
(r'^$', 'sample_view', {'message': 'urls.py => root (DE)',}),
Expand Down
4 changes: 3 additions & 1 deletion example/settings.py
Expand Up @@ -122,7 +122,7 @@
'reversion',
#'example.categories',
#'debug_toolbar',
'south',
#'south',
# sample application
'example.sampleapp',
#'store',
Expand All @@ -131,13 +131,15 @@
LANGUAGE_CODE = "de"

gettext = lambda s: s

LANGUAGES = (
('fr', gettext('French')),
('de', gettext('German')),
('en', gettext('English')),
('pt-br', gettext("Brazil")),
)


DEFAULT_LANGUAGE = 0

CMS_TEMPLATES = (
Expand Down

0 comments on commit 7762522

Please sign in to comment.