move urls to top level

This commit is contained in:
Sanj 2011-07-07 20:23:02 +05:30
parent 49bd113b2a
commit c8eb3dd6ed
2 changed files with 14 additions and 2 deletions

View File

@ -20,8 +20,8 @@ ADMINS = (
# ('Your Name', 'your_email@domain.com'),
)
LOGIN_URL = "/sandbox/account"
LOGIN_REDIRECT_URL = "/sandbox/"
LOGIN_URL = "/account"
LOGIN_REDIRECT_URL = "/home"
MANAGERS = ADMINS
DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.

View File

@ -15,6 +15,17 @@ urlpatterns = patterns('',
(r'^sandbox/$', 'main.views.home'),
(r'^debug/$', 'main.views.debug'),
(r'^error/$', 'main.views.error'),
(r'^home$', 'main.views.home'),
(r'^contact$', 'main.views.contact'),
(r'^archive$', 'files.views.browse'),
(r'^publish$', 'main.views.publish'),
(r'^browse$', 'main.views.browse'),
(r'^upload$', 'files.views.upload_files'),
(r'^faq$', 'main.views.faq'),
(r'^help$', 'main.views.help'),
(r'^account$', login),
(r'^logout$', logout),
(r'^sandbox/home$', 'main.views.home'),
(r'^sandbox/contact$', 'main.views.contact'),
(r'^sandbox/archive$', 'files.views.browse'),
@ -25,6 +36,7 @@ urlpatterns = patterns('',
(r'^sandbox/help$', 'main.views.help'),
(r'^sandbox/account$', login),
(r'^sandbox/logout$', logout),
(r'^$', 'django.views.generic.simple.redirect_to', {'url': '/slider/'}),
(r'^robots.txt(?P<path>)$', 'django.views.static.serve', { 'document_root' : "/home/itf/soc/edgware/static/txt/robots.txt" } ),
# Uncomment the admin/doc line below and add 'django.contrib.admindocs'