Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 04c0aad9a7
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (32 sloc) 1.421 kb
from django.conf.urls.defaults import *
# import in order to access settings.py variables
from django.conf import settings
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
# importing all the views
from views import *
admin.autodiscover()
urlpatterns = patterns('',
#prologger vieews
url(r'^$', index , name='index'),
url(r'^login/', login_, name='login'),
url(r'^logout/$', logout_, name='logout'),
url(r'^api/account/achievements/',json_achievements),
url(r'^achievements/$', achievements, name='achievements'),
url(r'^analyze/$',analyze_achievements, name='analyze'),
url(r'^profile/$', profile , name='profile'),
url(r'^edit/profile/$', accounts_settings, name ='account_settings'),
url(r'^groups/$', groups , name='groups'),
url(r'^home/$', home , name='home'),
url(r'^about/$', home , name='about'),
(r'^oauth/callback/', callback),
#(r'^accounts/', include('registration.backends.default.urls')),
# Uncomment the next line to enable the admin:
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
(r'^admin/', include(admin.site.urls)),
url(r'^(?P<username>\w+)/$', usernameview),
)
if settings.DEBUG:
urlpatterns += patterns('',
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
)
Jump to Line
Something went wrong with that request. Please try again.