Exemple #1
0
from django.conf.urls import patterns, include
from robots.utils import url

urlpatterns = patterns('account.views',
    url(r'^login/$', 'login_root', robots_allow=False),
    (r'^logout/$', 'logout_root'),

    (r'^register/$', 'register_root'),
    url(r'^register/go/$', 'register_go', robots_allow=False),
    url(r'^register/profile/$', 'register_profile', robots_allow=False),
    url(r'^register/about/$', 'register_about', robots_allow=False),
    url(r'^register/done/$', 'register_done', robots_allow=False),

    (r'^recover/$', 'recover_root'),
    url(r'^recover/(?P<uidb36>[0-9A-Za-z]{3})-(?P<token>[0-9A-Za-z]{20})-(?P<random>[0-9A-Za-z]{40})/$', 'recover_key', robots_allow=False),
    url(r'^recover/proceed/$', 'recover_proceed', robots_allow=False),

    url(r'^confirm/(?P<uidb36>[0-9A-Za-z]{3})-(?P<token>[0-9A-Za-z]{20})-(?P<random>[0-9A-Za-z]{40})/$', 'confirm_key', robots_allow=False),
    url(r'^confirm/retry/(?:\?next=(.*))?$', 'confirm_retry', robots_allow=False),

    url(r'^settings/$', 'settings_root', robots_allow=False),
    url(r'^settings/credentials/$', 'settings_credentials', robots_allow=False),
    url(r'^settings/notifications/$', 'settings_notifications', robots_allow=False),
    url(r'^settings/notifications/fetch/(?P<page>\d+)/$', 'settings_notifications_fetch', robots_allow=False),
    url(r'^settings/ajax/avatar/$', 'settings_ajax_avatar', robots_allow=False),
)

urlpatterns += patterns('',
    url(r'^login/(?P<backend>[^/]+)/$', 'account.views.login_social', robots_allow=False),
    url(r'^complete/(?P<backend>[^/]+)/$', 'account.views.complete_social', robots_allow=False),
    url(r'^disconnect/(?P<backend>[^/]+)/$', 'account.views.disconnect_social', robots_allow=False),
Exemple #2
0
from django.conf.urls import patterns
from robots.utils import url

urlpatterns = patterns('notification.views',
    (r'^$', 'root'),
    url(r'^fetch/page/(?P<page>\d+)/$', 'fetch_page', robots_allow=False),
    url(r'^fetch/single/(?P<notif_type>comment|response|spot|waaave|follow|follow-add)/(?P<notif_id>\d+)/$', 'fetch_single', robots_allow=False),
    url(r'^read/(?P<read_type>all)/$', 'read', robots_allow=False),
    url(r'^read/(?P<read_type>single)/(?P<notif_type>comment|response|spot|waaave|follow|follow-add|rank-up)/(?P<notif_id>\d+)/$', 'read', robots_allow=False),
)
Exemple #3
0
from django.conf.urls import patterns
from robots.utils import url

urlpatterns = patterns('book.views',
    (r'^$', 'root'),
    (r'^(?P<author>[\w-]+)/(?P<slug>[\w-]+)/$', 'view'),
    url(r'^(?P<author>[\w-]+)/(?P<slug>[\w-]+)/relevance/$', 'view_relevance', robots_allow=False),
)
Exemple #4
0
from django.conf.urls import patterns
from robots.utils import url

urlpatterns = patterns('tutorial.views',
    (r'^$', 'root'),
    (r'^(?P<tag>[\w-]+)/(?P<slug>[\w-]+)/$', 'view'),
    (r'^(?P<tag>[\w-]+)/(?P<slug>[\w-]+)/related/tutorials/$', 'view_related_tutorials'),
    url(r'^(?P<tag>[\w-]+)/(?P<slug>[\w-]+)/related/tutorials/fetch/(?P<page>\d+)/$', 'view_related_tutorials_fetch', robots_allow=False),
    (r'^(?P<tag>[\w-]+)/(?P<slug>[\w-]+)/related/developers/$', 'view_related_developers'),
    url(r'^(?P<tag>[\w-]+)/(?P<slug>[\w-]+)/related/developers/fetch/(?P<page>\d+)/$', 'view_related_developers_fetch', robots_allow=False),
)
Exemple #5
0
from django.conf.urls import patterns, include
from robots.utils import url

comment_patterns = patterns('comment.views',
    url(r'^read/$', 'read', robots_allow=False),
    url(r'^add/$', 'add', robots_allow=False),
    url(r'^action/$', 'action', robots_allow=False),
)

urlpatterns = patterns('',
    (r'^(?P<item_type>tutorial|shot|book|spot|blog)/(?P<item_id>\d+)/', include(comment_patterns))
)
#coding=utf-8

from django.conf.urls import patterns

from robots.utils import url

urlpatterns = patterns('',
    url(r'^s$', 'view', name='profiles', robots_allow=True),
    url(r'^/(?P<nick>\w+)$', 'view'),
    url(r'^/(?P<nick>\w+)/private', 'view', name='profile_private', robots_allow=False),
    url(r'^/(?P<nick>\w+)/public', 'view', name='profile_public', robots_allow=True),
    )
Exemple #7
0
#coding=utf-8

from django.conf.urls import patterns, include

from robots.utils import url


urlpatterns = patterns('',
    url(r'^profile', include('robots.tests.urls_profile')),
)
Exemple #8
0
from django.conf.urls import patterns
from robots.utils import url

urlpatterns = patterns('user.views',
    (r'^(?P<username>[\w\.-]+)/$', 'main'),
    url(r'^(?P<username>[\w\.-]+)/fetch/(?P<page>\d+)/$', 'main_fetch', robots_allow=False),

    (r'^(?P<username>[\w\.-]+)/following/$', 'main_following'),
    url(r'^(?P<username>[\w\.-]+)/following/fetch/(?P<page>\d+)/$', 'main_following_fetch', robots_allow=False),

    (r'^(?P<username>[\w\.-]+)/followers/$', 'main_followers'),
    url(r'^(?P<username>[\w\.-]+)/followers/fetch/(?P<page>\d+)/$', 'main_followers_fetch', robots_allow=False),

    (r'^(?P<username>[\w\.-]+)/interests/$', 'main_interests'),
    url(r'^(?P<username>[\w\.-]+)/interests/fetch/(?P<page>\d+)/$', 'main_interests_fetch', robots_allow=False),
)
Exemple #9
0
from django.conf.urls import patterns
from robots.utils import url

urlpatterns = patterns('timeline.views',
    url(r'^fetch/(?P<fetch_filter>following|followers|everyone)/(?P<page>\d+)/$', 'fetch', robots_allow=False),
	(r'^followers/$', 'followers'),
    (r'^everyone/$', 'everyone'),
)
Exemple #10
0
from django.conf.urls import patterns, include
from robots.utils import url

relevance_pattern = patterns('relevance.views',
    url(r'^action/$', 'action', robots_allow=False),
)

urlpatterns = patterns('',
    (r'^(?P<item_type>tutorial|book)/(?P<item_id>\d+)/', include(relevance_pattern))
)
Exemple #11
0
from django.conf.urls import patterns
from robots.utils import url

urlpatterns = patterns('share.views',
    url(r'^ajax/waaave/(?P<item_type>tutorial|book|shot|blog)/(?P<item_id>\d+)/', 'waaave', robots_allow=False),
    url(r'^ajax/follow/(?P<user_id>\d+)/', 'follow', robots_allow=False),
)