diff mbox

[Branch,~linaro-validation/lava-server/trunk] Rev 328: Eh, again remove mount points, ther are not needed in URLs

Message ID 20111129200214.19830.19652.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Zygmunt Krynicki Nov. 29, 2011, 8:02 p.m. UTC
------------------------------------------------------------
revno: 328
committer: Zygmunt Krynicki <zygmunt.krynicki@linaro.org>
branch nick: lava-server
timestamp: Tue 2011-11-29 20:46:42 +0100
message:
  Eh, again remove mount points, ther are not needed in URLs
modified:
  lava_server/urls.py


--
lp:lava-server
https://code.launchpad.net/~linaro-validation/lava-server/trunk

You are subscribed to branch lp:lava-server.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-server/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'lava_server/urls.py'
--- lava_server/urls.py	2011-11-29 15:16:46 +0000
+++ lava_server/urls.py	2011-11-29 19:46:42 +0000
@@ -34,38 +34,38 @@ 
 # Root URL patterns
 urlpatterns = patterns(
     '',
-    url(r'^{mount_point}$'.format(mount_point=settings.MOUNT_POINT),
+    url(r'^$',
         index,
         name='lava.home'),
-    url(r'^{mount_point}me/$'.format(mount_point=settings.MOUNT_POINT),
+    url(r'^me/$',
         me,
         name='lava.me'),
-    url(r'^{mount_point}version/$'.format(mount_point=settings.MOUNT_POINT),
+    url(r'^version/$',
         version,
         name='lava.version_details'),
-    url(r'^{mount_point}accounts/'.format(mount_point=settings.MOUNT_POINT),
+    url(r'^accounts/',
         include('django.contrib.auth.urls')),
-    url(r'^{mount_point}admin/'.format(mount_point=settings.MOUNT_POINT),
+    url(r'^admin/',
         include(admin.site.urls)),
-    url(r'^{mount_point}openid/'.format(mount_point=settings.MOUNT_POINT),
+    url(r'^openid/',
         include('django_openid_auth.urls')),
-    url(r'^{mount_point}RPC2/'.format(mount_point=settings.MOUNT_POINT),
+    url(r'^RPC2/',
         'linaro_django_xmlrpc.views.handler',
         name='lava.api_handler',
         kwargs={
             'mapper': loader.xmlrpc_mapper,
             'help_view': 'lava.api_help'}),
-    url(r'^{mount_point}api/help/$'.format(mount_point=settings.MOUNT_POINT),
+    url(r'^api/help/$',
         'linaro_django_xmlrpc.views.help',
         name='lava.api_help',
         kwargs={
             'mapper': loader.xmlrpc_mapper}),
-    url(r'^{mount_point}api/'.format(mount_point=settings.MOUNT_POINT),
+    url(r'^api/',
         include(api_urls.token_urlpatterns)),
     # XXX: This is not needed but without it linaro-django-xmlrpc tests fail
-    url(r'^{mount_point}api/'.format(mount_point=settings.MOUNT_POINT),
+    url(r'^api/',
         include(api_urls.default_mapper_urlpatterns)),
-    url(r'^{mount_point}utils/markitup/'.format(mount_point=settings.MOUNT_POINT),
+    url(r'^utils/markitup/',
         include('lava_markitup.urls')))