-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
15 lines (14 loc) · 814 Bytes
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from django.conf.urls import patterns, include, url
from django.contrib import admin
urlpatterns = patterns('',
url(r'^$', 'ribbit.ribbit_app.views.index'), # root
url(r'^admin/', include(admin.site.urls)), # admin
url(r'^login$', 'ribbit.ribbit_app.views.login_view'), # login
url(r'^logout$', 'ribbit.ribbit_app.views.logout_view'), # logout
url(r'^signup$', 'ribbit.ribbit_app.views.signup'), # signup
url(r'^submit$', 'ribbit.ribbit_app.views.submit'), # submit new ribbit
url(r'^users/$', 'ribbit.ribbit_app.views.users'),
url(r'^users/(?P<username>\w{0,30})/$', 'ribbit.ribbit_app.views.users'),
url(r'^follow$', 'ribbit.ribbit_app.views.follow'),
url(r'^ribbits$', 'ribbit.ribbit_app.views.public'),
)