Example #1
0
# -*- coding: utf-8 -*-
from django.conf.urls import patterns, url

from apps.profiles.views import ProfileUpdateView, ProfileDetailView, ProfileRedirectView

urlpatterns = patterns(
    '',
    url(r'^redirect/$', ProfileRedirectView.as_view(), name='redirect'),
    url(r'^(?P<username>[\w.@+-]+)/$',
        ProfileDetailView.as_view(),
        name='profile_detail'),
    url(r'^(?P<username>[\w.@+-]+)/update/$',
        ProfileUpdateView.as_view(),
        name='profile_update'),
)
Example #2
0
        view='django.contrib.auth.views.login',
        kwargs={'template_name': 'login.html', 'authentication_form': CrispyAuthenticationForm},
        name='login'
    ),
    url(
        regex=r'^signup/$',
        view=SignUpView.as_view(),
        name='signup'
    ),
    url(
        regex=r'^logout/$',
        view='django.contrib.auth.views.logout',
        kwargs={'next_page': '/'},
        name='logout'
    ),
    url(
        regex=r'^admin/',
        view=include(admin.site.urls)
    ),

    url(
        regex=r'^profiles/(?P<slug>\w+)/$',
        view=ProfileDetailView.as_view(),
        name="profile_detail"
    ),
    url(regex=r'^dashboard/',
        view=include('apps.dashboard.urls')),
    url(regex=r'^projects/',
        view=include('apps.projects.urls'))
)
Example #3
0
# -*- coding: utf-8 -*-
from django.conf.urls import patterns, url

from apps.profiles.views import ProfileUpdateView, ProfileDetailView, ProfileRedirectView

urlpatterns = patterns('',
	url(r'^redirect/$',ProfileRedirectView.as_view(),name='redirect'),
	url(r'^(?P<username>[\w.@+-]+)/$', ProfileDetailView.as_view(), name='profile_detail'),
	url(r'^(?P<username>[\w.@+-]+)/update/$', ProfileUpdateView.as_view(), name='profile_update'),
)