46 lines
1.2 KiB
Python
46 lines
1.2 KiB
Python
"""Webapp urls."""
|
|
|
|
from django.conf.urls import url
|
|
from django.conf import settings
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
from webapp.views import main_index
|
|
from webapp.views import login_view
|
|
from webapp.views import logout_view
|
|
from webapp.views import about_view
|
|
from webapp.views import guild_view
|
|
from webapp.views import freshmen_view
|
|
from webapp.views import jobs_view
|
|
from webapp.views import event_calendar_view
|
|
from webapp.views import international_view
|
|
from webapp.views import sosso_view
|
|
from webapp.views import contact_view
|
|
|
|
urlpatterns = [
|
|
# main
|
|
url(r'^$', main_index),
|
|
|
|
# login stuff
|
|
url(r'^login$', login_view),
|
|
url(r'^logout$', logout_view),
|
|
|
|
# git revision
|
|
url(r'^about', about_view),
|
|
|
|
# pages
|
|
url(r'^guild', guild_view),
|
|
url(r'^freshmen', freshmen_view),
|
|
url(r'^event_calendar', event_calendar_view),
|
|
url(r'^international', international_view),
|
|
url(r'^sosso', sosso_view),
|
|
url(r'^contact', contact_view),
|
|
|
|
# corporate
|
|
url(r'^jobs', jobs_view),
|
|
]
|
|
|
|
|
|
if settings.DEBUG:
|
|
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
|
|
urlpatterns += staticfiles_urlpatterns()
|