Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
a955253f
Commit
a955253f
authored
Jun 05, 2013
by
Kostas Papadimitriou
Browse files
cyclades: Sensible root url redirects
parent
c442637b
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-cyclades-app/synnefo/app_settings/urls.py
View file @
a955253f
...
...
@@ -35,11 +35,13 @@ from django.conf.urls.defaults import *
from
django.conf
import
settings
from
snf_django.lib.api.proxy
import
proxy
from
snf_django.lib.api.utils
import
prefix_pattern
from
snf_django.utils.urls
import
extend_with_root_redirects
from
synnefo.cyclades_settings
import
(
BASE_URL
,
BASE_HOST
,
BASE_PATH
,
COMPUTE_PREFIX
,
VMAPI_PREFIX
,
PLANKTON_PREFIX
,
HELPDESK_PREFIX
,
UI_PREFIX
,
ASTAKOS_BASE_URL
,
USERDATA_PREFIX
,
ASTAKOS_BASE_PATH
,
BASE_ASTAKOS_PROXY_PATH
,
ASTAKOS_ACCOUNTS_PREFIX
,
ASTAKOS_VIEWS_PREFIX
,
PROXY_USER_SERVICES
)
ASTAKOS_ACCOUNTS_PREFIX
,
ASTAKOS_VIEWS_PREFIX
,
PROXY_USER_SERVICES
,
cyclades_services
)
from
urlparse
import
urlparse
from
functools
import
partial
...
...
@@ -79,3 +81,7 @@ if PROXY_USER_SERVICES:
''
,
(
prefix_pattern
(
BASE_ASTAKOS_PROXY_PATH
),
include
(
proxy_patterns
)),
)
# set utility redirects
extend_with_root_redirects
(
urlpatterns
,
cyclades_services
,
'cyclades_ui'
,
BASE_PATH
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment