Ejemplo n.º 1
0
from django.conf.urls import include, url
from django.contrib.auth.decorators import login_required as auth

from . import views

urlpatterns = [
    url(r'^$', auth(views.begin_import), name='import-list'),
    url(r'^confirm/$', auth(views.complete_import), name='complete-import'),
]
Ejemplo n.º 2
0
from django.conf.urls import include, url
from django.contrib.auth.decorators import login_required as auth

from .core.handler_views import accept
from .defects.urls import urlpatterns as defect_api_urls
from .customers.views import ProjectsViewSet, CustomerViewSet
from rest_framework import routers

router = routers.DefaultRouter()
router.register(r'projects', ProjectsViewSet)
router.register(r'customers', CustomerViewSet)

urlpatterns = [
    url(r'^defects/', include(defect_api_urls, namespace='defects')),
    url(r'^clients/', include(router.urls, namespace='clients')),
    url(r'^process_command/$', auth(accept), name='commands'),
]
Ejemplo n.º 3
0
    2. Add a URL to urlpatterns:  url(r'^blog/', include(blog_urls))
"""
from django.conf.urls import patterns, include, url
from django.contrib.auth.decorators import login_required as auth

from . import views
#from .views import CompanyCreate

urlpatterns = patterns(
    '',
    url(r'^$', views.RiskModel.as_view(), name='index'),
    url(r'^stats_json/$', views.stats_json, name='stats_json'),
    # Company
    url(r'^company/$', views.CompanyList.as_view(), name='company_list'),
    url(r'^company/(?P<pk>\d+)$', views.CompanyDetail.as_view(), name='company_detail'),
    url(r'^company/update/(?P<pk>\d+)/$', auth(views.CompanyUpdate.as_view()), name='company_update'),
    url(r'^company/delete/(?P<pk>\d+)/$', auth(views.CompanyDelete.as_view()), name='company_delete'),
    url(r'^company/create/$', auth(views.CompanyCreate.as_view()), name='company_create'),
    url(r'^company/listjson/$', auth(views.CompanyListJson.as_view()), name='company_list_json'),
    # Department
    url(r'^department/$', views.DepartmentList.as_view(), name='department_list'),
    url(r'^department/(?P<pk>\d+)/$', views.DepartmentDetail.as_view(), name='department_detail'),
    url(r'^department/update/(?P<pk>\d+)/$', auth(views.DepartmentUpdate.as_view()), name='department_update'),
    url(r'^department/delete/(?P<pk>\d+)/$', auth(views.DepartmentDelete.as_view()), name='department_delete'),
    url(r'^department/create/$', auth(views.DepartmentCreate.as_view()), name='department_create'),
    url(r'^department/listjson/$', auth(views.DepartmentListJson.as_view()), name='department_list_json'),
    # Duty
    url(r'^duty/$', views.DutyList.as_view(), name='duty_list'),
    url(r'^duty/(?P<pk>\d+)/$', views.DutyDetail.as_view(), name='duty_detail'),
    url(r'^duty/update/(?P<pk>\d+)/$', auth(views.DutyUpdate.as_view()), name='duty_update'),
    url(r'^duty/delete/(?P<pk>\d+)/$', auth(views.DutyDelete.as_view()), name='duty_delete'),
Ejemplo n.º 4
0
from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.conf import settings
from django.contrib.auth.decorators import login_required as auth

from main.views.comment import LinkUpdateView
from main.views.comment import LinkDeleteView

urlpatterns = patterns(
    '',
    url(r'^$', 'main.views.views.home', name='home'),
    url(r'^register/', 'main.views.register.new_user', name='newuser'),
    url(r'^login/', 'main.views.login.user_login', name='user_login'),
    url(r'^link/update/(?P<pk>\d+)/$',
        auth(LinkUpdateView.as_view()),
        name='link_update'),
    url(r'^link/delete/(?P<pk>\d+)/$',
        auth(LinkDeleteView.as_view()),
        name='link_delete'),
    url(r'^logout/', 'main.views.login.user_logout', name='user_logout'),
    url(r'^user/(?P<num>\d+)/$', 'main.views.views.profile', name='user'),
    url(r'^search/', 'main.views.views.search_results', name='search_results'),
    url(r'^user/edit/(?P<num>\d+)/$',
        'main.views.edit_user.edit',
        name='edituser'),
    url(r'^user/addcorgi/(?P<num>\d+)/$',
        'main.views.corgi.add_corgi',
        name='add_corgi'),
    url(r'^user/addpost/(?P<num>\d+)/$',
        'main.views.comment.add_comment',
        name='add_comment'),
Ejemplo n.º 5
0
from django.conf.urls import include, url
from django.contrib.auth.decorators import login_required as auth
from rest_framework import routers

from . import views

router = routers.DefaultRouter()
router.register(r'all', views.DefectBaseViewSet, 'all')
router.register(r'active', views.DefectActiveViewSet, 'active')
router.register(r'recent', views.RecentlyChangedDefectViewSet, 'recent')
router.register(r'status_list', views.StatusViewSet)
router.register(r'priority_list', views.PriorityViewSet)
router.register(r'suggest_defects', views.AutoCompleteDefectTitles, 'suggest')
router.register(r'suggest_projects', views.AutoCompleteProjects,
                'project-suggest')
router.register(r'defect_activities', views.DefectActivitiesForProject,
                'activities')

urlpatterns = [
    url(r'', include(router.urls)),
    url(r'^new/$', auth(views.CreateDefectView.as_view()), name='create'),
    url(r'^detail/(?P<pk>\d+?)/$',
        views.DefectDetailView.as_view(),
        name='detail'),
    url(r'^more_like_this/(?P<pk>\d+?)/$',
        views.more_like_this_defect,
        name='similar-defects'),
]
Ejemplo n.º 6
0
from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
from django.contrib.auth.decorators import login_required as auth
from links.views import LinkListView, UserProfileDetailView, UserProfileEditView, LinkCreateView, LinkDetailView, LinkUpdateView, LinkDeleteView

urlpatterns = patterns('',
    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
    url(r'^$', LinkListView.as_view(), name='home'), # ^$ is beginning and end, respectively; that refers to /

    url(r"^login/$", "django.contrib.auth.views.login", {"template_name": "login.html"}, name="login"),
    url(r"^logout/$", "django.contrib.auth.views.logout_then_login", name="logout"),

    url(r"^accounts/", include("registration.backends.simple.urls")), #take note that I've specified just a beginning here, no end ($). the registration package appends /register.
    url(r"^users/(?P<slug>\w+)/$", UserProfileDetailView.as_view(), name="profile"),
    url(r"edit_profile/$", auth(UserProfileEditView.as_view()), name="edit_profile"),
    url(r"^link/create/$", auth(LinkCreateView.as_view()), name="link_create"),
    url(r"^link/(?P<pk>\d+)$", LinkDetailView.as_view(), name="link_detail"),
    url(r"^link/update/(?P<pk>\d+)$", auth(LinkUpdateView.as_view()), name="link_update"),
    url(r"^link/delete/(?P<pk>\d+)$", auth(LinkDeleteView.as_view()), name="link_delete")    
)
Ejemplo n.º 7
0
from django.conf.urls import url
from . import views
from django.contrib.auth.decorators import login_required as auth

urlpatterns = [
    url(r'^$', views.musicians_view, name='index'),
    url(r'^playingstyle/(?P<playingstyleslug>[-\w]*)/$',
        views.musicians_view,
        name='musicians_by_playing_style'),
    url(r'^instrument/(?P<instrumentslug>[-\w]*)/$',
        views.musicians_view,
        name='musicians_by_instrument'),
    url(r'^(?P<id>\d+)/(?P<slug>[-\w]*)/$',
        views.MusicianDetail.as_view(),
        name='musician_detail'),
    url(r'^add-musician/$',
        auth(views.AddMusician.as_view()),
        name='add_musician'),
    url(r'^add-video/(?P<slug>[-\w]*)/$',
        auth(views.AddVideo.as_view()),
        name='add_video'),
]
from links.export_website_feedback import export_error_feedback, export_website_feedback
from links.user_feedback import website_feedback, see_website_feedback, website_choices_feedback, export_nicknames_csv
from django.conf.urls import patterns, include, url
from django.contrib.auth.decorators import login_required as auth
from django.contrib import admin

admin.autodiscover()

urlpatterns = patterns(
    '',
    ############################################# Nicknames ##########################################
    url(r'^export-nicknames-csv/$',
        auth(export_nicknames_csv),
        name='export_nicknames_csv'),
    #############################################Ads##########################################
    url(r'^see_website_feedback/$',
        auth(see_website_feedback),
        name='see_website_feedback'),
    url(r'^feedback/$', auth(website_feedback), name='website_feedback'),
    url(r'^choices_feedback/$',
        auth(website_choices_feedback),
        name='website_choices_feedback'),
    #############################################Ads##########################################
    url(r'^export_website_feedback/$',
        auth(export_website_feedback),
        name='export_website_feedback'),
    url(r'^export_error_feedback/$',
        auth(export_error_feedback),
        name='export_error_feedback'),
)
Ejemplo n.º 9
0
 url(r'^index/', 'contacts.views.landing'),
 url(r'^contact/', include('contacts.urls')),
 url(r'^accounts/login/$', 'contacts.views.login'),
 url(r'^accounts/auth/$', 'contacts.views.auth_view'),
 url(r'^accounts/logout/$', 'contacts.views.logout'),
 #url(r'^accounts/loggedin/$', 'contacts.views.loggedin'),
 url(r'^accounts/invalid/$', 'contacts.views.invalid_login'),
 url(r"^accounts/", include("registration.backends.simple.urls")),
 #url(r'^accounts/register/complete/$', 'contacts.views.register_success'),
 url(
     r'^personal/$',
     contacts.views.personal_info,
     name='personal',
 ),
 #url(r'^user/$', 'contacts.views.user_profile_edit'),
 url(r'^user/$', auth(UserProfileEditView.as_view()), name='edit_profile'),
 url(r'^users/(?P<slug>\w+)/$',
     auth(UserProfileDetailView.as_view()),
     name='profile'),
 url(r'^users/(?P<slug>\w+)/submissions/$',
     'contacts.views.get_submissions'),
 url(r'^users/(?P<slug>\w+)/comments/$', 'contacts.views.get_comments'),
 url(r'^', include('contacts.urls')),
 url(r'^accounts/post/$', 'contacts.views.post_article_view'),
 url(r'^accounts/articles/$', 'contacts.views.article_view'),
 url(r'^accounts/articles/like/(?P<article_id>\d+)/$',
     'contacts.views.like_article'),
 url(r"^accounts/articles/comments/(?P<article_id>\d+)/$",
     "contacts.views.add_comment"),
 url(r'^accounts/news/(?P<news_id>\d+)/$', 'contacts.views.newscontent'),
 url(r'accounts/articles/comments/newest/$',
Ejemplo n.º 10
0
from django.conf.urls import patterns, include, url
from django.contrib.auth.decorators import login_required as auth
from django.contrib.auth.views import logout_then_login
from .views import UserDetailView
from .views import UserCreateView
from .views import UserUpdateView
from .views import ChangePasswordView
urlpatterns = patterns('',
    # Examples:
    #url(r'^profiles$', HomePageView.as_view(), name='home'),
    url(r'login/$', "django.contrib.auth.views.login", 
        {"template_name": "UserProfile/login.html"}, name='login'),
    url(r'logout/$', "django.contrib.auth.views.logout_then_login",
        name='logout'),
    url(r'profile/(?P<slug>\w+)/$', auth(UserDetailView.as_view()), name='profile'),
    url(r'register/$', UserCreateView.as_view(), name='register'),
    url(r'update/(?P<slug>\w+)/$', auth(UserUpdateView.as_view()), name='update'),
    url(r'changepwd/$',auth(ChangePasswordView), name='changepassword'),
)
Ejemplo n.º 11
0
from links.models import UserProfile, Vote
from django.views.generic.base import TemplateView
from links.views import LinkListView, UserProfileDetailView, UserProfileEditView, LinkCreateView, LinkDetailView, LinkUpdateView, LinkDeleteView, VoteFormView, ScoreHelpView, UserSettingsEditView #MyRegistrationView
#from django.conf.urls.i18n import i18n_patterns

admin.autodiscover()

urlpatterns = patterns('',
    url(r'^admin/', include(admin.site.urls)),
    url(r'^$', LinkListView.as_view(), name='home'),
	url(r'^login/$', 'django.contrib.auth.views.login', {'template_name': 'login.html'}, name="login"),
	url(r'^logout/$', 'django.contrib.auth.views.logout_then_login', name="logout"),
	#url(r'^register/$', MyRegistrationView.as_view(), name='registration_register'),
	#url(r'^register/closed/$', TemplateView.as_view(template_name='registration/registration_closed.html'),
    #                      name='registration_disallowed'),
    #(r'', include('registration.auth_urls')),
	url(r'^accounts/', include('registration.backends.simple.urls')),
	url(r'^users/(?P<slug>\w+)/$', UserProfileDetailView.as_view(), name="profile"),
	url(r'^edit_profile/$', auth(UserProfileEditView.as_view()), name="edit_profile"),
	url(r'^edit_settings/$', auth(UserSettingsEditView.as_view()), name="edit_settings"),
	url(r'^link/create/$', LinkCreateView.as_view(), name='link_create'),
	url(r'^link/(?P<pk>\d+)/$', LinkDetailView.as_view(), name='link_detail'),
	url(r'^score/$', auth(ScoreHelpView.as_view()), name='score_help'),
	url(r'^link/update/(?P<pk>\d+)/$', auth(LinkUpdateView.as_view()), name='link_update'),
    url(r'^link/delete/(?P<pk>\d+)/$', auth(LinkDeleteView.as_view()), name='link_delete'),
    url(r'^comments/', include('django.contrib.comments.urls')),
    url(r'^vote/$', auth(VoteFormView.as_view()), name="vote"),
    #url(r'^i18n/', include('django.conf.urls.i18n')),
    url('^i18n/setlang/', 'django.views.i18n.set_language', name='set_language'),

)
Ejemplo n.º 12
0
# importing django url patterns modules
from django.conf.urls import patterns, include, url
from django.contrib.auth.decorators import login_required as auth

from users.depts_views import DeptDetailView, DeptView

# auth url patterns
urlpatterns = patterns(
    '',
    url(r"^$", auth(DeptView), name="depts"),
    url(r'^([A-Z]{2,3})/$', auth(DeptDetailView.as_view()),
        name="single_dept"),
    url(r'^([A-Z]{2,3})/([A-Z1-4]{2})$',
        auth(DeptDetailView.as_view()),
        name="single_dept_filter"),
)
Ejemplo n.º 13
0
# importing django url patterns modules
from django.conf.urls import patterns, include, url
from django.contrib.auth.decorators import login_required as auth
from .views import PasswordChangeView

# auth url patterns
urlpatterns = patterns(
    '',
    url(r"^login/$",
        "django.contrib.auth.views.login",
        {"template_name": "auth/login.html"},
        name="login"),
    url(r"^logout/$",
        "django.contrib.auth.views.logout_then_login",
        name="logout"),
    url(r'^settings/change_password/$',
        auth(PasswordChangeView.as_view()),
        name="change_password"),
)
Ejemplo n.º 14
0
Archivo: urls.py Proyecto: erif/Eve

urlpatterns = patterns('',
    url(r'^$', Index.as_view(),
        name='index'),
    url('^about/$', About.as_view(), 
        name='about'),
    url('^addLink/$', LinkAdd.as_view(), 
        name='addLink'),
    url('^listLink/$', LinkList.as_view(), 
        name='listLink'),

    url('^detailsLink/(?P<pk>\d+)/$', DetailView.as_view(model=Link, context_object_name='item', 
                                    template_name='Link/link_detail.html'), 
        name='detailsLink'),
    url('^tags/$', TagView.as_view(),
        name='tagView'),
    url('^delete/(?P<pk>\d+)/$', LinkDelete.as_view(model=Link, template_name='Link/link_confirm_delete.html'),
        name='deleteLink'),
    
    url('^mylinks/$', MyLinks.as_view(),
        name='mylinks'),
    url(r'^users/(?P<slug>\w+)/$', UserProfileDetailView.as_view(),
        name="profile"),
    url(r'edit_profile/$', auth(UserProfileEditView.as_view()),
        name="edit_profile"),
    url(r'^json_mylinks/$', JSONLinkList.as_view()),
    url(r'^json_link/(?P<pk>\d+)/$', JSONLinkDetail.as_view() ),
     
)
urlpatterns = format_suffix_patterns(urlpatterns)
Ejemplo n.º 15
0
from django.urls import path
from django.contrib.auth.decorators import login_required as auth
from apps.classroom.views import (Index, Create, Edit, Delete, Search, Table)

app_name = 'classroom'

urlpatterns = [
    path('', auth(Index.as_view()), name='index'),
    path('create/', auth(Create.as_view()), name='create'),
    path('edit/<pk>/', auth(Edit.as_view()), name='edit'),
    path('delete/<pk>/', auth(Delete.as_view()), name='delete'),
    path('search/<slug:find>/', auth(Search.as_view()), name='search'),
    path('table/', auth(Table.as_view()), name='table'),
]
Ejemplo n.º 16
0
# importing django url patterns modules
from django.conf.urls import patterns, include, url
from django.contrib.auth.decorators import login_required as auth

from users.edit_views import UpdateProfilePic, UpdateContactInfo, EducationListView, UpdateSkills, AddSkill
from users.edit_views import AddArea, UpdateAreas, UpdateEducation, AddEducation, DelEducation
from users.edit_views import UserRoleListView, AddUserRole, UpdateUserRole, DelUserRole, AddRole, AddRolePermission
from users.edit_views import UpdateExperience,DelExperience,AddExperience,ExperienceListView
from users.edit_views import AchievementListView,UpdateAchievement,AddAchievement,DelAchievement
from users.edit_views import UpdateSummary

# auth url patterns
urlpatterns = patterns('',
    url(r"^contact_info/$", auth(UpdateContactInfo.as_view()), name="edit_contact_info"),
    url(r"^profile_pic/$", auth(UpdateProfilePic.as_view()), name="edit_profile_pic"),
    url(r"^education/$", auth(EducationListView.as_view()), name="education_list"),
    url(r"^education/add$", auth(AddEducation.as_view()), name="education_add"),
    url(r"^education/(?P<pk>[0-9]+)/update$", auth(UpdateEducation.as_view()), name="education_update"),
    url(r"^education/(?P<pk>[0-9]+)/delete$", auth(DelEducation.as_view()), name="education_del"),
    url(r"^skills/$", auth(UpdateSkills.as_view()), name="edit_skills"),
    url(r"^skills/add$", auth(AddSkill.as_view()), name="skill_add"),
    url(r"^areas/$", auth(UpdateAreas.as_view()), name="edit_areas"),
    url(r"^areas/add$", auth(AddArea.as_view()), name="area_add"),
    url(r"^roles/$", auth(UserRoleListView.as_view()), name="user_role_list"),
    url(r"^roles/add$", auth(AddUserRole.as_view()), name="user_role_add"),
    url(r"^roles/add/new_role/$", auth(AddRole.as_view()), name="role_add"),
    url(r"^roles/add/new_role_permission/$", auth(AddRolePermission.as_view()), name="role_permission_add"),
    url(r"^roles/(?P<pk>[0-9]+)/update$", auth(UpdateUserRole.as_view()), name="user_role_update"),
    url(r"^roles/(?P<pk>[0-9]+)/delete$", auth(DelUserRole.as_view()), name="user_role_del"),
    url(r"^achievements/$", auth(AchievementListView.as_view()), name="achievement_list"),
    url(r"^achievements/add$", auth(AddAchievement.as_view()), name="achievement_add"),
Ejemplo n.º 17
0
#from links.number_verification import verify_forgetter_number

############################Optimizely Experiment############################
# from links.views import first_time_choice, new_user_gateway, first_time_best#
#############################################################################

admin.autodiscover()

urlpatterns = patterns('',
	
	########################################Optimizely####################################################
	# url(r'^first_time_best/(?P<algo>[\w.@+-]+)/$', auth(first_time_best), name='first_time_best'),#
	# url(r'^new_user_choice/(?P<best>[\w.@+-]+)/(?P<algo>[\w.@+-]+)/$', auth(first_time_choice), name='first_time_choice'),
	######################################################################################################
	
	url(r'^turn-off-newbie/(?P<origin>\d+)/$', auth(turn_off_newbie), name='turn_off_newbie'),
	url(r'^new-user-gateway/$', auth(new_user_gateway), name='new_user_gateway'),
	url(r'^new-user-gateway/(?P<lang>[\w.@+-]+)/$', auth(new_user_gateway), name='new_user_gateway'),
	url(r'^new-user-choice/$', auth(first_time_choice), name='first_time_choice'),
	url(r'^new-user-choice/(?P<lang>[\w.@+-]+)/$', auth(first_time_choice), name='first_time_choice'),

	url(r'^duc/$',create_dummy_user, name="create_dummy_user"),
	url(r'^goog_login/$', log_google_in, {"template_name": "unauth/login_backdoor.html"}, "login_backdoor"),

	############################## Forgot Password Functionality ##############################

	url(r'^forgot-password/$',forgot_password, name="forgot_password"),
	#url(r'^forgot-password/sms/$',send_SMS_to_forgetter, name="send_SMS_to_forgetter"),
	# url(r'^forgot-password/verify-pin/$',verify_forgetters_pin, name="verify_forgetters_pin"),

	url(r'^forgot-password/set-new-pass/$',set_forgetters_password, name="set_forgetters_password"),
Ejemplo n.º 18
0
urlpatterns = patterns(
    'instructor_portal.views',

    # Main web portal entrance.
    (r'^$', dashboard),

    #    url(r'^schedule/$', include('schedule.urls')),

    #about page
    url(r'^about/$', instructor_about, name='instructor_about'),
    url(r'^courses/$', 'display_courses',
        name='display_courses'),  #show all courses available    

    #edit instructor profile
    url(r'^edit_profile/$',
        auth(InstructorProfileEditView.as_view()),
        name="edit_profile"),

    # create course page
    url(r'^new-course/', create_course, name='create_course'),

    # create a new assignment page
    url(r'^(\d+)/new-assignment/$', 'new_assignment'),

    # create a new lecture page
    url(r'^(\d+)/new-lecture/$', 'new_lecture'),

    # course_info for instructors
    url(r'^([A-Z|a-z]{2,4})/(\d+)/$',
        display_course_info,
        name='display_course_info'),
Ejemplo n.º 19
0
urlpatterns = patterns('',

    url(r'^admin/', include(admin.site.urls)),
    url(r'^comments/', include("django.contrib.comments.urls")),
    url(r'^$',LinkListView.as_view(), name='home'),
    
    url(r"^login/$", "django.contrib.auth.views.login",
        {"template_name": "login.html"}, name="login"),
    url(r"^logout/$", "django.contrib.auth.views.logout_then_login",
        name="logout"),
        
    url(r"^accounts/", include("registration.backends.simple.urls")),
    url(r"^users/(?P<slug>\w+)/$", UserProfileDetailView.as_view(), 
        name="profile"),
    url(r"edit_profile/$", UserProfileEditView.as_view(),
        name="edit_profile"),
        
    url(r"^link/create/$", auth(LinkCreateView.as_view()),
        name="link_create"),
    
    url(r"^link/(?P<pk>\d+)$", LinkDetailView.as_view(),
        name="link_detail"),
        
    url(r"^link/update/(?P<pk>\d+)$", auth(LinkUpdateView.as_view()),
        name="link_update"),
        
    url(r"^link/delete/(?P<pk>\d+)$", auth(LinkDeleteView.as_view()),
        name="link_delete"),
)
Ejemplo n.º 20
0
from django.conf.urls import patterns, url, include
from django.contrib.auth.decorators import login_required as auth
from django.contrib import admin
from links.verification_views import verify_user_artificially, pin_verification, number_verification_help,\
wait_before_verifying, account_kit_verification_commencement, account_kit_verification_processing, account_kit_verification_result,\
unverify_user, verify_user_mobile_unpaid #verify_user_mobile_paid
from links.unauth_views import render_set_new_password
admin.autodiscover()

urlpatterns = patterns('',
	############################################# Artificial Verification and Unverfication Urls #####################
	url(r'^verification/mobile/artificial/$', auth(verify_user_artificially), name='verify_user_artificially'),
	url(r'^verification/mobile/unverified/$', auth(unverify_user), name='unverify_user'),
	############################################# Via 3rd Party SMS Service ##########################################
	#url(r'^verification/mobile/$', auth(verify_user_mobile_paid), name='verify_user_mobile_paid'),
	url(r'^verification/confirm-pin/$', auth(pin_verification), name='pin_verification'),
	url(r'^verification/help/$', auth(number_verification_help), name='number_verification_help'),
	#url(r'^verification/please-wait/$', auth(wait_before_verifying), name='wait_before_verifying'),
	# url(r'^verification/pink-star/help/$', auth(pink_star_verification_help), name='pink_star_verification_help'),
	############################################# Via Account Kit ##########################################
	url(r'^verification/mobile/$', auth(verify_user_mobile_unpaid), name='verify_user_mobile_unpaid'),
	url(r'^verification/mobile/via-account-kit/$', auth(account_kit_verification_commencement), name='account_kit_verification_commencement'),
	url(r'^verification/mobile/via-account-kit/process-verification/$', auth(account_kit_verification_processing), name='account_kit_verification_processing'),
	url(r'^verification/mobile/via-account-kit/verification-successful/account-verification/$', auth(account_kit_verification_result), name='account_kit_verification_successful'),
	url(r'^verification/mobile/via-account-kit/verification-successful/forgot-pass/$', render_set_new_password, name='account_kit_forgot_pass_verification_successful'),
	url(r'^verification/mobile/via-account-kit/verification-failed/account-verification/$', auth(account_kit_verification_result), name='account_kit_verification_failed'),
	url(r'^verification/mobile/via-account-kit/verification-failed/forgot-pass/$', account_kit_verification_result, name='account_kit_forgot_pass_verification_failed'),
)
Ejemplo n.º 21
0
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
#from django_registration.backends.activation import urls
from django.urls import path, include
from django.contrib.auth.decorators import login_required as auth
from django.contrib.auth.views import LoginView, logout_then_login
from links.views import LinkListView, UserProfileDetailView, UserProfileEditView

urlpatterns = [
    path('admin/', admin.site.urls),
    path('', LinkListView.as_view(), name='home'),
    path('login/',
         LoginView.as_view(template_name="links/login.html"),
         name='login'),
    path('logout/', logout_then_login, name='logout'),
    path('accounts/', include('django_registration.backends.one_step.urls')),
    path('users/<slug>/', UserProfileDetailView.as_view(), name="profile"),
    path('edit_profile/',
         auth(UserProfileEditView.as_view()),
         name="edit_profile"),
]
Ejemplo n.º 22
0
     MyRegistrationView.as_view(),
     {'backend': 'registration.backends.default.DefaultBackend'},
     name='registration_register'),
 url(r'^register/closed/$',
     TemplateView.as_view(
         template_name='registration/registration_closed.html'),
     name='registration_disallowed'),
 url(r'^account/reset_password_confirm/(?P<uidb64>[0-9A-Za-z]+)-(?P<token>.+)/$',
     PasswordResetConfirmView.as_view(),
     name='password_reset_confirm'),
 url(r'^account/reset_password',
     ResetPasswordRequestView.as_view(),
     name="reset_password"),
 url(r'^admin/', include(admin.site.urls), name="admin"),
 url(r'^dis/export/xls/(?P<pk>\d+)/$',
     auth(dis_export_comandes_xls),
     name='dis_export_comandes_xls'),
 url(r'^pro/(?P<pro>\d+)/export/xls/(?P<pk>\d+)/$',
     auth(pro_export_comandes_xls),
     name='pro_export_comandes_xls'),
 url(r'^vista_productors/',
     auth(ProductorsListView.as_view()),
     name="productor_list"),
 url(r'^distri_cal/',
     auth(ProductorsCalListView.as_view()),
     name="productor_cal_list"),
 url(r'^distri_hist/',
     auth(ProductorsHistListView.as_view()),
     name="productor_hist_list"),
 url(r'^pro/(?P<pro>\d+)/vista_comandes/',
     auth(ComandesListView.as_view()),
Ejemplo n.º 23
0
from django.conf.urls import url
from django.contrib.auth.decorators import login_required as auth
from . import views

urlpatterns = [
    url(r'import/(?P<type>(\w+))$', auth(views.run_import_pubs), name='import_publications'),
    url(r'get/$', auth(views.get_pubs_count), name='get_publications'),
    url(r'gen/(?P<type>(\w+))$', auth(views.get_pubs_by_docx), name='get_publications_docx'),


]
Ejemplo n.º 24
0
from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.auth import views as auth_views
from django.contrib.auth.decorators import login_required as auth

from message.views import LinkListView, UserProfileDetailView, UserProfileEditView
from message.views import MessageCreateView, MessageDetailView
from message.views import MessageUpdateView, MessageDeleteView

urlpatterns = [
    url(r'^accounts/', include('allauth.urls')),
    url(r'^admin/', include(admin.site.urls)),
    
    url(r'^$', LinkListView.as_view(), name='my_home'),
    url(r'^user/(?P<slug>\w+)/', UserProfileDetailView.as_view(), name="profile"),
    url(r'^edit_profile/$', auth(UserProfileEditView.as_view()), name="edit_profile"),
    url(r'^message/(?P<pk>\d+)$', (MessageDetailView.as_view()), name="message_detail"),
    url(r'^message/create/$', auth(MessageCreateView.as_view()), name="message_create"),
    url(r'^message/update/(?P<pk>\d+)/$', auth(MessageUpdateView.as_view()), name="message_update"),
    url(r'^message/delete/(?P<pk>\d+)/$', auth(MessageDeleteView.as_view()), name="message_delete"),
]
	
Ejemplo n.º 25
0
from django.conf.urls import patterns, url
from django.contrib.auth.decorators import login_required as auth
from userprofiles import views

urlpatterns = patterns('',
    url(r'^/edit_profile/$', auth(views.UserProfileEditView.as_view()), name="edit_profile"),
    url(r'^/(?P<slug>\w+)/$', views.UserProfileDetailView.as_view(), name='profile'),
)
Ejemplo n.º 26
0
from django.contrib import admin
from django.conf.urls import patterns, url
from django.contrib.auth.decorators import login_required as auth
from links.voting_views import vote_result, cast_vote, show_voting_summary,show_handpicked_count, export_voting_records, user_sybil_history,\
vote_history_admin_view, export_voting_reputation_records, show_old_voting_summary

admin.autodiscover()

urlpatterns = patterns(
    '',
    ###################################### Voting ########################################
    url(r'^cast_vote/$', auth(cast_vote), name='cast_vote'),
    url(r'^vote_result/$', auth(vote_result), name='vote_result'),
    url(r'^voting/export/$',
        auth(export_voting_records),
        name='export_voting_records'),
    url(r'^voting/super-defenders/$',
        auth(show_handpicked_count),
        name='show_handpicked_count'),
    url(r'^voting/history/(?P<user_id>\d+)/$',
        auth(vote_history_admin_view),
        name='vote_history_admin_view'),
    url(r'^voting/export/reputation/$',
        auth(export_voting_reputation_records),
        name='export_voting_reputation_records'),
    url(r'^voting/sybils/(?P<user_id>\d+)/(?P<hist_type>[\w.@+-]+)/$',
        auth(user_sybil_history),
        name='user_sybil_history'),
    url(r'^voting_results/(?P<pk>\d+)/(?P<orig>\d+)/(?P<pht>\d+)/$',
        auth(show_voting_summary),
        name='show_voting_summary'),
Ejemplo n.º 27
0
 url(r'^$', homepage, name='homepage'),
 #url(r'^(?P<username>[-\w\d]+)/site_access$', SiteAccessFormView.as_view(), name='site_access'),
 url(r'^contact/$', ContactFormView.as_view(), name='contact_form'),
 url(r'^contact/thanks/$', contact_thanks, name='contact_thanks'),
 url(r'^terms/$', TemplateView.as_view(template_name='terms.html')),
 url(r'^cookie/$', TemplateView.as_view(template_name='cookie_policy.html')),
 url(r'^big_video/$', TemplateView.as_view(template_name='example-ambient.html')),
 url(r'^themes/$', TemplateView.as_view(template_name='themes/select_theme.html'), {'theme_range' : range(65)}),
 #url(r'^premium_themes/$', TemplateView.as_view(template_name='themes/select_premium_theme.html'), {'theme_range' : range(33)}),
 url(r'^privacy/$', TemplateView.as_view(template_name='privacy.html')),
 url(r'^about/$', about_us, name='about'),
 url(r'^(?P<username>[-\w\d]+)/payment$', PaymentFormView.as_view(), name='payment_form'),
 url(r'^profile/$', user_profile),
 url(r'^(?P<username>[-\w\d]+)/theme$', ThemeFormView.as_view(), name='theme_form'),
 #url(r'^(?P<username>[-\w\d]+)/premium_theme$', PremiumThemeFormView.as_view(), name='premium_theme_form'),
 url(r'^audio/create/(?P<username>[-\w\d]+)$', auth(AudioFileCreateView.as_view()), name='audio_create'),
 url(r'^(?P<username>[-\w\d]+)/music-album$', AudioFileListView.as_view(), name='audio_list'),
 url(r'^audio/edit/(?P<username>[-\w\d]+)/(?P<pk>[\d]+)$', auth(AudioFileUpdateView.as_view()), name='audio_update'),
 url(r'^audio/delete/(?P<username>[-\w\d]+)/(?P<pk>[\d]+)$', auth(AudioFileDeleteView.as_view()), name='audio_delete'),
 url(r'^profile/(?P<username>[-\w\d]+)$', HomePageFormView.as_view(), name='profile_form'),
 #url(r'^(?P<username>[-\w\d]+)/info$', GalleryListView.as_view(), name='gallery'),
 url(r'^(?P<username>[-\w\d]+)/(?P<pk>[\d]+)/photo$', GalleryDetailView.as_view(), name='photo_detail'),
 url(r'^(?P<username>[-\w\d]+)/photo-album$', GalleryListView.as_view(), name='photo_list'),
 url(r'^photo-album/create/(?P<username>[-\w\d]+)$', auth(PhotoCreateView.as_view()), name='photo_create'),
 url(r'^photo/edit/(?P<username>[-\w\d]+)/(?P<pk>[\d]+)$', auth(PhotoUpdateView.as_view()), name='photo_update'),
 url(r'^photo/delete/(?P<username>[-\w\d]+)/(?P<pk>[\d]+)$', auth(PhotoDeleteView.as_view()), name='photo_delete'),
 url(r'^(?P<username>[-\w\d]+)/map-of-events$', AddressListView.as_view(), name='events_list'),
 url(r'^address/edit/(?P<username>[-\w\d]+)/(?P<pk>[\d]+)$', auth(AddressUpdateView.as_view()), name='address_update'),
 url(r'^(?P<username>[-\w\d]+)/rsvp$', RsvpFormView.as_view(), name='rsvp_form'),
 url(r'^(?P<username>[-\w\d]+)/rsvp/thanks$', rsvp_thanks, name='rsvp_thanks'),
 url(r'^(?P<username>[-\w\d]+)/homepage$', PageListView.as_view(), name='page_list'),
Ejemplo n.º 28
0
first_time_public_refresh, remove_officer, group_hide_submission, cancel_open_group_invite, left_private_group, del_private_group, left_public_group, \
preview_open_group, create_open_group, invite_private, join_public_group, show_kicked_users, quick_accept_open_group_rules, process_officer_application_result, \
owner_rejoining_public_group, force_rules_onto_members, process_kicking_feedback, unkick_users, display_administrative_activity, first_time_refresh, \
public_group_invite_help, unaccepted_public_mehfil_invites, direct_message, process_open_group_feedback, show_open_group_feedback, delete_open_group_feedback, \
processing_group_ownership_transfer, private_mehfil_oversight_dashboard, join_private_group, group_ownership_transfer_tac, priv_group, display_group_info_page, \
display_detailed_info, display_group_users_list, send_request_to_owner, cancel_ownership_request, private_group_invite_help, unaccepted_private_mehfil_invites, \
cancel_closed_group_invite, private_group_hide_submission, private_group_request_denied, apply_for_officer, display_officer_application, \
get_ranked_groups, del_public_group, view_officer_app_help, view_officer_application_form, view_officer_app_history, display_officer_app_detailed_info,\
group_page, public_group_guidance, group_invites, reject_private_group_invite,reject_public_group_invite, can_create_group, DirectMessageView, GroupTypeView,\
ClosedGroupHelpView, PublicGroupView, ChangeGroupRulesView, ChangePrivateGroupTopicView, ChangeGroupTopicView, PrivateGroupView, DirectMessageCreateView,\
ReinvitePrivateView, ClosedGroupCreateView, InviteUsersToGroupView, InviteUsersToPrivateGroupView, GroupTypeView, ReinviteView

admin.autodiscover()

urlpatterns = patterns('',
	url(r'^mehfil/public/refresh/$', auth(first_time_public_refresh), name='first_time_public_refresh'),
	url(r'^mehfil/public/$', auth(PublicGroupView.as_view()), name='public_group_reply'),
	url(r'^mehfil/public/redirect/$', auth(public_group), name='public_group'),
	url(r'^mehfil/public/redirect/(?P<slug>[\w.@+-]+)/$', auth(public_group), name='public_group'),
	url(r'^mehfil/public/denied/$', auth(public_group_request_denied), name='public_group_request_denied'),
	url(r'^mehfil/private/denied/$', auth(private_group_request_denied), name='private_group_request_denied'),
	url(r'^mehfil/private/refresh/(?P<unique>[\w.@+-]+)/$', auth(first_time_refresh), name='first_time_refresh'),
	url(r'^mehfil/private/redirect/$', auth(priv_group), name='priv_group'),
	url(r'^mehfil/private/$', auth(PrivateGroupView.as_view()), name='private_group_reply'),
	################################# Mehfil deletion #############################################
	url(r'^mehfil/public/reject-invite/$', auth(reject_public_group_invite), name='reject_public_group_invite'),
	url(r'^mehfil/public/delete/(?P<pk>\d+)/(?P<unique>[\w.@+-]+)/$', auth(del_public_group), name='del_public_group'),
	url(r'^mehfil/public/exited/$', auth(left_public_group), name='left_public_group'),
	url(r'^mehfil/private/delete/(?P<pk>\d+)/(?P<unique>[\w.@+-]+)/$', auth(del_private_group), name='del_private_group'),
	url(r'^mehfil/private/reject-invite/$', auth(reject_private_group_invite), name='reject_private_group_invite'),
	url(r'^mehfil/private/exited/$', auth(left_private_group), name='left_private_group'),
Ejemplo n.º 29
0
owner_rejoining_public_group, force_rules_onto_members, process_kicking_feedback, unkick_users, display_administrative_activity, first_time_refresh, \
public_group_invite_help, unaccepted_public_mehfil_invites, direct_message, process_open_group_feedback, show_open_group_feedback, delete_open_group_feedback, \
processing_group_ownership_transfer, private_mehfil_oversight_dashboard, join_private_group, group_ownership_transfer_tac, priv_group, display_group_info_page, \
display_detailed_info, display_group_users_list, send_request_to_owner, cancel_ownership_request, private_group_invite_help, unaccepted_private_mehfil_invites, \
cancel_closed_group_invite, private_group_hide_submission, private_group_request_denied, apply_for_officer, display_officer_application, group_page, \
del_public_group, view_officer_app_help, view_officer_application_form, view_officer_app_history, display_officer_app_detailed_info, group_invites,\
public_group_guidance, reject_private_group_invite,reject_public_group_invite, DirectMessageView, GroupTypeView, PublicGroupView, ChangeGroupRulesView, \
ChangePrivateGroupTopicView, ChangeGroupTopicView, PrivateGroupView, DirectMessageCreateView, ReinvitePrivateView, ClosedGroupCreateView, GroupTypeView,\
InviteUsersToGroupView, InviteUsersToPrivateGroupView, ReinviteView#, get_ranked_groups
from links.views import redirect_to_mehfil_list
admin.autodiscover()

urlpatterns = patterns(
    '',
    url(r'^mehfil/public/refresh/$',
        auth(first_time_public_refresh),
        name='first_time_public_refresh'),
    url(r'^mehfil/public/$',
        auth(PublicGroupView.as_view()),
        name='public_group_reply'),
    url(r'^mehfil/public/redirect/$', auth(public_group), name='public_group'),
    url(r'^mehfil/public/redirect/(?P<slug>[\w.@+-]+)/$',
        auth(public_group),
        name='public_group'),
    url(r'^mehfil/public/denied/$',
        auth(public_group_request_denied),
        name='public_group_request_denied'),
    url(r'^mehfil/private/denied/$',
        auth(private_group_request_denied),
        name='private_group_request_denied'),
    url(r'^mehfil/private/refresh/(?P<unique>[\w.@+-]+)/$',
Ejemplo n.º 30
0
from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.conf import settings
from django.contrib.auth.decorators import login_required as auth

from main.views.comment import LinkUpdateView
from main.views.comment import LinkDeleteView

urlpatterns = patterns('',
                       url(r'^$', 'main.views.views.home', name='home'),
                       url(r'^register/', 'main.views.register.new_user', name='newuser'),
                       url(r'^login/', 'main.views.login.user_login', name='user_login'),
                       url(r'^link/update/(?P<pk>\d+)/$', auth(LinkUpdateView.as_view()),
        name='link_update'),
                       url(r'^link/delete/(?P<pk>\d+)/$', auth(LinkDeleteView.as_view()),
        name='link_delete'),
                       url(r'^logout/', 'main.views.login.user_logout', name='user_logout'),
                       url(r'^user/(?P<num>\d+)/$', 'main.views.views.profile', name='user'),
                       url(r'^search/', 'main.views.views.search_results', name='search_results'),
                       url(r'^user/edit/(?P<num>\d+)/$', 'main.views.edit_user.edit', name='edituser'),
                       url(r'^user/addcorgi/(?P<num>\d+)/$', 'main.views.corgi.add_corgi', name='add_corgi'),
                       url(r'^user/addpost/(?P<num>\d+)/$', 'main.views.comment.add_comment', name='add_comment'),
                       url(r'^api/post/(?P<num>\d+)/$', 'main.views.api.post_list', name='api_post_list'),
                       url(r'^api/stats/', 'main.views.api.site_stats', name='api_site_stats'),
                       url(r'^user/(?P<num>\d+)/friendrequest', 'main.views.views.friendrequest', name='friendrequest'),
                       url(r'^user/accept/(?P<num>\d+)/', 'main.views.views.accept', name='accept'),
                       url(r'^user/deny/(?P<num>\d+)/', 'main.views.views.deny', name='deny'),
                       url(r'^admin/', include(admin.site.urls)),
                       url(r'^media/(?P<path>.*)$', 'django.views.static.serve',
                 {'document_root': settings.MEDIA_ROOT}),
              
from django.contrib.auth.decorators import login_required as auth
from django.contrib import admin
from links.judgement_views import report_content,cull_content, ban_content_submitter_or_voters, banned_users_list, show_blocking_history_of_defenders, \
show_your_banning_history, defender_instruction_failure, log_banning_reason_given_by_defender,add_new_defender, remove_current_defender, cull_content_loc,\
enter_inter_user_ban, inter_user_ban_not_permitted, first_time_inter_user_banner, change_ban_time, content_culling_instructions, user_ban_help, ban_underway,\
report_or_block, get_top_50_reporters, get_reporter_history, defender_history_super_admin_view, report_content_help, defender_instructions, \
voting_ban_defender_help, edit_content_submission_and_voting_ban, render_ban_details, notify_and_redirect, cull_content_post, \
spamming_definition, show_report_help, judge_content_voters, judge_content_submitters, show_rejecton_history_of_defenders, submit_ban_category#, judge_mehfil, report_mehfil, report_mehfil_help

admin.autodiscover()

urlpatterns = patterns(
    '',
    ################################# Inter user banning #############################################
    url(r'^block/user/$',
        auth(enter_inter_user_ban),
        name='enter_inter_user_ban'),
    url(r'^block/user/in-progress/$', auth(ban_underway), name='ban_underway'),
    url(r'^blocked-users-list/$',
        auth(banned_users_list),
        name='banned_users_list'),
    url(r'^block/user/set-time/$',
        auth(change_ban_time),
        name='change_ban_time'),
    url(r'^block/user/verify-first/$',
        auth(inter_user_ban_not_permitted),
        name='inter_user_ban_not_permitted'),
    url(r'^block/user/help/$', auth(user_ban_help), name='user_ban_help'),
    url(r'^block/user/successful/$',
        auth(first_time_inter_user_banner),
        name='first_time_inter_user_banner'),
Ejemplo n.º 32
0
from django.conf.urls import patterns, include, url

from links.views import LinkListView, LinkCreateView, LinkDetailView, LinkDeleteView, LinkUpdateView
from links.views import VoteFormView

from django.contrib import admin
from django.contrib.auth.decorators import login_required as auth

admin.autodiscover()

urlpatterns = patterns('',
    url(r'^$', LinkListView.as_view(), name='home'),
    url(r'^link/create/$', auth(LinkCreateView.as_view()), name='link_create'),
    url(r'^link/update/(?P<pk>\d+)/$', auth(LinkUpdateView.as_view()), name='link_update'),
    url(r'^link/delete/(?P<pk>\d+)/$', auth(LinkDeleteView.as_view()), name='link_delete'),
    url(r'^link/(?P<pk>\d+)/$', LinkDetailView.as_view(), name='link_detail'),
    url(r'^vote/$', auth(VoteFormView.as_view()), name='vote'),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^accounts/', include('allauth.urls')),
    url(r'^users/', include('profiles.urls')),
    url(r'^comments/', include('django.contrib.comments.urls')),
)
Ejemplo n.º 33
0
from django.conf.urls import include, url
from django.contrib.auth.decorators import login_required as auth

from . import views

urlpatterns = [
    url(r'^$', auth(views.comments_for_defect), name='list'),
    url(r'^post_comment/$', auth(views.add_comment_for_defect), name='add')
]
from django.conf.urls import patterns, url, include
from django.contrib.auth.decorators import login_required as auth
from django.contrib import admin
from links.verification_views import verify_user_artificially, number_verification_help, unverify_user, \
verify_user_mobile_unpaid, firebase_verification, unable_to_verify_on_fbs, firebase_verification_result
# from links.unauth_views import render_set_new_password,pin_verification, wait_before_verifying,
#account_kit_verification_commencement, account_kit_verification_processing, account_kit_verification_result,

admin.autodiscover()

urlpatterns = patterns(
    '',
    ###################### Via Firebase #############################
    url(r'^verification/mobile/$',
        auth(verify_user_mobile_unpaid),
        name='verify_user_mobile_unpaid'),
    url(r'^verification/mobile/via-firebase/$',
        auth(firebase_verification),
        name='firebase_verification'),
    url(r'^verification/mobile/via-firebase/cannot-verify-on-fbs/$',
        auth(unable_to_verify_on_fbs),
        name='unable_to_verify_on_fbs'),
    url(r'^verification/mobile/via-firebase/failed/verification/$',
        auth(firebase_verification_result),
        name='firebase_verification_failed'),
    url(r'^verification/mobile/via-firebase/successful/verification/$',
        auth(firebase_verification_result),
        name='firebase_verification_successful'),
    url(r'^verification/mobile/via-firebase/failed/forgot-pass/$',
        firebase_verification_result,
        name='firebase_forgot_pass_verification_failed'),
Ejemplo n.º 35
0
set_personal_group_photo_sharing_perm_from_chat, delete_or_hide_photo_from_photo_settings, hide_photo_from_personal_group_chat, private_chat_help_ad,\
personal_group_receive_sms, personal_group_customize_sms_text, personal_group_receive_sms_from_chat, enter_personal_group,personal_group_help1,\
personal_group_send_sms, personal_group_sms_text_form, personal_group_exit_settings, personal_group_their_chat_buttons, personal_group_reentry,\
show_all_saved_posts_in_personal_group, retrieve_personal_group_saved_content,personal_group_delete_saved_post, personal_group_photo_settings,\
post_js_reply_to_personal_group, personal_group_user_listing, export_chat_counts, photo_shared, export_chat_logs, share_photo_in_personal_group,\
cant_share_photo, personal_group_help2, personal_group_help3, personal_group_help4, enter_personal_group_from_single_notif
from links.number_verification import verify_personal_group_user
from links.views import redirect_to_1on1_list

admin.autodiscover()

urlpatterns = patterns(
    '',
    # url(r'^deletion_test/$', auth(deletion_test), name='deletion_test'),
    ############################## Personal Groups ###############################
    url(r'^1-on-1/$', auth(enter_personal_group), name='enter_personal_group'),
    url(r'^1-on-1/post/$',
        auth(post_to_personal_group),
        name='post_to_personal_group'),
    url(r'^1-on-1/post/js/$',
        auth(post_js_reply_to_personal_group),
        name='post_js_reply_to_personal_group'),
    url(r'^1-on-1/their-buttons/$',
        auth(personal_group_their_chat_buttons),
        name='personal_group_their_chat_buttons'),
    url(r'^1-on-1/list/saved-posts/$',
        auth(show_all_saved_posts_in_personal_group),
        name='show_all_saved_posts_in_personal_group'),
    url(r'^1-on-1/post/save/$',
        auth(save_post_in_personal_group),
        name='save_post_in_personal_group'),
Ejemplo n.º 36
0
    url (r'^logs/$', homeviews.as_view(), name='logs'),

    url(r'^$', SearchView(
                               load_all=False,
                               searchqueryset=sqs,
                               ),
                           name='haystack_search',
                           ),

    url(r'^article/submission/$', article_form_view, name="article_form_view"),
    url(r'^article/(?P<slug>[\w-]+)/$', singleview, name="single_view"), 
    url(r'^article/update/(?P<slug>[\w-]+)/$', update_article.as_view(), name="update_article"),
    url(r'^article/delete/(?P<slug>[\w-]+)/$', delete_article.as_view(), name="delete_article"),
    url(r'^comments/delete_own/(?P<id>.*)/$', delete_comment, name='delete_comment'), 
    url(r'^article/tag/(?P<tag>[\w-]+)/$', tag_page, name="tag_page"),
    url(r'^vote/$', auth(vote_view.as_view()), name="vote"),
    url(r'^about/$',about, name="about"),


    #-------------------------------Account handling --------------------------
    url(r'^accounts/', include('registration.backends.hmac.urls')),
    url(r'^users/(?P<slug>[\w-]+)/$', user_profile.as_view(), name="profile"),
    url(r'^edit_profile/$', auth(user_edit.as_view()), name="edit_profile"),
    

    #------------------------------Commenting Section---------------------------
    url(r'^comments/', include('django_comments.urls')),
    

    #----------------------------------News views --------------------------------
Ejemplo n.º 37
0

urlpatterns = patterns('',

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

                       url(r'^$', TemplateView.as_view(
                           template_name='home.html'), name='home'),
                       url(r'^login/$', 'django.contrib.auth.views.login',
                           {'template_name': 'registration/login.html'}, name="shop_login"),
                       url(r'^logout/$', 'django.contrib.auth.views.logout_then_login',
                           name="shop_logout"),
                       url(r'^accounts/', include(
                           'registration.backends.default.urls')),
                       url(r'^users/(?P<slug>\w+)/$',
                           ProfileDetail.as_view(), name="profile"),
                       url(r'^profile/edit/$',
                           auth(ProfileUpdate.as_view()), name="profile_edit"),

                       url(r'^shop/', include('products.urls')),
                       url(r'^search/', include('haystack.urls')),

                       )

if settings.DEBUG:
    import debug_toolbar
    from django.conf.urls.static import static
    urlpatterns += patterns('',
                            url(r'^__debug__/', include(debug_toolbar.urls)),
                            ) + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Ejemplo n.º 38
0
# importing django url patterns modules
from django.conf.urls import patterns, include, url
from django.contrib.auth.decorators import login_required as auth
from .views import PasswordChangeView

# auth url patterns
urlpatterns = patterns('',
    url(r"^login/$", "django.contrib.auth.views.login", {"template_name": "Auth/login.html"}, name="login"),
    url(r"^logout/$", "django.contrib.auth.views.logout_then_login", name="logout"),
    url(r'^change_password/$',auth(PasswordChangeView.as_view()) , name="change_password"),
)
 
Ejemplo n.º 39
0
urlpatterns = [
    url(r'^$', redirect_root),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^comments/', include('django_comments.urls')),
    url(r'^home/$', LinkListView.as_view(), name='home'),
    url(r'^pages/', include('django.contrib.flatpages.urls')),
    url(r'^contact/', include(contact_urls)),
    url(r'^login/$',
        "django.contrib.auth.views.login", {"template_name": "login.html"},
        name="login"),
    url(r'^logout/$',
        "django.contrib.auth.views.logout_then_login",
        name="logout"),
    url(r'^accounts/', include("registration.backends.simple.urls")),
    url(r"^users/(?P<slug>\w+)/$",
        UserProfileDetailView.as_view(),
        name="profile"),
    url(r"edit_profile/$",
        auth(UserProfileEditView.as_view()),
        name="edit_profile"),
    url(r"^link/create/$", auth(LinkCreateView.as_view()), name="link_create"),
    url(r"^link/(?P<pk>\d+)$", LinkDetailView.as_view(), name="link_detail"),
    url(r"^link/update/(?P<pk>\d+)$",
        auth(LinkUpdateView.as_view()),
        name="link_update"),
    url(r"^link/delete/(?P<pk>\d+)$",
        auth(LinkDeleteView.as_view()),
        name="link_delete"),
    url(r'^vote/$', auth(VoteFormView.as_view()), name="vote"),
]
Ejemplo n.º 40
0
"""reddit URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.9/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. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url

from django.conf.urls import include, url
from django.contrib import admin
from blog.views import PostListView
from blog.views import PostCreateView
from django.contrib.auth.decorators import login_required as auth

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

    url(r'^$', PostListView.as_view(), name='home'),
    url(r'^post/create/$', auth(PostCreateView.as_view()), name='post_create'),
]
Ejemplo n.º 41
0
from django.contrib.auth.decorators import login_required as auth

urlpatterns = patterns('student_portal.views',

    # Main web portal entrance.
    (r'^$', dashboard),

    #about page
    url(r'^about/$', student_about, name='student_about'),

    url(r'^courses/$', enroll_courses, name="courses"),#show all courses available

#    url(r'^schedule/$', include('schedule.urls')),

    # edit_profile
    url(r'^edit_profile/$', auth(StudentProfileEditView.as_view()), name="edit_profile"), 
    # course info display
    url(r'^([A-Z|a-z]{2,4})/(\d+)/(\d+)/$', display_lecture, name='display_lecture'),
    url(r'^([A-Z|a-z]{2,4})/(\d+)/$', display_course_info, name='display_course_info'),
    #assignments
    url(r'^([A-Z|a-z]{2,4})/(\d+)/assignments/$', display_assignments, name='display_assignments'),
    url(r'^([A-Z|a-z]{2,4})/(\d+)/assignments/(\d+)/$', display_assignment, name='display_assignment'),
    #uploads
    url(r'^([A-Z|a-z]{2,4})/(\d+)/assignments/(\d+)/upload/$', upload_assignment, name='upload_assignment'),
    #downloading
    url(r'^([A-Z|a-z]{2,4})/(\d+)/assignments/(\d+)/download/$', download_assignment, name='download_assignment'),
    #grades?
    url(r'^([A-Z|a-z]{2,4})/(\d+)/grades/$', display_grades, name='display_grades'),
    # view all course materials
    url(r'^([A-Z|a-z]{2,4})/(\d+)/course_materials/$', display_course_materials, name='display_course_materials'),
    # download course material
Ejemplo n.º 42
0
from django.conf.urls import patterns, include, url
from django.contrib.auth.decorators import login_required as auth
from django.contrib import admin
admin.autodiscover()

from register import views

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

    
    url(r'^register/$',views.SingleRegister,name='single_register'),
    url(r'^thanks/$',views.thanks,name='thanks'),
    url(r'^login/$','django.contrib.auth.views.login',{'template_name':'search_login.html'},name='login'),
    url(r'^edit_profile/$',auth(views.EditProfile.as_view()),name='edit_profile',),
    url(r'^group_register/$',views.GroupRegister,name='group_register'),
    url(r'^(?:home/|)$', views.home,name='home',),
    url(r'^logout',views.user_logout,name='logout'),
    url(r'^help/$',views.help,name='helptext'),
    url(r'^start/$',views.home_start,name='start'),
    url(r'^edit_success/$',views.edit_success,name='edit_success'),
    url('^captcha/',include('captcha.urls')),
)
Ejemplo n.º 43
0
from django.contrib.auth.decorators import login_required as auth
from django.contrib import admin
from cmv_app.views import SearchCreateView,\
    SearchUpdateView, SearchDeleteView, search_report, PostingsDetailView
from cmv_app.views import SearchListView, SearchCreateView,\
    SearchUpdateView, SearchDeleteView, SearchListJson, PostingsListView
from cmv_app.shortcuts import ajax_required
admin.autodiscover()


urlpatterns=patterns('',
    # ex: /
    url(r'^$', SearchListView.as_view(), name='searchhome'),

    # ex: /create/
    url(r"^create/$", auth(SearchCreateView.as_view()),
        name="search_create"),

    # ex: /1/
    url(r"^(?P<pk>\d+)$", auth(PostingsListView.as_view()),
        name="postings_list"),
    #url(r"^(?P<pk>\d+)$", auth(SearchDetailView.as_view()),
    #        name="search_detail"),
    # ex: /1/
    url(r"^(?P<pk>\d+)/detail/$", auth(PostingsDetailView.as_view()),
        name="single_postings_detail"),
    #url(r"^(?P<pk>\d+)$", auth(SearchDetailView.as_view()),
    #        name="search_detail"),
    
    url(r"^(?P<pk>\d+)/(?P<region>\w+)/$", auth(PostingsListView.as_view()),
        name="postings_list_regions"),
Ejemplo n.º 44
0
from links.views import JaryanakCreateView, JaryanakListView, JaryanakUpdateView, JaryanakDetailView, JReportsView
from links.views import UserProfileDetailView, UserProfileEditView, UserProfileInvitations, UserProfileReports, FollowView
from links.views import AllReportsView

from links.models import Link, Text
from comments.models import ThreadedComment
# from votes.views import vote_on_object, vote_on_comment




urlpatterns = [
    url(r'^$', HomeListView.as_view(), name='home'),

    url(r'^admin/', include(admin.site.urls)),
    url(r'^manageeallreports/$', auth(AllReportsView.as_view()), name='all_reports_manager'),

    url(r'^accounts/', include('registration.backends.simple.urls')),
    url(r'^users/(?P<slug>\w+)/$', UserProfileDetailView.as_view(), name="profile"),
    url(r'^profile/edit/$', auth(UserProfileEditView.as_view()), name="edit_profile"),
    url(r'^profile/(?P<slug>\w+)/invitations/$', auth(UserProfileInvitations.as_view()), name="profile_invites"),
    url(r'^profile/(?P<slug>\w+)/reports/$', auth(UserProfileReports.as_view()), name="profile_reports"),

    url(r'^login/$', "django.contrib.auth.views.login", {"template_name": "login.html"}, name="login"),
    url(r'^logout/$', "django.contrib.auth.views.logout_then_login", name="logout"),

    url(r'^j/list/$', JaryanakListView.as_view(), name='jaryanak'),
    url(r'^j/create/$', auth(JaryanakCreateView.as_view()), name='jaryanak_create'),
    url(r'^j/(?P<pk>\d+)/(?P<slug>[-\w\d\_]+)/$', JaryanakDetailView.as_view(), name='jaryanak_detail'),
    url(r'^j/update/(?P<pk>\d+)/$', auth(JaryanakUpdateView.as_view()), name='jaryanak_update'),
    url(r'^j/(?P<pk>\d+)/reports$', auth(JReportsView.as_view()), name='j_reports'),
Ejemplo n.º 45
0
from django.conf.urls import include, url
from django.contrib import admin
from links.views import LinkListView
from links.views import UserProfileDetailView
from django.contrib.auth.decorators import login_required as auth
from links.views import UserProfileEditView
from links.views import LinkCreateView
from links.views import LinkDetailView
from links.views import LinkUpdateView
from links.views import LinkDeleteView
from links.views import VoteFormView

urlpatterns = [
    url(r'^static/(?P<path>.*)$','django.views.static.serve',{'document_root': 'static'}),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^$', LinkListView.as_view(), name='home'),
    url(r'^login/$', 'django.contrib.auth.views.login', {
    'template_name': 'login.html'}, name="login"),
    url(r'^logout/$', 'django.contrib.auth.views.logout_then_login',
        name="logout"),
    url(r'^accounts/', include('registration.backends.simple.urls')),
    url(r'^users/(?P<slug>\w+)/$', UserProfileDetailView.as_view(), name="profile"),
    url(r'^edit_profile/$', auth(UserProfileEditView.as_view()), name="edit_profile"),
    url(r'^link/create/$', auth(LinkCreateView.as_view()),name='link_create'),
    url(r'^link/(?P<pk>\d+)/$', LinkDetailView.as_view(), name='link_detail'),
    url(r'^link/update/(?P<pk>\d+)/$', auth(LinkUpdateView.as_view()), name='link_update'),
    url(r'^link/delete/(?P<pk>\d+)/$', auth(LinkDeleteView.as_view()), name='link_delete'),
    url(r'^comments/', include('django_comments.urls')),
    url(r'^vote/$', auth(VoteFormView.as_view()), name="vote"),
]
Ejemplo n.º 46
0
from django.conf.urls import patterns, include, url
from django.contrib.auth.decorators import login_required as auth
from django.contrib import admin
from links.maint_views import insert_nicks, change_nicks, export_nicks, deprecate_nicks, remove_inactives_notification_activity, \
remove_inactive_user_sessions, remove_inactives_groups, damadam_cleanup, skip_outage_notif, remove_inactives_photos, \
isolate_non_national_phone_numbers


admin.autodiscover()


urlpatterns = patterns('',
	###################################### Shutdown Notifications ########################################
	url(r'^son/$', auth(skip_outage_notif), name='skip_outage_notif'),
	url(r'^damadam_cleanup/$', auth(damadam_cleanup), name='damadam_cleanup'),
	########################################## PG Sanitzation ############################################
	url(r'^cleanup_photos/$', auth(remove_inactives_photos), name='remove_inactives_photos'),
	######################################## Redis Sanitzation ###########################################
	url(r'^cleanup_groups/$', auth(remove_inactives_groups), name='remove_inactives_groups'),
	url(r'^delete_sessions/$', auth(remove_inactive_user_sessions), name='remove_inactive_user_sessions'),
	url(r'^delete_notifications/$', auth(remove_inactives_notification_activity), name='remove_inactives_notification_activity'),
	######################################## Username Sanitzation ########################################
	url(r'^populate_nicks/$', auth(insert_nicks), name='insert_nicks'),
	url(r'^change_nicks/$', auth(change_nicks), name='change_nicks'),
	url(r'^export_nicks/$', auth(export_nicks), name='export_nicks'),
	url(r'^deprecate_nicks/$', auth(deprecate_nicks), name='deprecate_nicks'),
	url(r'^isolate_nonpaki_nums/$', auth(isolate_non_national_phone_numbers), name='isolate_non_national_phone_numbers'),
)
from django.contrib import admin
from django.conf.urls import patterns, url
from django.contrib.auth.decorators import login_required as auth
from links.follower_views import follow, unfollow, custom_feed_page, custom_feed_redirect, show_follower_list, remove_my_follower,\
show_following_list, remove_single_post, display_user_public_feed_history, display_user_follower_feed_history,skip_notif,\
display_user_private_feed_history, show_new_followers, display_trending_history, export_post_data
from links.views import finalize_audience, publish_post
admin.autodiscover()

urlpatterns = patterns('',

	####################### Display feed #######################
	url(r'^for-me/$', auth(custom_feed_page), name='for_me'),
	# url(r'^$', auth(custom_feed_page), name='for_me'),
	# url(r'^$', auth(custom_feed_page), name='home'),
	####################### Remove post ########################
	url(r'^for-me/remove-single-post/$', auth(remove_single_post), name='remove_post'),
	####################### Redirects #######################
	url(r'^redirect/for-me/$', auth(custom_feed_redirect), name='custom_feed_redirect'),
	url(r'^redirect/for-me/(?P<obj_hash>[\w:@+-]+)/$', auth(custom_feed_redirect), name='custom_feed_redirect'),
	####################### Follow/Unfollow #######################
	url(r'^follow/add/$', auth(follow), name='follow'),
	url(r'^follow/remove/$', auth(unfollow), name='unfollow'),
	url(r'^follow/remove-my-follower/(?P<target_username>[\w.@+-]+)/$', auth(remove_my_follower), name='remove_my_follower'),
	url(r'^follow/skip_notif/$', auth(skip_notif), name='skip_notif'),
	url(r'^follow/recent_followers/$', auth(show_new_followers), name='show_new_followers'),
	####################### User feed history #######################
	url(r'^profile/public/(?P<target_uname>[\w.@+-]+)/$', display_user_public_feed_history, name='display_user_public_feed_history'),
	url(r'^profile/followers/(?P<target_uname>[\w.@+-]+)/$', auth(display_user_follower_feed_history), name='display_user_follower_feed_history'),
	url(r'^profile/private/(?P<target_uname>[\w.@+-]+)/$', auth(display_user_private_feed_history), name='display_user_private_feed_history'),
	url(r'^profile/trending/(?P<target_uname>[\w.@+-]+)/$', display_trending_history, name='display_trending_history'),
Ejemplo n.º 48
0
from django.conf.urls import patterns, url
from django.contrib.auth.decorators import login_required as auth
from django.core.urlresolvers import reverse_lazy

from pgameapp.views import UserProfileView, CollectCoinsView, SellCoinsView, StoreView, ExchangeView, ReferralsView, \
    ProfileEdit, RefillView, WithdrawView

urlpatterns = patterns(
    '',
    # url(r'^$', views.index, name='index'),
    url(r'^$', auth(UserProfileView.as_view()), name='user-profile'),
    url(r'^profile_edit$',
        auth(ProfileEdit.as_view(success_url=reverse_lazy('user-profile'))),
        name='user-profile-edit'),
    url(r'^collect/$',
        auth(
            CollectCoinsView.as_view(
                success_url=reverse_lazy('collect-coins'))),
        name='collect-coins'),
    url(r'^sell/$',
        auth(SellCoinsView.as_view(success_url=reverse_lazy('sell-coins'))),
        name='sell-coins'),
    url(r'^store/$',
        auth(StoreView.as_view(success_url=reverse_lazy('store'))),
        name='store'),
    url(r'^deposit/$', auth(RefillView.as_view()), name='deposit'),
    url(r'^exchange/$',
        auth(ExchangeView.as_view(success_url=reverse_lazy('exchange'))),
        name='exchange'),
    url(r'^withdraw/$',
        auth(WithdrawView.as_view(success_url=reverse_lazy('withdraw'))),
Ejemplo n.º 49
0
    url(r'^admin/', include(admin.site.urls)),
    # Examples:
    url(r'^$', "django.contrib.auth.views.login",
        {"template_name": "login.html"}, name='ini'),
    url(r'^calendar/$', 'gestio.views.calendar_init', name='home'),
    url(r"^login/$", "django.contrib.auth.views.login",
        {"template_name": "login.html"}, name="login"),
    url(r"^logout/$", "django.contrib.auth.views.logout_then_login",
        name="logout"),

    # url(r"^calendar/", ),

    url(r"^accounts/", include("registration.backends.simple.urls")),
    url(r"	^users/(?P<slug>\w+)/$", UserProfileDetailView.as_view(),
        name="profile"),
    url(r"edit_profile/$", auth(UserProfileEditView.as_view())),
    url(r"^fornada/(?P<pk>\d+)$", FornadaDetailView.as_view(),
        name="fornada_detail"),
    url(r"^despesa/update/(?P<pk>\d+)$", DespesaUpdateView.as_view(),
        name="despesa_update"),
    url(r"^despesa/(?P<pk>\d+)$", DespesaDetailView.as_view(),
        name="despesa_detail"),
    url(r"^fornada/delete/(?P<pk>\d+)/$", FornadaDeleteView.as_view(),
        name="fornada_delete"),                                                                     # url(r'^blog/', include('blog.urls')),
    # url(r"^fornada/(?P<suppk>\d+)/comanda/update/(?P<pk>\d+)/$", ComandaUpdateView.as_view(),
    #     name="comanda_update"),
    url(r"^fornada/(?P<suppk>\d+)/comanda/delete/(?P<pk>\d+)/$", ComandaDeleteView.as_view(),
        name="comanda_delete"),
    url(r"^fornada/(?P<pk>\d+)/comanda/create/$", ComandaCreateView.as_view(),
        name="comanda_create"),
    url(r"^fornada/(?P<supk>\d+)/status/update/(?P<pk>\d+)/$", StatusUpdateView.as_view(),
Ejemplo n.º 50
0
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url, include
from django.contrib import admin
from django.contrib.auth import views as auth_views
from links.views import LinkListView
from links.views import UserProfileDetailView
from django.contrib.auth.decorators import login_required as auth # Keep non-users out
from links.views import UserProfileEditView
from links.views import LinkCreateView, LinkDetailView
from links.views import LinkEditView
from links.views import LinkDeleteView

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^$', LinkListView.as_view(), name='home'),
    url(r'^login/$', auth_views.login, name='login'),
    url(r'^logout/$', auth_views.logout, name='logout'),
    url(r'^accounts/', include('registration.backends.simple.urls')),
    url(r'^users/(?P<slug>\w+)/$', UserProfileDetailView.as_view(),name='profile'),
    url(r'^edit_profile/$', auth(UserProfileEditView.as_view()), name='edit_profile'),
    url(r'^link/submit/$', auth(LinkCreateView.as_view()), name='link_submit'),
    url(r'^link/(?P<pk>\d+)/$', LinkDetailView.as_view(), name='link_detail'),
    url(r'^link/edit/(?P<pk>\d+)/$', auth(LinkEditView.as_view()), name='link_edit'),
    url(r'^link/delete/(?P<pk>\d+)/$', auth(LinkDeleteView.as_view()), name='link_delete'),
    url(r'^comments/', include('django_comments.urls')),
]
Ejemplo n.º 51
0
 url(r'^buy_and_sell/$', classified_listing, name='classified_listing'),
 url(r'^buy_and_sell/exchange/$',
     classified_listing,
     name='exchange_classified_listing'),
 url(r'^buy_and_sell/exchange/(?P<city>[\w.@+-]+)/$',
     classified_listing,
     name='city_exchange_classified_listing'),
 # url(r'^buy_and_sell/fotos/$', classified_listing,name='photos_classified_listing'),
 # url(r'^buy_and_sell/fotos/(?P<city>[\w.@+-]+)/$', classified_listing,name='city_photos_classified_listing'),
 url(r'^buy_and_sell/(?P<city>[\w.@+-]+)/$',
     classified_listing,
     name='city_classified_listing'),
 url(r'^ad/(?P<ad_id>\d+)/$', ad_detail, name='ad_detail'),
 #################################################################################################
 url(r'^process_ad_approval/$',
     auth(process_ad_approval),
     name='process_ad_approval'),
 url(r'^edit_classified/$', auth(edit_classified), name='edit_classified'),
 url(r'^lock_ad/$', auth(ad_locked_by_agent), name='ad_locked_by_agent'),
 url(r'^change_cover_photo/$',
     auth(change_cover_photo),
     name='change_cover_photo'),
 url(r'^classified_approval_dashboard/(?P<only_locked>\d+)/$',
     auth(approve_classified),
     name='approve_classified'),
 #################################################################################################
 url(r'^process_unfinished_ad/$',
     auth(process_unfinished_ad),
     name='process_unfinished_ad'),
 # url(r'^ctut/$', auth(classified_tutorial_dec),name='classified_tutorial_dec'),
 url(r'^expire_ad/$', auth(expire_my_ad), name='expire_my_ad'),
Ejemplo n.º 52
0
    # Add the rest of the registration app's urls
    url(r'^', include('registration.backends.default.urls')),

    # SOCIAL ###########################################################################################################
    url(r'^', include('social.apps.django_app.urls', namespace='social')),

    # USER #############################################################################################################
    url(r'^muser/(?P<username>[\w.+-]+)/$',
        ProfileNewDetailView.as_view(), name='user_profile'),
    url(r'^muser/(?P<username>[\w.+-]+)/top/$',
        ProfileTopDetailView.as_view(), name='user_profile_top'),

    # Settings
    url(r'^settings/profile/$',
        auth(SettingsProfile.as_view()), name='settings_profile'),
    url(r'^settings/username/$',
        auth(SettingsChangeUsername.as_view()), name='settings_username'),
    url(r'^settings/email/$',
        auth(SettingsChangeEmail.as_view()), name='settings_email'),
    url(r'^settings/(?P<username>[\w.+-]+)/delete/$',
        auth(SettingsDeleteAccount.as_view()), name='settings_delete'),
    url(r'^settings/password/$',
        auth(password_change), name='settings_password_change'),
    url(r'^settings/general/$',
        auth(SettingsGeneral.as_view()), name='settings_general'),

    # Invites
    url(r'^invite/$',
        auth(InviteFormView.as_view()), name='user_invite'),
    url(r'^invitation/(?P<activation_key>\w+)/$',
Ejemplo n.º 53
0
from django.conf.urls import patterns, url
from showcase_app import views
from showcase_app.views import UserProfileDetailView, UserProfileEditView
from django.contrib.auth.decorators import login_required as auth
from django.core.urlresolvers import reverse_lazy
from showcase_app.models import UserProfile


urlpatterns = patterns('showcase_app.views',
                       url(r'^$', views.index, name='index'),
                       url(r'^contact/', views.contact, name='contact'),
                       url(r'^projects/', views.projects, name='projects'),
                       url(r'^users/(?P<pk>\w+)/$', UserProfileDetailView.as_view(template_name="showcase_app/user_profile.html"), name="profile"),
                       url(r'^edit_profile/(?P<pk>\w+)/$', auth(UserProfileEditView.as_view(template_name="showcase_app/edit_profile.html", success_url='/showcase/')), name="edit_profile"),
                       )
Ejemplo n.º 54
0
delete_post_from_personal_group, post_chat_action_in_personal_group, delete_all_posts_from_personal_group, save_post_in_personal_group,\
anonymize_user_in_personal_group, accept_personal_group_invite, send_personal_group_invite, personal_group_grant_chat_saving_perm, \
set_personal_group_photo_sharing_perm_from_chat, delete_or_hide_photo_from_photo_settings, hide_photo_from_personal_group_chat, private_chat_help_ad,\
personal_group_receive_sms, personal_group_customize_sms_text, personal_group_receive_sms_from_chat, enter_personal_group,personal_group_help1,\
personal_group_send_sms, personal_group_sms_text_form, personal_group_exit_settings, personal_group_their_chat_buttons, personal_group_reentry,\
show_all_saved_posts_in_personal_group, retrieve_personal_group_saved_content,personal_group_delete_saved_post, personal_group_photo_settings,\
post_js_reply_to_personal_group, personal_group_user_listing, unseen_per_grp, x_per_grp_notif, personal_group_metrics, share_photo_in_personal_group,\
photo_shared, cant_share_photo, personal_group_help2, personal_group_help3, personal_group_help4#, deletion_test
from links.number_verification import verify_personal_group_user

admin.autodiscover()

urlpatterns = patterns('',
	# url(r'^deletion_test/$', auth(deletion_test), name='deletion_test'),
	############################## Personal Groups ###############################
	url(r'^1-on-1/$', auth(enter_personal_group), name='enter_personal_group'),
	url(r'^1-on-1/post/$', auth(post_to_personal_group), name='post_to_personal_group'),
	url(r'^1-on-1/post/js/$', auth(post_js_reply_to_personal_group), name='post_js_reply_to_personal_group'),
	url(r'^1-on-1/their-buttons/$', auth(personal_group_their_chat_buttons), name='personal_group_their_chat_buttons'),
	url(r'^1-on-1/list/saved-posts/$', auth(show_all_saved_posts_in_personal_group), name='show_all_saved_posts_in_personal_group'),
	url(r'^1-on-1/post/save/$', auth(save_post_in_personal_group), name='save_post_in_personal_group'),
	url(r'^1-on-1/post/delete/$', auth(delete_post_from_personal_group), name='delete_post_from_personal_group'),
	url(r'^1-on-1/photo/hide/$', auth(hide_photo_from_personal_group_chat), name='hide_photo_from_personal_group_chat'),
	url(r'^1-on-1/action/$', auth(post_chat_action_in_personal_group), name='post_chat_action_in_personal_group'),
	url(r'^1-on-1/my-buttons/$', auth(personal_group_own_chat_buttons), name='personal_group_own_chat_buttons'),
	########################## Personal Group Settings ###########################
	url(r'^1-on-1/post/save-permission/$', auth(personal_group_grant_chat_saving_perm), name='personal_group_grant_chat_saving_perm'),
	url(r'^1-on-1/post/delete-saved-entry/$', auth(personal_group_delete_saved_post), name='personal_group_delete_saved_post'),
	url(r'^1-on-1/list/saved-posts/retrieve/$', auth(retrieve_personal_group_saved_content), name='retrieve_personal_group_saved_content'),
	url(r'^1-on-1/exit/$', auth(personal_group_exit_settings), name='personal_group_exit_settings'),
	url(r'^1-on-1/re-enter/$', auth(personal_group_reentry), name='personal_group_reentry'),
Ejemplo n.º 55
0
from hacker.views import Create_View
from hacker.views import Update_View
from hacker.views import Delete_View
from hacker.views import VoteFormView
urlpatterns = patterns('',
    url(r'^admin/', include(admin.site.urls)),
    url(r'^comments/', include("django.contrib.comments.urls")),
    url(r'^$', List_View.as_view(), name='home'),

    url(r"^login/$", "django.contrib.auth.views.login",
        {"template_name": "login.html"}, name="login"),
    url(r"^logout/$", "django.contrib.auth.views.logout_then_login",
        name="logout"),

    url(r"^accounts/", include("registration.backends.simple.urls")),
    url(r"^users/(?P<slug>\w+)/$", UserDetailView.as_view(),
        name="profile"),
    url(r"edit_profile/$", auth(UserEditView.as_view()),
        name="edit_profile"),

    url(r"^link/create/$", auth(Create_View.as_view()),
        name="link_create"),
    url(r"^link/(?P<pk>\d+)$", Detail_View.as_view(),
        name="link_detail"),
    url(r"^link/update/(?P<pk>\d+)/$", auth(Update_View.as_view()),
        name="link_update"),
    url(r"^link/delete/(?P<pk>\d+)/$", auth(Delete_View.as_view()),
        name="link_delete"),

    url(r'^vote/$', auth(VoteFormView.as_view()), name="vote"),
    )
Ejemplo n.º 56
0
# -*- coding: utf-8 -*-

from django.conf.urls import url
from django.contrib.auth.decorators import login_required as auth
from . import views

urlpatterns = [

    url(r'^register/$', views.RegistrationView.as_view(), name='userprofiles_registration'),
    url(r'^register/complete/$', views.RegistrationCompleteView.as_view(), name='userprofiles_registration_complete'),

    url(r'^login/$', views.LoginView.as_view(), name="login"),
    url(r'^logout/$', views.LogoutView.as_view(), name="logout"),

    url(r'^profile/(?P<slug>.*)/$', views.UserProfileDetailView.as_view(), name='profile'),
    url(r'^edit_profile/$', auth(views.UserProfileEditView.as_view()), name='edit_profile'),

   ]
Ejemplo n.º 57
0
        "django.contrib.auth.views.login", {"template_name": "login.html"},
        name='ini'),
    url(r'^calendar/$', 'gestio.views.calendar_init', name='home'),
    url(r"^login/$",
        "django.contrib.auth.views.login", {"template_name": "login.html"},
        name="login"),
    url(r"^logout/$",
        "django.contrib.auth.views.logout_then_login",
        name="logout"),

    # url(r"^calendar/", ),
    url(r"^accounts/", include("registration.backends.simple.urls")),
    url(r"	^users/(?P<slug>\w+)/$",
        UserProfileDetailView.as_view(),
        name="profile"),
    url(r"edit_profile/$", auth(UserProfileEditView.as_view())),
    url(r"^fornada/(?P<pk>\d+)$",
        FornadaDetailView.as_view(),
        name="fornada_detail"),
    url(r"^despesa/update/(?P<pk>\d+)$",
        DespesaUpdateView.as_view(),
        name="despesa_update"),
    url(r"^despesa/(?P<pk>\d+)$",
        DespesaDetailView.as_view(),
        name="despesa_detail"),
    url(r"^fornada/delete/(?P<pk>\d+)/$",
        FornadaDeleteView.as_view(),
        name="fornada_delete"),  # url(r'^blog/', include('blog.urls')),
    # url(r"^fornada/(?P<suppk>\d+)/comanda/update/(?P<pk>\d+)/$", ComandaUpdateView.as_view(),
    #     name="comanda_update"),
    url(r"^fornada/(?P<suppk>\d+)/comanda/delete/(?P<pk>\d+)/$",
Ejemplo n.º 58
0
Archivo: urls.py Proyecto: wkov/RUSC
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'XSVC.views.home', name='home'),
    # url(r'^XSVC/', include('XSVC.foo.urls')),
    url(r'^$', EscritoriListView.as_view() ,name='escritori'),
    url(r'^aportacions/(?P<pk>\d+)/debats/$', DebatListView.as_view() ,name="debats"),
    url(r"^login/$", "django.contrib.auth.views.login",
        {"template_name": "login.html"}, name="login"),
    url(r"^logout/$", "django.contrib.auth.views.logout_then_login",
        name="logout"),
    url(r'^aportacions/$', AportacioListView.as_view() ,name='aportacions'),
    url(r'^aportacions/create/$', AportacioCreateView.as_view() ,name='aportacio_create'),
    url(r"^aportacions/update/(?P<pk>\d+)/$", auth(AportacioUpdateView.as_view()),
        name="aportacio_update"),
    url(r"^aportacions/(?P<pk>\d+)/$", AportacioDetailView.as_view(),
        name="aportacio_detail"),
    url(r'^aportacions/(?P<pk>\d+)/debats/reply/(?P<id>\d+)/$', DebatCreateView.as_view() ,name='debat_create'),
    # url(r'^aportacions/(?P<pk>\d+)/debats/reply/$', FirstDebatCreateView.as_view() ,name='first_debat_create'),
    url(r"^debat/update/(?P<pk>\d+)/$", auth(DebatUpdateView.as_view()),
        name="debat_update"),
    url(r"^debat/(?P<pk>\d+)/$", DebatDetailView.as_view(),
        name="debat_detail"),
    url(r'^resums/$', ResumListView.as_view() ,name='resums'),
    url(r'^resum/create/$', ResumCreateView.as_view() ,name='resum_create'),
    url(r"^resum/update/(?P<pk>\d+)/$", auth(ResumUpdateView.as_view()),
        name="resum_update"),
    url(r"^resum/(?P<pk>\d+)/$", ResumDetailView.as_view(),
        name="resum_detail"),