urls: reorder urls

This commit is contained in:
Benjamin Dauvergne 2014-03-21 15:39:04 +01:00
parent eac52c2c46
commit 225df4501e
5 changed files with 3 additions and 13 deletions

View File

@ -2,12 +2,6 @@
import os
import sys
import compte_agglo_montpellier
sys.path.append(os.path.join(
os.path.dirname(compte_agglo_montpellier.__file__),
'apps'))
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "compte_agglo_montpellier.settings")
os.environ.setdefault('DEBUG', '1')

View File

@ -172,7 +172,6 @@ INSTALLED_APPS = (
'authentic2.auth2_auth',
'authentic2.attribute_aggregator',
'authentic2.disco_service',
'wcsinst.wcsinst',
'portail_citoyen_announces',
'portail_citoyen',
'wcsinst.wcsinst',

View File

@ -16,9 +16,10 @@ cms.cms_toolbar.CMSToolbar._request_hook_get = __django_cms_tollbar_request_hook
urlpatterns = patterns('',
url('^announces/', include('portail_citoyen_announces.urls')),
)
urlpatterns += pc_urls
urlpatterns += patterns('',
url(r'^captcha/', include('captcha.urls')),
url(r'^cms-ajax-text-plugin/', include('cms_ajax_text_plugin.urls')),
)
urlpatterns += pc_urls

View File

@ -22,10 +22,6 @@ import sys
# os.environ["DJANGO_SETTINGS_MODULE"] = "compte_agglo_montpellier.settings"
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "compte_agglo_montpellier.settings")
apps_path = os.path.join(os.path.dirname(__file__), 'apps')
if apps_path not in sys.path:
sys.path.append(apps_path)
# This application object is used by any WSGI server configured to use this
# file. This includes Django's development server, if the WSGI_APPLICATION
# setting points here.

View File

@ -25,7 +25,7 @@ class compile_translations(Command):
try:
from django.core.management.commands.compilemessages import \
compile_messages
for path in ['compte_agglo_montpellier'] + glob.glob('compte_agglo_montpellier/apps/*'):
for path in ['compte_agglo_montpellier']:
if not os.path.exists(os.path.join(path, 'locale')):
continue
curdir = os.getcwd()