Exemple #1
0
'''
Created on 2012-7-25

@author: TheBeet
'''
from django.conf.urls.defaults import patterns, url

from views import ajax_login, ajax_logout, UserDetailView, UserRankView, UserStatisticView, RegisterView

urlpatterns = patterns('',
    url(r'^login/$', ajax_login, name="login"),
    url(r'^logout/$', ajax_logout, name="logout"),
    url(r'^profile/(?P<slug>\w+)/$', UserDetailView.as_view(), name="detail"),
    url(r'^statistic/(?P<slug>\w+)/$', UserStatisticView.as_view(), name="statistic"),
    url(r'^rank/$', UserRankView.as_view(), name="rank"),
    url(r'^register/$', RegisterView.as_view(), name="register"),
)

Exemple #2
0
'''
Created on 2012-7-25

@author: TheBeet
'''
from django.conf.urls.defaults import patterns, url

from views import ajax_login, ajax_logout, UserDetailView, UserRankView, UserStatisticView, RegisterView

urlpatterns = patterns(
    '',
    url(r'^login/$', ajax_login, name="login"),
    url(r'^logout/$', ajax_logout, name="logout"),
    url(r'^profile/(?P<slug>\w+)/$', UserDetailView.as_view(), name="detail"),
    url(r'^statistic/(?P<slug>\w+)/$',
        UserStatisticView.as_view(),
        name="statistic"),
    url(r'^rank/$', UserRankView.as_view(), name="rank"),
    url(r'^register/$', RegisterView.as_view(), name="register"),
)
Exemple #3
0
"""mysite URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Add an import:  from blog import urls as blog_urls
    2. Add a URL to urlpatterns:  url(r'^blog/', include(blog_urls))
"""
from django.conf.urls import include, url
from django.contrib import admin

from views import RegisterView

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

    # blog
    url(r'^blog/', include('blog.urls')),
    url(r'^register/$', RegisterView.as_view(), name='register'),
    url('', include('django.contrib.auth.urls')),
]
Exemple #4
0
from django.conf.urls import patterns, url
from views import index, ArticleView, ArticlePublish, not_found, Contact, about, Test, RegisterView, cus_login, cus_logout, page_not_found, search

urlpatterns = patterns('',
                       url(r'^$', index, name='index'),
                       url(r'^article/$', ArticleView.as_view(), name='article_detail'),
                       url(r'^articlepublish/$', ArticlePublish.as_view(), name='article_publish'),
                       url(r'^404/$', not_found),
                       url(r'^contact/$', Contact.as_view(), name='contact'),
                       url(r'^about/$', about, name='about'),
                       url(r'^test/$', Test.as_view()),
                       url(r'^register/$', RegisterView.as_view(), name='register'),
                       url(r'^login/$', cus_login, name='login'),
                       url(r'^logout/$', cus_logout, name='logout'),
                       url(r'^search/$', search, name='search'),
                       url(r'^.*/$', page_not_found, name='not_found'),
        )


Exemple #5
0
from decorators import not_logged_in_required

urlpatterns = patterns(
    '',
    url(r'^/login/$',
        not_logged_in_required(login),
        {'authentication_form': EmailAuthenticationForm},
        name='login'),
    url(r'^/logout/$',
        'django.contrib.auth.views.logout', {'next_page': '/'},
        name='logout'),
    url(r'^/password/reset/$',
        'django.contrib.auth.views.password_reset', {
            'post_reset_redirect': '/user/password/reset/done/',
            'template_name': 'registration/password_reset_form.html',
            'email_template_name': 'registration/password_reset_email.html'
        },
        name='password_reset'),
    url(r'^/password/reset/done/$',
        'django.contrib.auth.views.password_reset_done',
        {'template_name': 'registration/password_reset_done.html'}),
    url(r'^/password/reset/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$',
        'django.contrib.auth.views.password_reset_confirm',
        {'post_reset_redirect': '/user/password/done/'}),
    url(r'^/password/done/$',
        'django.contrib.auth.views.password_reset_complete',
        {'template_name': 'registration/password_reset_complete.html'}),
    url(r'^/register/$',
        not_logged_in_required(RegisterView.as_view()),
        name='register'),
)
Exemple #6
0
from django.conf.urls import patterns, include, url
from django.contrib import auth

from views import RegisterView

urlpatterns = patterns('',
        url(r'^login/$',
            'accounts.views.home_login',
            {'template': 'accounts/login.html'},
            name='login'),                       
        url(r'^login_return/$',
            'django.contrib.auth.views.login',
            kwargs={'template_name': 'accounts/login.html'},
            name='login_return',),
        url(r'^logout/$',
            'django.contrib.auth.views.logout',
            kwargs={'next_page': '/'},
            name='logout',),
        url(r'^register/$',
            RegisterView.as_view(),
            name='register'),
)
Exemple #7
0
from django.conf.urls import patterns, url
from views import SignInView, RegisterView, SendTweets

urlpatterns = patterns('',
    url(r'^signin/', SignInView.as_view()),
    url(r'^register/', RegisterView.as_view()),
    url(r'^tweet/', SendTweets.as_view()),
)
Exemple #8
0
from views import CharacterCreateView
from views import DashboardView
from views import CreateSyndicatView
from views import SelectSyndicatView
from views import SyndicatDashboardView
from views import SelectRoleView
from views import WorkPageView
from views import AddTimeView
from views import MarketView
from views import SellView
from views import DieView
from views import InventoryView

urlpatterns = [
    url(r'^$', Home.as_view(), name='index'),
    url(r'^register/', RegisterView.as_view(), name='perso'),
    url(r'^connexion/', ConnexionView.as_view(), name='log-in'),
    url(r'^deconnexion/', DeconnexionView.as_view(), name='deconnexion'),
    url(r'^create_character/', CharacterCreateView.as_view(), name='create_character'),
    url(r'^dashboard/', DashboardView.as_view(), name='dashboard'),
    url(r'^create_syndicat/', CreateSyndicatView.as_view(), name='create_syndicat'),
    url(r'^select_syndicat/', SelectSyndicatView.as_view(), name='select_syndicat'),
    url(r'^dashboard_syndicat/', SyndicatDashboardView.as_view(), name='dashboard_syndicat'),
    url(r'^select_role/', SelectRoleView.as_view(), name='select_role'),
    url(r'^workpage/', WorkPageView.as_view(), name='workpage'),
    url(r'^add_time/', AddTimeView.as_view(), name='add_time'),
    url(r'^market/', MarketView.as_view(), name='market'),
    url(r'^die/', DieView.as_view(), name='die'),
    url(r'^market_sell/', SellView.as_view(), name='market_sell'),
    url(r'^inventory/', InventoryView.as_view(), name='inventory')
]
Exemple #9
0
    url(r'^profil/karmatiser/$', 'zds.member.views.modify_karma'),
    url(r'^profil/modifier/(?P<user_pk>\d+)/$',
        'zds.member.views.modify_profile'),
    url(r'^parametres/mini_profil/(?P<user_name>.+)/$',
        'zds.member.views.settings_mini_profile'),
    url(r'^profil/multi/(?P<ip_address>.+)/$',
        'zds.member.views.member_from_ip'),

    #tutorials and articles
    url(r'^tutoriels/$', 'zds.member.views.tutorials'),
    url(r'^articles/$', 'zds.member.views.articles'),

    #user rights
    url(r'^profil/promouvoir/(?P<user_pk>\d+)/$',
        'zds.member.views.settings_promote'),

    #membership
    url(r'^connexion/$', 'zds.member.views.login_view'),
    url(r'^deconnexion/$', 'zds.member.views.logout_view'),
    url(r'^inscription/$', RegisterView.as_view(), name='register-member'),
    url(r'^reinitialisation/$', 'zds.member.views.forgot_password'),
    url(r'^validation/$',
        SendValidationEmailView.as_view(),
        name='send-validation-email'),
    url(r'^new_password/$', 'zds.member.views.new_password'),
    url(r'^activation/$', 'zds.member.views.active_account'),
    url(r'^envoi_jeton/$', 'zds.member.views.generate_token_account'),
    url(r'^desinscrire/valider/$', 'zds.member.views.unregister'),
    url(r'^desinscrire/avertissement/$',
        'zds.member.views.warning_unregister'))
Exemple #10
0
from django.conf.urls import url

from views import RegisterView
from django.contrib.auth import views as auth_views

urlpatterns = [
    url(r'^register', RegisterView.as_view(), name='instagram.register'),
    url(r'^login$',
        auth_views.login, {'template_name': 'login.html'},
        name='instagram.login'),
    url(r'^logout', auth_views.logout, name='instagram.logout')
]
Exemple #11
0
from django.conf.urls import url
from views import RegisterView, LoginView

urlpatterns = [
    url(r'^register', RegisterView.as_view()),
    url(r'^login', LoginView.as_view()),
]
Exemple #12
0
from django.conf.urls import patterns, url
from django.contrib.auth.decorators import login_required
from django.views.generic import RedirectView
from emailusernames.forms import EmailAuthenticationForm
from django.contrib.auth.views import login

from views import RegisterView
from decorators import not_logged_in_required

urlpatterns = patterns('',
    url(r'^/login/$', not_logged_in_required(login),
        {'authentication_form': EmailAuthenticationForm}, name='login'),
    url(r'^/logout/$', 'django.contrib.auth.views.logout', {'next_page': '/'}, name='logout'),
    url(r'^/password/reset/$', 'django.contrib.auth.views.password_reset',
        {'post_reset_redirect' : '/user/password/reset/done/', 'template_name': 'registration/password_reset_form.html', 'email_template_name': 'registration/password_reset_email.html'}, name='password_reset'),
    url(r'^/password/reset/done/$', 'django.contrib.auth.views.password_reset_done', {'template_name': 'registration/password_reset_done.html'}),
    url(r'^/password/reset/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$', 'django.contrib.auth.views.password_reset_confirm',
        {'post_reset_redirect' : '/user/password/done/'}),
    url(r'^/password/done/$', 'django.contrib.auth.views.password_reset_complete', {'template_name': 'registration/password_reset_complete.html'}),
    url(r'^/register/$', not_logged_in_required(RegisterView.as_view()),
        name='register'),
)
Exemple #13
0
from django.conf.urls import url, include
from rest_framework.authtoken import views
from views import RegisterView, obtain_auth_token

urlpatterns = [
    url(r'^auth/register/?$', RegisterView.as_view(), name='register'),
    url(r'^auth/login', obtain_auth_token, name='login')
]
Exemple #14
0
from django.conf.urls import include, patterns, url
from views import RegisterView
from reach.settings import STATIC_ROOT

urlpatterns = patterns(
    "",
    url(r"^register/$", RegisterView.as_view(), name="register"),
    # url(r'^user/(?P<pk>\w+)/', userprofile_detail, name='userprofile-detail'),
)