コード例 #1
0
ファイル: urls.py プロジェクト: nechepurenko/django
    2. Add a URL to urlpatterns:  url(r'^blog/', include(blog_urls))
"""
from django.conf.urls import patterns, include, url
from django.contrib import admin
from .settings import MEDIA_ROOT, DEBUG
from students.views.contact_admin import ContactView
from students.views.students import  StudentUpdateView, StudentAddView, StudentDeleteView
from students.views.groups import  GroupDeleteView ,GroupUpdateView, GroupAddView
from students.views.exams import ExamsDeleteView, ExamsAddView, ExamsUpdateView
from students.views.journal import JournalView


urlpatterns = patterns('',
                       url(r'^$','students.views.students.students_list',name='home'),
                       url(r'^students/add/$','students.views.students.students_add',name='students_add'),
                       url(r'^students/add_form/$',StudentAddView.as_view(),name='students_add_form'),

                       url(r'^students/(?P<sid>\d+)/edit_hand/$','students.views.students.students_edit_hand',name='students_edit_hand'),
                       url(r'^students/(?P<pk>\d+)/edit/$', StudentUpdateView.as_view(),name='students_edit'),
                       url(r'^students/(?P<pk>\d+)/delete/$',StudentDeleteView.as_view(),name='students_delete'),
                       url(r'^students/(?P<sid>\d+)/delete_hand/$','students.views.students.students_delete',name='students_delete_hand'),

					   url(r'^groups/$', 'students.views.groups.groups_list', name='groups'),
                       url(r'^groups/add/$','students.views.groups.groups_add',name='groups_add'),
                       url(r'^groups/add_form/$',GroupAddView.as_view(),name='groups_add_form'),
                       url(r'^groups/(?P<pk>\d+)/edit/$',GroupUpdateView.as_view() ,name='groups_edit'),
                       url(r'^groups/(?P<gid>\d+)/edit_hand/$','students.views.groups.groups_edit',name='groups_edit_hand'),
                       url(r'^groups/(?P<pk>\d+)/delete/$',GroupDeleteView.as_view(),name='groups_delete'),
                       url(r'^groups/(?P<gid>\d+)/delete_hand/$','students.views.groups.groups_delete',name='groups_delete_hand'),

					   url(r'^admin/', include(admin.site.urls)),
コード例 #2
0
ファイル: urls.py プロジェクト: yuraonuferko/student
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Add an import:  from blog import urls as blog_urls
    2. Add a URL to urlpatterns:  url(r'^blog/', include(blog_urls))
"""
from django.conf.urls import include, url,patterns
from django.contrib import admin
from .settings import MEDIA_ROOT, DEBUG 
from students.views.contact_admin import ContactView
#from students.views.students import StudentUpdateView
from students.views.students import StudentAddView

urlpatterns = patterns('', 
    url(r'^$', 'students.views.students.students_list', name='home'),
    #url(r'^students/add/$', 'students.views.students.students_add',name='students_add'),
    url(r'^students/add/$',StudentAddView.as_view(),name='students_add'),
    #url(r'^students/add/$',StudentUpdateView.as_view(),name='students_add'),
    #url(r'^students/(?P<pk>\d+)/edit/$',StudentUpdateView.as_view(),name='students_edit'),
    url(r'^students/(?P<pk>\d+)/edit/$','students.views.students.students_edit',name='students_edit'),
    url(r'^students/(?P<sid>\d+)/delete/$','students.views.students.students_delete',name='students_delete'),
     
# Groups urls
    url(r'^groups/$', 'students.views.groups.groups_list', name='groups'),
    url(r'^groups/add/$', 'students.views.groups.groups_add',name='groups_add'),
    url(r'^groups/(?P<gid>\d+)/edit/$','students.views.groups.groups_edit',name='groups_edit'),
    url(r'^groups/(?P<gid>\d+)/delete/$','students.views.groups.groups_delete',name='groups_delete'),

# Exam urls
    url(r'^exam/$', 'students.views.exam.exam_list', name='exam'),
    url(r'^exam/add/$', 'students.views.exam.exam_add',name='exam_add'),
    url(r'^exam/(?P<eid>\d+)/edit/$','students.views.exam.exam_edit',name='exam_edit'),
コード例 #3
0
ファイル: urls.py プロジェクト: grydinywka/studentsdb
from stud_auth.views import custom_login

js_info_dict = {
    'domain': 'djangojs',
    'packages': ('students',),
}

urlpatterns = patterns('',
    # Students urls
    # url(r'^$', 'students.views.students.students_list', name='home'),
    url(r'^$', StudentList.as_view(), name='home'),
    
    # url(r'^students/add/$', 'students.views.students.students_add2', name='students_add'),
    # url(r'^students/add/$', 'students.views.students.students_add', name='students_add'),
    url(r'^students/add/$', StudentAddView.as_view(), name='students_add'),
    
    url(r'^students/(?P<sid>\d+)/edit/$', StudentEditView.as_view(), name="students_edit"),
    # url(r'^students/(?P<sid>\d+)/edit/$', StudentUpdateView.as_view(), name="students_edit"),
   
    # url(r'^students/(?P<sid>\d+)/delete/$', StudentDeleteView.as_view(), name='students_delete'),
    url(r'^students/(?P<sid>\d+)/delete/$', StudentDeleteView2.as_view(), name='students_delete'),
    # url(r'^students/(?P<sid>\d+)/delete/$', 'students.views.students.students_delete2', name='students_delete'),
    url(r'^students/delete_mult/$', students_delete_mult, name='students_delete_mult'),
    
    url(r'^student_list/$', StudentList.as_view()),
    url(r'^student_list/(?P<pk>\d+)/$', StudentList.as_view()),
    
    # Groups urls
    # url(r'^groups/$', 'students.views.groups.groups_list', name='groups'),
    url(r'^groups/$', GroupList.as_view(), name='groups'),
コード例 #4
0
ファイル: urls.py プロジェクト: PyDev777/studentsdb
    # url(r'^users/activate/complete/$', custom_activation_complete, name='registration_activation_complete'),
    url(r'^users/activate/complete/$', RedirectView.as_view(pattern_name='home'), name='registration_activation_complete'),
    url(r'^users/login/$', auth_view.login, {'authentication_form': CustAuthForm}, name='auth_login'),
    url(r'^users/logout/$', auth_view.logout, kwargs={'next_page': 'home'}, name='auth_logout'),
    url(r'^users/password_reset/$', auth_view.password_reset, {'password_reset_form': CustPswResetForm}, name='password_reset'),
    url(r'^users/password_reset/done/$', auth_view.password_reset_done, name='password_reset_done'),
    url(r'^users/password_reset/confirm/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$', custom_password_reset_confirm, name='password_reset_confirm'),
    url(r'^users/password_reset/complete/$', auth_view.password_reset_complete, name='password_reset_complete'),
    url(r'^users/password_change/$', login_required(auth_view.password_change), {'password_change_form': CustPswChangeForm}, name='password_change'),
    url(r'^users/password_change/done/$', login_required(auth_view.password_change_done), name='password_change_done'),
    url(r'^users/profile/$', login_required(user_profile), name='profile'),
    url(r'^users/', include('registration.backends.default.urls', namespace='users')),

    # Students urls
    url(r'^$', StudentListView.as_view(), name='home'),
    url(r'^students/add/$', login_required(StudentAddView.as_view()), name='students_add'),
    url(r'^students/(?P<pk>\d+)/edit/$', login_required(StudentUpdateView.as_view()), name='students_edit'),
    url(r'^students/(?P<pk>\d+)/delete/$', login_required(StudentDeleteView.as_view()), name='students_delete'),

    # Groups urls
    url(r'^groups/$', login_required(GroupListView.as_view()), name='groups'),
    url(r'^groups/add/$', login_required(GroupAddView.as_view()), name='groups_add'),
    url(r'^groups/(?P<pk>\d+)/edit/$', login_required(GroupUpdateView.as_view()), name='groups_edit'),
    url(r'^groups/(?P<pk>\d+)/delete/$', login_required(GroupDeleteView.as_view()), name='groups_delete'),

    # Journal
    url(r'^journal/(?P<pk>\d+)?/?$', login_required(JournalView.as_view()), name='journal'),

    # Events log
    url(r'^events_log/$', login_required(EventLogView.as_view()), name='events_log'),
コード例 #5
0
ファイル: urls.py プロジェクト: nechepurenko-1/django
from django.contrib import admin
from .settings import MEDIA_ROOT, DEBUG
from students.views.contact_admin import ContactView
from students.views.students import StudentUpdateView, StudentAddView, StudentDeleteView
from students.views.groups import GroupDeleteView, GroupUpdateView, GroupAddView
from students.views.exams import ExamsDeleteView, ExamsAddView, ExamsUpdateView
from students.views.journal import JournalView

urlpatterns = patterns(
    '',
    url(r'^$', 'students.views.students.students_list', name='home'),
    url(r'^students/add/$',
        'students.views.students.students_add',
        name='students_add'),
    url(r'^students/add_form/$',
        StudentAddView.as_view(),
        name='students_add_form'),
    url(r'^students/(?P<sid>\d+)/edit_hand/$',
        'students.views.students.students_edit_hand',
        name='students_edit_hand'),
    url(r'^students/(?P<pk>\d+)/edit/$',
        StudentUpdateView.as_view(),
        name='students_edit'),
    url(r'^students/(?P<pk>\d+)/delete/$',
        StudentDeleteView.as_view(),
        name='students_delete'),
    url(r'^students/(?P<sid>\d+)/delete_hand/$',
        'students.views.students.students_delete',
        name='students_delete_hand'),
    url(r'^groups/$', 'students.views.groups.groups_list', name='groups'),
    url(r'^groups/add/$',
コード例 #6
0
from django.views.i18n import JavaScriptCatalog
from registration.backends.simple.views import RegistrationView

from students.forms.register import RegisterForm
from students.views.students import StudentUpdateView, StudentDeleteView, StudentAddView, StudentsListView
from students.views.groups import GroupUpdateView, GroupDeleteView, GroupAddView, GroupsListView
from students.views.exams import ExamsListView
from students.views.journal import JournalView
from students.views.contact_admin import ContactView
from students.forms.login import LoginForm

# TODO: use namespaces
urlpatterns = [
    url(r'^$', StudentsListView.as_view(), name='home'),
    url(r'^students/add/$',
        login_required(StudentAddView.as_view()),
        name='students_add'),
    url(r'^students/(?P<pk>\d+)/edit/$',
        login_required(StudentUpdateView.as_view()),
        name='students_edit'),
    url(r'^students/(?P<pk>\d+)/delete/$',
        login_required(StudentDeleteView.as_view()),
        name='students_delete'),
    url(r'^groups/$', login_required(GroupsListView.as_view()), name='groups'),
    url(r'^groups/add/$',
        login_required(GroupAddView.as_view()),
        name='groups_add'),
    url(r'^groups/(?P<pk>\d+)/edit/$',
        login_required(GroupUpdateView.as_view()),
        name='groups_edit'),
    url(r'^groups/(?P<pk>\d+)/delete/$',
コード例 #7
0
from students.views.logs import LogsView, LogDeleteView, LogUpdateView
from students.views.contact_admin import ContactView

from stud_auth.views import RegistrationView, check_user_name

from .settings import MEDIA_ROOT, DEBUG

js_packages = {
    'packages': ('students', 'contact-admin',),
}

urlpatterns = [

    #Students urls
    url(r'^$', students.students_list, name='home'),
    url(r'^students/add/(?P<lang>\S+)?$', login_required(StudentAddView.as_view()), name='students_add'),
    url(r'^students/(?P<pk>\d+)/edit/(?P<lang>\S+)?$', login_required(StudentUpdateView.as_view()),
        name='students_edit'),
    url(r'^students/(?P<pk>\d+)/delete', login_required(StudentDeleteView.as_view()),
        name='students_delete'),

    #Groups urls
    url(r'^groups/$', login_required(groups.groups_list), name='groups'),
    url(r'^groups/add/(?P<lang>\S+)?$', login_required(GroupAddView.as_view()), name='groups_add'),
    url(r'^groups/(?P<pk>\d+)/edit/(?P<lang>\S+)?$', login_required(GroupUpdateView.as_view()),
        name='groups_edit'),
    url(r'^groups/(?P<pk>\d+)/delete', login_required(GroupDeleteView.as_view()),
        name='groups_delete'),

    # Journal url
    url(r'^journal/(?P<pk>\d+)?/?$', login_required(JournalView.as_view()), name='journal'),
コード例 #8
0
ファイル: urls.py プロジェクト: getser/studentsdb
# from django.contrib.staticfiles import views
from django.conf import settings
from django.conf.urls.static import static

from django.conf.urls import patterns, url
from students.views.students import StudentList, StudentAddView, StudentUpdateView, StudentDeleteView
from students.views.groups import GroupAddView, GroupUpdateView, GroupDeleteView
from students.views.journal import JournalView


urlpatterns = [
    # students urls
    url(r"^$", students.students_list, name="home"),
    # url(r'^students/add/$', students.students_add, name='students_add'),
    url(r"^students/add/$", StudentAddView.as_view(), name="students_add"),
    # url(r'^students/(?P<sid>\d+)/edit/$', students.students_edit, name='students_edit'),
    url(r"^students/(?P<pk>\d+)/edit/$", StudentUpdateView.as_view(), name="students_edit"),
    # url(r'^students/(?P<sid>\d+)/delete/$', students.students_delete, name='students_delete'),
    url(r"^students/(?P<pk>\d+)/delete/$", StudentDeleteView.as_view(), name="students_delete"),
    url(r"^student_list/$", StudentList.as_view()),
    # groups urls
    url(r"^groups/$", groups.groups_list, name="groups"),
    # url(r'^groups/add/$', groups.groups_add, name='groups_add'),
    url(r"^groups/add/$", GroupAddView.as_view(), name="groups_add"),
    # url(r'^groups/(?P<gid>\d+)/edit/$', groups.groups_edit, name='groups_edit'),
    url(r"^groups/(?P<pk>\d+)/edit/$", GroupUpdateView.as_view(), name="groups_edit"),
    # url(r'^groups/(?P<gid>\d+)/delete/$', groups.groups_delete, name='groups_delete'),
    url(r"^groups/(?P<pk>\d+)/delete/$", GroupDeleteView.as_view(), name="groups_delete"),
    # exams urls
    url(r"^exams/$", exams.exams_list, name="exams"),