Browse Source

remove the "static" accounts/ url and only include it when registration is available. see #212

Natenom/support-murmur-13-1446181288462
Michael Ziegler 12 years ago
parent
commit
250556f569
  1. 6
      pyweb/urls.py

6
pyweb/urls.py

@ -39,7 +39,6 @@ urlpatterns = patterns('',
(r'^accounts/profile/', 'views.profile' ),
(r'^accounts/imprint/', 'views.imprint' ),
(r'^accounts/', include('registration.urls') ),
(r'^mumble/', include('mumble.urls')),
@ -50,6 +49,11 @@ urlpatterns = patterns('',
(r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict),
)
if "registration" in settings.INSTALLED_APPS:
urlpatterns += patterns( '',
(r'^accounts/', include('registration.urls') ),
)
if "rosetta" in settings.INSTALLED_APPS:
urlpatterns += patterns( '',
( r'rosetta/', include( 'rosetta.urls' ) )

Loading…
Cancel
Save