Beispiel #1
0
from django.urls import path
from accounts import views
from django.contrib.auth import views as auth_views
from accounts.views import UserDetailView, UserFollowView

app_name = "accounts"

urlpatterns = [
    path('', views.Registration, name="register"),
    path('login/',
         auth_views.LoginView.as_view(template_name="accounts/login.html"),
         name='login'),
    path('logout/',
         auth_views.LogoutView.as_view(template_name="accounts/logout.html"),
         name="logout"),
    path('Profile/', views.ProfileView, name="profile"),
    path('following/', views.followingView, name="following"),
    path('followers/', views.followersView, name='followers'),
    path('<username>/', UserDetailView.as_view(), name='userdetail'),
    path('follow/<username>/', UserFollowView.as_view(), name="follow")
]
Beispiel #2
0
from django.urls import path
from accounts.views import login_view, logout_view, register_view, UserDetailView, UserPersonalInfoChangeView, \
    UserPasswordChangeView, AllUsersView, update_profile

urlpatterns = [
    path("login/", login_view, name="login"),
    path("logout/", logout_view, name="logout"),
    path("create", register_view, name="create"),
    path("<int:pk>/", UserDetailView.as_view(), name="detail"),
    path("<int:pk>/update", update_profile, name="update"),
    # path("<int:pk>/update", UserPersonalInfoChangeView, name="update"),
    path("<int:pk>/change_password",
         UserPasswordChangeView.as_view(),
         name="change_password"),
    path('all/', AllUsersView.as_view(), name="users")
]

app_name = "accounts"
Beispiel #3
0
from django.urls import path
from django.contrib.auth.views import LoginView, LogoutView
from accounts.views import RegisterView, RegisterActivateView, UserDetailView, \
    UserChangeView, UserPasswordChangeView, UserPasswordResetEmailView, UserPasswordResetView, \
    LogoutView

app_name = 'accounts'

urlpatterns = [
    path('login/', LoginView.as_view(), name='login'),
    path('logout/', LogoutView.as_view(), name='logout'),
    path('register/', RegisterView.as_view(), name='create'),
    path('activate/<uuid:token>/',
         RegisterActivateView.as_view(),
         name='activate'),
    path('<int:pk>/', UserDetailView.as_view(), name='detail'),
    path('<int:pk>/update/', UserChangeView.as_view(), name='change'),
    path('password-change/',
         UserPasswordChangeView.as_view(),
         name='password_change'),
    path('password-reset/',
         UserPasswordResetEmailView.as_view(),
         name='password_reset_email'),
    path('password-reset/<uuid:token>/',
         UserPasswordResetView.as_view(),
         name='password_reset')
]
Beispiel #4
0
from django.conf.urls import url
from accounts.views import IndexView, UserListView, UserDetailView, UserAddView

urlpatterns = [
    url(r'^$', IndexView.as_view(), name='index'),
    url(r'^users/$', UserListView.as_view(), name='user_list'),
    url(r'^users/add/$', UserAddView.as_view(), name='user_add'),
    url(r'^users/(?P<pk>\d+)/$', UserDetailView.as_view(), name='user_detail'),
]
Beispiel #5
0
    re_path(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    re_path(r'^admin/games/', include('games.urls.admin')),
    re_path(r'^select2/', include('django_select2.urls')),
    re_path(r'^openid/', include('django_openid_auth.urls')),
    re_path(r'^user/', include('accounts.urls')),
    re_path(r'^api/accounts/token', obtain_auth_token, name='accounts_get_token'),
    re_path(
        r'^api/accounts/auth',
        include('rest_framework.urls', namespace='rest_framework')
    ),
    re_path(r'^api/tosec', include('tosec.urls')),
    re_path(r'^api/runners', include('runners.runner_urls')),
    re_path(r'^api/runtime', include('runners.runtime_urls')),
    re_path(r'^api/games', include('games.urls.games')),
    re_path(r'^api/installers', include('games.urls.installers')),
    re_path(r'^api/users/me', UserDetailView.as_view(), name='api_user_detail'),
    re_path(r'^api/bundles/(?P<slug>[\w\-]+)$', BundleView.as_view(), name='api_bundle_view'),
    re_path(r'^games/', include('games.urls.pages')),
    re_path(r'^bundles', include('bundles.urls')),
    re_path(r'^runners', include('runners.urls')),
    re_path(r'^email/', include('emails.urls')),
    re_path(
        r'^steam-login/',
        login_begin,
        kwargs={'login_complete_view': 'associate_steam'},
        name='steam_login'
    ),
    re_path(r'thegamesdb/', include('thegamesdb.urls')),
    re_path(r'^', include('common.urls')),
]
Beispiel #6
0
from django.conf.urls import patterns, include, url
from django.contrib.auth.decorators import login_required

from accounts.views import (
    CustomRegistrationView,
    ShippingDataUpdateView,
    InvoiceDataUpdateView,
    ProfessionalDataUpdateView,
    UserDetailView,
)

urlpatterns = patterns('',
    url(r'^$', login_required(UserDetailView.as_view()), name='inox_user_detail'),
    url(r'^logout/$', 'django.contrib.auth.views.logout', {'next_page': '/'}),
    url(r'^register/$', CustomRegistrationView.as_view(), name='registration_register'),
    url(r'^shipping_data/$', login_required(ShippingDataUpdateView.as_view()), name='shipping_data_update'),
    url(r'^invoice_data/$', login_required(InvoiceDataUpdateView.as_view()), name='invoice_data_update'),
    url(r'^professional_data/$', login_required(ProfessionalDataUpdateView.as_view()), name='professional_data_update'),
    url(r'^setlang/$', 'accounts.views.set_language', name='user_set_language'),
    url(r'^cookies/$', 'accounts.views.cookies_agreement_view', name='cookies_agreement'),
)
Beispiel #7
0
from django.conf import settings
from django.views.generic import RedirectView
from accounts.views import UserDetailView, ChangePasswordView, register, index, forgot, forgot_reset, social_confirm, verify_new_email, verify_email, login_async, login_page, register_page, register_async, register_login_async
from django.contrib.auth.views import logout

urlpatterns = [
    url(r'^login/$', RedirectView.as_view(pattern_name='account:index'), name='login'),
    url(r'^login_page/$', login_page, name="login_page"),
    url(r'^login_async/$', login_async, name='login_async'),
    url(r'^logout/$', logout, {'next_page': '/'},
        name='logout'),
    url(r'^register/$', register, name='register'),
    url(r'^register_page/$', register_page, name='register_page'),
    url(r'^register_async/$', register_async, name='register_async'),
    url(r'^register_login_async/$', register_login_async, name='register_login_async'),
    url(r'^edit/$', UserDetailView.as_view(), name='edit'),
    url(r'^forgot/$', forgot, name='forgot_password'),
    url(r'^forgot/(?P<code>[a-f0-9]{32})$', forgot_reset,
        name='forgot_reset'),
    url(r'^confirm-account/$', social_confirm,
        name='social_confirm'),
    url(r'^verify_new_email$', verify_new_email,
        name='verify_new_email'),
    url(r'^verify/(?P<code>[a-f0-9]{32})$', verify_email,
        name='verify_email'),
    url(r'^change-password/$', ChangePasswordView.as_view(),
        name='change_password'),
    url(r'^$', index, name="index"),
]

Beispiel #8
0
from django.urls import path

from accounts.views import login_view, \
    logout_view, \
    register_view, \
    RegisterView, \
    UserAdd, \
    UserDetailView, \
    ProfilesList, \
    UserChangeView,\
    UserChangePassword

app_name = 'accounts'

urlpatterns = [
    path('login/', login_view, name='login'),
    path('logout/', logout_view, name='logout'),
    path('register/', register_view, name='register'),
    path('create/', RegisterView.as_view(), name='create'),
    path('add/user/<int:pk>/', UserAdd.as_view(), name='add-user'),
    path('user/deteil/<int:pk>', UserDetailView.as_view(), name='user-detail'),
    path('profiles/', ProfilesList.as_view(), name='profile'),
    path('profile/update/', UserChangeView.as_view(), name='profile-update'),
    path('profile/change-password/',
         UserChangePassword.as_view(),
         name='change-password')
]
Beispiel #9
0
from django.conf.urls import url

from accounts.views import UserDetailView, UserFollowView

urlpatterns = [
    url(r'^(?P<username>[\w.@+-]+)/$', UserDetailView.as_view(),
        name='detail'),
    url(r'^(?P<username>[\w.@+-]+)/follow$',
        UserFollowView.as_view(),
        name='follow'),
]
Beispiel #10
0
import allauth
from django.conf.urls import url, include
from django.conf.urls.static import static
from django.contrib import admin
from django.contrib.auth.decorators import login_required

from accounts.views import UserDetailView, UserFollowView, EmailView
from myblog import settings
from . import views

urlpatterns = [
    url(r'^$', views.index, name="home"),
    url(r'^chat/', include('chat.urls')),
    url(r'^admin/', admin.site.urls),
    url(r'^app_one/', include("app_one.urls")),
    url(r'accounts/', include('accounts.urls')),
    url(r'accounts/', include('django.contrib.auth.urls')),
    url(r'^accounts/', include('allauth.urls')),
    url(r'^profiles/(?P<username>[\w.@+-]+)/$',
        UserDetailView.as_view(),
        name='detail'),
    url(r'^profiles/(?P<username>[\w.@+-]+)/mail/$',
        login_required(EmailView.as_view()),
        name='mail'),
    url(r'^profiles/(?P<username>[\w.@+-]+)/follow/$',
        UserFollowView.as_view(),
        name='follow')
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

# from allauth import account
from django.contrib.auth.urls import views
Beispiel #11
0
from django.urls import path, include
from django.contrib.auth.views import LoginView
from accounts.views import RegisterView, UserDetailView, UserListView, UserChangeView, UserPasswordChangeView, \
    BasketClearLogoutView

app_name = 'accounts'

urlpatterns = [
    path('login/', LoginView.as_view(), name='login'),
    path('logout/', BasketClearLogoutView.as_view(), name='logout'),
    path('register/', RegisterView.as_view(), name='create'),
    path('list/', UserListView.as_view(), name='list'),
    path(
        '<int:pk>/',
        include([
            path('', UserDetailView.as_view(), name='detail'),
            path('update/', UserChangeView.as_view(), name='change'),
            path('password_change/',
                 UserPasswordChangeView.as_view(),
                 name='password_change'),
        ])),
]
Beispiel #12
0
from django.urls import path
from accounts.views import register_view, UserDetailView, UserListView, UserUpdateView, UserChangePasswordView
from django.contrib.auth.views import LoginView, LogoutView

app_name = 'accounts'

urlpatterns = [
    path('login/', LoginView.as_view(), name='login',),
    path('logout/', LogoutView.as_view(), name='logout'),
    path('register/', register_view, name='register'),
    path('profile/<int:pk>/', UserDetailView.as_view(), name='user-detail'),
    path('list/', UserListView.as_view(), name='user-list'),
    path('profile/', UserUpdateView.as_view(), name='user-update'),
    path('change_password/', UserChangePasswordView.as_view(), name='user-change-password'),
]
Beispiel #13
0
from django.urls import path,include
from accounts.views import UserDetailView

app_name = 'api-user'

urlpatterns = [
    path("<str:username>/",UserDetailView.as_view(),name='detail'),
]
Beispiel #14
0
 path('admin/', admin.site.urls),
 path('grappelli/', include('grappelli.urls')),
 path('admin/doc/', include('django.contrib.admindocs.urls')),
 path('admin/games/', include('games.urls.admin')),
 path('select2/', include('django_select2.urls')),
 path('openid/', include('django_openid_auth.urls')),
 path('user/', include('accounts.urls')),
 path('api/accounts/token', obtain_auth_token, name='accounts_get_token'),
 path('api/accounts/auth',
      include('rest_framework.urls', namespace='rest_framework')),
 path('api/tosec', include('tosec.urls')),
 path('api/runners', include('runners.runner_urls')),
 path('api/runtime', include('runners.runtime_urls')),
 path('api/games', include('games.urls.games')),
 path('api/installers', include('games.urls.installers')),
 re_path('api/users/me/?', UserDetailView.as_view(),
         name='api_user_detail'),
 path('api/bundles/<slug:slug>',
      BundleView.as_view(),
      name='api_bundle_view'),
 path('games', include('games.urls.pages')),
 path('bundles', include('bundles.urls')),
 path('runners', include('runners.urls')),
 path('email/', include('emails.urls')),
 path('steam-login/',
      login_begin,
      kwargs={'login_complete_view': 'associate_steam'},
      name='steam_login'),
 path('thegamesdb/', include('thegamesdb.urls')),
 path('server-status', server_status, name='server_status'),
 path('', include('common.urls')),
Beispiel #15
0
from django.contrib.auth.views import LoginView, LogoutView
from django.urls import path

from accounts.views import UserRegisterView, UserDetailView, UserUpdateView, PasswordChangeView

app_name = 'accounts'

urlpatterns = [
    path('login/', LoginView.as_view(), name='login'),
    path('logout/', LogoutView.as_view(), name='logout'),
    path('register/', UserRegisterView.as_view(), name='register'),
    path('<int:pk>/detail/', UserDetailView.as_view(), name='user-detail'),
    path('user/<int:pk>/edit/', UserUpdateView.as_view(), name='user-edit'),
    path('user/<int:pk>/password/change',
         PasswordChangeView.as_view(),
         name='password-edit'),
]
from django.urls import path
from accounts.views import register_view, UserDetailView, UserView, UserUpdateView, UserChangePasswordView
from django.contrib.auth.views import LoginView, LogoutView

urlpatterns = [
    path('login/', LoginView.as_view(), name='login'),
    path('logout/', LogoutView.as_view(), name='logout'),
    path('registration/', register_view, name='register'),
    path('index/', UserView.as_view(), name='index_accounts'),
    path('<int:id>/', UserDetailView.as_view(), name='all_accounts'),
    path('profile/', UserUpdateView.as_view(), name='update_user'),
    path('profile/change-password',
         UserChangePasswordView.as_view(),
         name='change_password'),
]
Beispiel #17
0
from django.contrib import admin
from django.urls import path
from django.contrib.auth.views import LoginView, LogoutView
from accounts.views import register_view, UserDetailView, UserUpdateView, UserChangePasswordView

app_name = 'accounts'

urlpatterns = [
    path('admin/', admin.site.urls),
    path('accounts/login/', LoginView.as_view(), name='login'),
    path('accounts/logout/', LogoutView.as_view(), name='logout'),
    path('registration/', register_view, name='regis'),
    path('user/<int:pk>/', UserDetailView.as_view(), name='user_detail'),
    path('profile/', UserUpdateView.as_view(), name='user-update-profile'),
    path('change-password/',
         UserChangePasswordView.as_view(),
         name='user-change-password'),
]
Beispiel #18
0
from django.urls import path

from django.contrib.auth.views import LoginView, LogoutView

from accounts.views import register_view, UserDetailView, UserChangeView, UserChangePasswordView

urlpatterns = [
    path('login/', LoginView.as_view(), name='login'),
    path('logout/', LogoutView.as_view(), name='logout'),
    path('create/', register_view, name='register'),
    path('user/<int:pk>/detail/', UserDetailView.as_view(),
         name='user_detail'),
    path('user/<int:pk>/update/', UserChangeView.as_view(),
         name='user_update'),
    path('user/<int:pk>/change-password/',
         UserChangePasswordView.as_view(),
         name='user_change_password')
]

app_name = 'accounts'
Beispiel #19
0
 url(r'^teams/listing.htm$', TeamsList.as_view(),{'html_id':'team'}),
 url(r'^final-team/listing.htm$', FeaturedTeamsList.as_view(),{'html_id':'team'}),
 url(r'^matches.htm$', MatchList.as_view(),{'html_id':'match'}),
 url(r'^news/(?P<slug>[-\w]+)/article(?P<news_id>[-\w]+).htm$', NewsdetailView.as_view(),name="news_detail"),
 url(r'^team/(?P<slug>[-\w]+)/(?P<team_id>[-\w]+).htm$', TeamdetailView.as_view(),name="team_detail"),
 url(r'^write_article.htm', Addarticleview.as_view()),
 url(r'^writer.htm',TemplateView.as_view(template_name="writer.html")),
 url(r'^gurgaon-final.htm',TemplateView.as_view(template_name="gurgaon-final.html")),
 url(r'^delhi-final.htm',TemplateView.as_view(template_name="delhi-final.html")),
 url(r'^gallery.htm',ImageListview.as_view(),{'html_id':'gallery'}),
 url(r'^edit/article(?P<news_id>[-\w]+).htm$', Editarticleview.as_view()),
 url(r'^image/upload/',NewsImageview.as_view()),
 url(r'^upload_image.htm$',Imageview.as_view()),
 url(r'^approve-article.htm$', NewsapprovalView.as_view()),
 url(r'^approve-image.htm$', ImageapprovalView.as_view()),
 url(r'^profile/(?P<slug>[-\w]+)/(?P<user_id>[-\w]+).htm$', UserDetailView.as_view()),
 url(r'^gallery/(?P<image_id>[-\w]+).htm$', ImageDetail.as_view()),
 url(r'^api/news/listing/$', NewsListApiView.as_view()),
 url(r'^api/teams/listing/$', TeamsListApiView.as_view()),
 url(r'^api/news/detail/$', NewsDetailApiView.as_view()),
 url(r'^api/teams/detail/$', TeamsDetailApiView.as_view()),
 url(r'^api/image/listing/$', ImagelistingApiView.as_view()),
 url(r'^api/image_disable/$', ImageDisableApiView.as_view()),
 url(r'^api/match/listing/$', MatchlistingApiView.as_view()),
 url(r'^api/user_data/',Userview.as_view()),
 url(r'^api/logout_user/',Logoutview.as_view()),
 url(r'^api/mobileupload/image/',MobileImageUpload.as_view()),
 url(r'^api/news_enable/',SaveNews.as_view()),
 url(r'^api/news_reject/',RejectNews.as_view()),
 url(r'^api/image_enable/',SaveImage.as_view()),
 url(r'^api/image_reject/',RejectImage.as_view()),
Beispiel #20
0
from django.urls import path

from accounts.views import SignUpUserView, UserLogoutView, UserLoginView, UserDetailView

urlpatterns = [
    path('login/', UserLoginView.as_view(), name='login'),
    path('logout/', UserLogoutView.as_view(), name='logout'),
    path('signup/', SignUpUserView.as_view(), name='sign_up'),
    path('profile/<int:pk>/', UserDetailView.as_view(), name='view_user_files')
]

app_name='accounts'
Beispiel #21
0
    re_path(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    re_path(r'^admin/games/', include('games.urls.admin')),
    re_path(r'^select2/', include('django_select2.urls')),
    re_path(r'^openid/', include('django_openid_auth.urls')),
    re_path(r'^user/', include('accounts.urls')),
    re_path(r'^api/accounts/token',
            obtain_auth_token,
            name='accounts_get_token'),
    re_path(r'^api/accounts/auth',
            include('rest_framework.urls', namespace='rest_framework')),
    re_path(r'^api/tosec', include('tosec.urls')),
    re_path(r'^api/runners', include('runners.runner_urls')),
    re_path(r'^api/runtime', include('runners.runtime_urls')),
    re_path(r'^api/games', include('games.urls.games')),
    re_path(r'^api/installers', include('games.urls.installers')),
    re_path(r'^api/users/me', UserDetailView.as_view(),
            name='api_user_detail'),
    re_path(r'^games/', include('games.urls.pages')),
    re_path(r'^bundles', include('bundles.urls')),
    re_path(r'^email/', include('emails.urls')),
    re_path(r'^steam-login/',
            login_begin,
            kwargs={'login_complete_view': 'associate_steam'},
            name='steam_login'),
    re_path(r'thegamesdb/', include('thegamesdb.urls')),
    re_path(r'^', include('common.urls')),
]

if settings.DEBUG:
    import debug_toolbar
    urlpatterns += [
Beispiel #22
0
from django.urls import path
from accounts.views import register_view, user_activate, UserDetailView, UserChangeView, UserChangePasswordView
from django.contrib.auth.views import LoginView, LogoutView

app_name = 'accounts'

urlpatterns = [
    path('login/', LoginView.as_view(), name='login'),
    path('logout/', LogoutView.as_view(), name='logout'),
    path('register/', register_view, name='register'),
    path('register/activate/', user_activate, name='user_activate'),
    path('profile/<pk>/', UserDetailView.as_view(), name='user_detail'),
    path('profile<pk>/edit/', UserChangeView.as_view(), name='user_update'),
    path('profile/<pk>/change-password/',
         UserChangePasswordView.as_view(),
         name='user_change_password')
]
Beispiel #23
0
         name='register_complete'),
 re_path(r'^business-account-request/$',
         login_required(BusinessRequestView.as_view()),
         name='business_request'),
 re_path(
     r'^activate/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
     Activate.as_view(),
     name='activate'),
 re_path(r'^my-jobs/$',
         login_required(MyJobsView.as_view()),
         name='my_jobs'),
 re_path(r'^profile/$',
         login_required(UserProfileView.as_view()),
         name='profile'),
 re_path(r'^profile/(?P<slug>[-\w]+)/$',
         login_required(UserDetailView.as_view()),
         name='profile_detail'),
 re_path(r'^profile/(?P<slug>[-\w]+)/update/$',
         login_required(UserUpdateView.as_view()),
         name='profile_update'),
 re_path(r'^user/list/$',
         login_required(UserListView.as_view()),
         name='user_list'),
 re_path(r'^skill/(?P<pk>\d+)/$',
         login_required(SkillDetailView.as_view()),
         name="skill_detail"),
 re_path(r'^skill/(?P<pk>\d+)/update/$',
         login_required(SkillUpdateView.as_view()),
         name="skill_update"),
 re_path(r'^experience/add/$',
         login_required(ExperienceView.as_view()),
Beispiel #24
0
from django.conf.urls import url
from django.conf import settings
from django.views.generic import RedirectView
from accounts.views import UserDetailView, ChangePasswordView

_urlpatterns = [
    url('^$', 'accounts.views.index', name='index'),
    url('^login/$', RedirectView.as_view(pattern_name='account:index'), 
        name='login'),
    url('^logout/$', 'django.contrib.auth.views.logout', {'next_page': '/'}, 
        name='logout'), 
    url('^register/$', 'accounts.views.register', name='register'),
    url('^edit/$', UserDetailView.as_view(), name='edit'),
    url('^forgot/$', 'accounts.views.forgot', name='forgot_password'),
    url('^forgot/(?P<code>[a-f0-9]{32})$', 'accounts.views.forgot_reset', 
        name='forgot_reset'),
    url('^confirm-account/$', 'accounts.views.social_confirm',
        name='social_confirm'),
    url('^verify_new_email$', 'accounts.views.verify_new_email',
        name='verify_new_email'),
    url('^verify/(?P<code>[a-f0-9]{32})$', 'accounts.views.verify_email', 
        name='verify_email'),
    url('^change-password/$', ChangePasswordView.as_view(),
        name='change_password'),
]


if settings.DEBUG:
    _urlpatterns.extend([
        url('^promote-user$', 'accounts.views.promote_user'),
        url('^debug$', 'accounts.views.debug_page')
Beispiel #25
0
from django.urls import path
from accounts.views import UserLogoutView, login_view, register_view, UserDetailView, UserUpdateView, \
    UserPasswordChangeView, UserListView, TeamAddView, TeamRemoveView

urlpatterns = [
    path('login/', login_view, name='login' ),
    path('logout/', UserLogoutView.as_view(), name='logout'),
    path('register/', register_view, name='register'),
    path('<int:pk>/', UserDetailView.as_view(), name='user details'),
    path('<int:pk>/edit', UserUpdateView.as_view(), name='update user info'),
    path('<int:pk>/password', UserPasswordChangeView.as_view(), name='change user password'),
    path('users/', UserListView.as_view(), name='list users'),

    path('project/<int:pk>/team/add/', TeamAddView.as_view(), name='add team member'),
    path('project/team/remove/<int:pk>/', TeamRemoveView.as_view(), name='remove member from team')
]


app_name='accounts'