Commits

sammyrulez committed 8735c41

refactored urls

Comments (0)

Files changed (2)

uiforms/tmanager/views.py

 from django.core import urlresolvers
 
 
+def home(request):
+    return redirect('admin:index')
+
 @login_required
 def uiform(request, template_id):
 
 
 urlpatterns = patterns('',
     # Examples:
-    # url(r'^$', 'uiforms.views.home', name='home'),
+    url(r'^$', 'uiforms.tmanager.views.home', name='home'),
     # url(r'^uiforms/', include('uiforms.foo.urls')),
 
     # Uncomment the admin/doc line below to enable admin documentation:
     # Uncomment the next line to enable the admin:
     url(r'^admin/', include(admin.site.urls)),
 	
-	url(r'^admin/uiform/(?P<template_id>\d+)/$','uiforms.tmanager.views.uiform',name='uiform'),
-	url(r'^admin/uiform_preview/(?P<template_id>\d+)/$','uiforms.tmanager.views.uiform_preview',name='preview'),
-	url(r'^admin/uiform_clone/(?P<template_id>\d+)/$','uiforms.tmanager.views.clone_template',name='clone'),
-	url(r'^admin/uiform_share/(?P<template_id>\d+)/$','uiforms.tmanager.views.share_template',name='share'),
+	url(r'^uiform/(?P<template_id>\d+)/$','uiforms.tmanager.views.uiform',name='uiform'),
+	url(r'^uiform_preview/(?P<template_id>\d+)/$','uiforms.tmanager.views.uiform_preview',name='preview'),
+	url(r'^uiform_clone/(?P<template_id>\d+)/$','uiforms.tmanager.views.clone_template',name='clone'),
+	url(r'^uiform_share/(?P<template_id>\d+)/$','uiforms.tmanager.views.share_template',name='share'),
 	url(r'^data_owned/$',OwnedDataView.as_view(),name='owned_data'),
 	url(r'^data_submitted/$',SubmittedDataView.as_view(),name='submitted_data'),
 	url(r'^data_detail/(?P<pk>\d+)/$',DataDetailView.as_view(),name='detail'),
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.