예제 #1
0
from django.conf.urls import url
from django.views.generic import TemplateView
from django.contrib.auth import views

from profiles.views import (RegistrationView, LoginView, LogoutView,
                            ProfileDetailView, ProfileUpdateView, ProfileChannelsGraphView, ProfileResolutionsView,
                            ProfileDeclarationsView, ProfileFallaciesView, SpeakerDetailView)


urlpatterns = [
    url(r'^login/$', LoginView.as_view(template_name="auth/login.html"), name='auth_login'),
    url(r'^logout/$', LogoutView.as_view(), name='auth_logout'),
    url(r'^auth/profile$', ProfileUpdateView.as_view(
        template_name="auth/update.html"), name='auth_profile_update'),
    url(r'^register/$', RegistrationView.as_view(
        template_name="auth/register.html"), name='auth_registration'),
    url(r'^complete/$', TemplateView.as_view(
        template_name="auth/complete.html"), name='auth_registration_complete'),
    url(r'^users/(?P<username>[\w\._-]+)$', ProfileDetailView.as_view(
        template_name="auth/profile.html"), name='auth_profile'),
    url(r'^users/(?P<username>[\w\._-]+)/resolutions$',
        ProfileResolutionsView.as_view(), name='auth_profile_resolutions'),
    url(r'^users/(?P<username>[\w\._-]+)/declarations$',
        ProfileDeclarationsView.as_view(), name='auth_profile_declarations'),
    url(r'^users/(?P<username>[\w\._-]+)/fallacies$',
        ProfileFallaciesView.as_view(), name='auth_profile_fallacies'),
    url(r'^users/(?P<username>[\w\._-]+)/channels.json$',
        ProfileChannelsGraphView.as_view(), name='auth_profile_channels'),
    url(r'^password_reset/$', views.password_reset,
        {'template_name': 'auth/password_reset_form.html',
        'email_template_name': 'auth/password_reset_email.html'},
예제 #2
0
from django.conf.urls import patterns, url

from profiles.views import (
    ProfileUpdateView,
    ProfileListView,
    ProfileDetailView,
)

urlpatterns = patterns('',
    url(r'^edit/(?P<slug>[-\w]+)/$', ProfileUpdateView.as_view(), name='profile_edit'),
    url(r'^$', ProfileListView.as_view(), name='profile_list'),
    url(r'^(?P<slug>[-\w]+)/$', ProfileDetailView.as_view(), name='profile_detail'),
)
예제 #3
0
from django.conf.urls import patterns, url

from profiles.views import ProfileView, ProfileUpdateView

urlpatterns = patterns('',
    url(r"^(?P<slug>[\w.@+-]+)/$", ProfileView.as_view(), name="detail"),
    url(r"^$", ProfileUpdateView.as_view(), name="edit"),
)
예제 #4
0
파일: urls.py 프로젝트: Skaty/orbital
from django.conf.urls import url, include

from profiles.views import ProfileDetailView, PreferencesUpdateView, PasswordUpdateView, PreferencesDisplay, \
    ProfileUpdateView

urlpatterns = [
    url(r'^(?P<pk>[0-9]+)/$', ProfileDetailView.as_view(), name='profile-detail'),
    url(r'^update/', include([
        url(r'^$', PreferencesDisplay.as_view(), name='preferences-display'),
        url(r'^password/$', PasswordUpdateView.as_view(), name='password-update'),
        url(r'^preferences/$', PreferencesUpdateView.as_view(), name='preferences-update'),
        url(r'^profile/$', ProfileUpdateView.as_view(), name='profile-update'),
    ]))
]
예제 #5
0
파일: urls.py 프로젝트: fmaj7/mymd
from django.conf.urls.defaults import *

from profiles.views import ProfileDetailView, ProfileUpdateView


urlpatterns = patterns("profiles.views",
    url(r"^edit/$", ProfileUpdateView.as_view(), name="profile_edit"),
    url(r"^details/(?P<username>[\w.@+-]+)/$", ProfileDetailView.as_view(), name="profile_detail"),
)
예제 #6
0
파일: urls.py 프로젝트: nbeck90/city-swap
from django.conf.urls import patterns, url
from django.contrib.auth.decorators import login_required
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from profiles.views import ProfileUpdateView

urlpatterns = patterns(
    'profiles.views',
    url(r'^$', 'profile', name='profile'),
    url(r'^edit/(?P<pk>\d+)$',
        login_required(ProfileUpdateView.as_view()),
        name='profile_edit'),
)

urlpatterns += staticfiles_urlpatterns()
예제 #7
0
from django.conf.urls import patterns, url
from django.views.generic import TemplateView
from profiles.views import (RegistrationView, LoginView, LogoutView,
                            ProfileDetailView, ProfileUpdateView)


urlpatterns = patterns('',
    url(r'^login/$', LoginView.as_view(template_name="auth/login.html"), name='auth_login'),
    url(r'^logout/$', LogoutView.as_view(), name='auth_logout'),
    url(r'^auth/profile$', ProfileUpdateView.as_view(), name='auth_profile_update'),
    url(r'^register/$', RegistrationView.as_view(
        template_name="auth/register.html"), name='auth_registration'),
    url(r'^complete/$', TemplateView.as_view(
        template_name="auth/complete.html"), name='auth_registration_complete'),
    url(r'^users/(?P<username>[\w\._-]+)$', ProfileDetailView.as_view(
        template_name="auth/profile.html"), name='auth_profile'),

)
예제 #8
0
파일: urls.py 프로젝트: mloudon/bikematch


handler500 = "pinax.views.server_error"


urlpatterns = patterns("",
    url(r"^$", direct_to_template, {
        "template": "homepage.html",
    }, name="home"),
    url(r"^admin/invite_user/$", "pinax.apps.signup_codes.views.admin_invite_user", name="admin_invite_user"),
    url(r"^admin/", include(admin.site.urls)),
    url(r"^about/", include("about.urls")),
    url(r"^account/", include("pinax.apps.account.urls")),
    url(r"^openid/", include(PinaxConsumer().urls)),
    url(r"^profiles/edit/$", ProfileUpdateView.as_view(),dict(form_class=EditProfileForm, template_name="profiles/profile_edit.html"), name="profile_edit"),
    url(r"^profiles/editnoescape/$", ProfileUpdateView.as_view(),dict(form_class=EditProfileForm, template_name="profiles/profile_edit_noescape.html"), name="profile_edit_noescape"),
    url(r"^profiles/create/$", ProfileCreateView.as_view(), dict(form_class=CreateProfileForm), name="profile_create"),
    url(r"^profiles/", include("profiles.urls")),
    url(r"^notices/", include("notification.urls")),
    url(r"^announcements/", include("announcements.urls")),
    (r'^messages/', include('django_messages.urls')),
    url(r"^wall/", include("wall.urls")),
    url(r"^mapview/$", "bikematchapp.views.mapview", name="mapview"),
)


if settings.SERVE_MEDIA:
    urlpatterns += patterns("",
        url(r"", include("staticfiles.urls")),
)
예제 #9
0
파일: urls.py 프로젝트: luzfcb/tristano
router = routers.DefaultRouter()
router.register(r'users', UserViewSet)
router.register(r'books', BookViewSet)


urlpatterns = patterns('',

	# Admin
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    (r'^admin/', include(admin.site.urls)),

    # django-allauth -- registration, login, passwords
    (r'^accounts/', include('allauth.urls')),

    # Profiles
    url(r'^p/edit/?$', ProfileUpdateView.as_view(),  name='profile_update'),
    url(r'^p/(?P<username>\w+)/$', ProfileDetailView.as_view(),  name='profile_detail'),

    # Books static views
    url(r'^books_static/list/?$', BooksStaticListView.as_view(),  name='books_list_static'),  # Static list view
    url(r'^books_static/detail/(?P<pk>[\d]+)?$', BooksStaticDetailView.as_view(),  name='books_detail_static'),  # Static detail view

    # Books Angular list/detail views both handled by a single/simple Django page
    url(r'^books/', BooksAngularView.as_view(),  name='books_list'),

    # API
    url(r'^api/', include(router.urls)),
    url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),

    # Home
    url(r'^$', 'main.views.home', name='home'),
예제 #10
0
파일: urls.py 프로젝트: dangerdak/chrapp
        name='logout'),

#    url(r'^invite/$',
#        'registration.views.invite',
#        name='invite'),

    url(r'^accept/(\w+)/$',
        'registration.views.accept',
        name='accept'),

    url(r'^admin/',
        include(admin.site.urls)),

    # Update view
    url(r'^updateprofile/$',
        ProfileUpdateView.as_view(),
        name='update-profile'),

    # Send email
    url(r'^update-email/(?P<to_profile_id>\w+)/(?P<from_member_id>\w+)/$',
        'profiles.views.send_update_email',
        name='send-update-email'),

#    # Users
#    url(r'^(?P<username>\w+)/',
#        include('profiles.url')),
#
    # Groups
    url(r'^groups/',
        include('profiles.urls')),
예제 #11
0
from django.conf.urls import patterns, url
from django.views.generic import TemplateView
from profiles.views import (RegistrationView, LoginView, LogoutView,
                            ProfileDetailView, ProfileUpdateView)


urlpatterns = patterns('',
    url(r'^login/$', LoginView.as_view(template_name="auth/login.html"), name='auth_login'),
    url(r'^logout/$', LogoutView.as_view(), name='auth_logout'),
    url(r'^auth/profile$',ProfileUpdateView.as_view(
        template_name="auth/update.html"), name='auth_profile_update'),
    url(r'^register/$', RegistrationView.as_view(
        template_name="auth/register.html"), name='auth_registration'),
    url(r'^complete/$', TemplateView.as_view(
        template_name="auth/complete.html"), name='auth_registration_complete'),
    url(r'^users/(?P<username>[\w\._-]+)$', ProfileDetailView.as_view(
        template_name="auth/profile.html"), name='auth_profile'),

)