예제 #1
0
파일: urls.py 프로젝트: rbiz4/semesterly
from django.contrib.auth.views import LogoutView

from helpers.mixins import FeatureFlowView
import student.views

admin.autodiscover()

urlpatterns = [
    # profile management
    url(r'^user/logout/$', LogoutView.as_view(), {'next_page': '/'}),
    url(r'^unsubscribe/(?P<id>[\w.@+-]+)/(?P<token>[\w.:\-_=]+)/$',
        student.views.unsubscribe),
    url(r'^user/settings/$', student.views.UserView.as_view()),
    url(
        r'^delete_account/$',
        FeatureFlowView.as_view(feature_name='DELETE_ACCOUNT',
                                allow_unauthenticated=False)),

    # timetable management
    url(r'^user/timetables/$', student.views.UserTimetableView.as_view()),
    url(r'^user/timetables/(?P<sem_name>.+?)/(?P<year>[0-9]{4})/$',
        student.views.UserTimetableView.as_view()),
    url(
        r'^user/timetables/(?P<sem_name>.+)/(?P<year>[0-9]{4})/(?P<tt_name>.+)/$',
        student.views.UserTimetableView.as_view()),
    # social
    url(r'^user/classmates/(?P<sem_name>.+)/(?P<year>[0-9]{4})',
        student.views.ClassmateView.as_view()),
    url(r'^user/gcal/?$', student.views.GCalView.as_view()),
    url(r'^user/reactions/?$', student.views.ReactionView.as_view()),

    # for accepting TOS.
예제 #2
0
파일: urls.py 프로젝트: yzhan289/semesterly
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

from django.conf.urls import patterns, url
from django.contrib import admin
from django.http import HttpResponseRedirect
from django.views.generic.base import RedirectView

import timetable.views
from helpers.mixins import FeatureFlowView

admin.autodiscover()

urlpatterns = patterns('',
                       url(r'^signin/*$',
                           FeatureFlowView.as_view(feature_name='USER_ACQ')),
                       url(r'^signup/*$',
                           FeatureFlowView.as_view(feature_name='SIGNUP')),
                       url(r'^textbooks/*$',
                           FeatureFlowView.as_view(feature_name='VIEW_TEXTBOOKS')),
                       url(r'^export_calendar/*$',
                           FeatureFlowView.as_view(feature_name='EXPORT_CALENDAR')),
                       url(r'^notifyme/*$',
                           FeatureFlowView.as_view(feature_name='ENABLE_NOTIFS')),
                       url(r'^find_friends/$',
                           FeatureFlowView.as_view(feature_name='FIND_FRIENDS')),
                       url(r'^callback/google_calendar/*$',
                           FeatureFlowView.as_view(feature_name='GCAL_CALLBACK')),

                       url(r'^timetable/.*$', RedirectView.as_view(url="/")),
예제 #3
0
파일: urls.py 프로젝트: yzhan289/semesterly
# Copyright (C) 2017 Semester.ly Technologies, LLC
#
# Semester.ly is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Semester.ly is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

from django.conf.urls import patterns, url
from django.contrib import admin

import exams.views
from helpers.mixins import FeatureFlowView

admin.autodiscover()

urlpatterns = patterns('',
                       url(r'^final_exams/*$', FeatureFlowView.as_view(feature_name='FINAL_EXAMS')),

                       url(r'^exams/?$', exams.views.ExamView.as_view()),
                       url(r'^exams/links/?$', exams.views.ExamLink.as_view()),
                       url(r'^exams/links/(?P<slug>.+)/$', exams.views.ExamLink.as_view())
                       )
예제 #4
0
# (at your option) any later version.
#
# Semester.ly is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

from django.conf.urls import re_path
from django.http import HttpResponseRedirect
from django.views.generic.base import RedirectView

import timetable.views
from helpers.mixins import FeatureFlowView

urlpatterns = [
    re_path(r"^signin/*$", FeatureFlowView.as_view(feature_name="USER_ACQ")),
    re_path(r"^signup/*$", FeatureFlowView.as_view(feature_name="SIGNUP")),
    re_path(r"^textbooks/*$",
            FeatureFlowView.as_view(feature_name="VIEW_TEXTBOOKS")),
    re_path(r"^export_calendar/*$",
            FeatureFlowView.as_view(feature_name="EXPORT_CALENDAR")),
    re_path(r"^notifyme/*$",
            FeatureFlowView.as_view(feature_name="ENABLE_NOTIFS")),
    re_path(r"^find_friends/$",
            FeatureFlowView.as_view(feature_name="FIND_FRIENDS")),
    re_path(r"^timetable/.*$", RedirectView.as_view(url="/")),
    # timetables
    re_path(r"^timetables/?$", timetable.views.TimetableView.as_view()),
    # sharing
    re_path(r"^timetables/links/$",
            timetable.views.TimetableLinkView.as_view()),
예제 #5
0
# Copyright (C) 2017 Semester.ly Technologies, LLC
#
# Semester.ly is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Semester.ly is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

from django.conf.urls import url
from django.contrib import admin

import exams.views
from helpers.mixins import FeatureFlowView

admin.autodiscover()

urlpatterns = [
    url(r'^final_exams/*$',
        FeatureFlowView.as_view(feature_name='FINAL_EXAMS')),
    url(r'^exams/?$', exams.views.ExamView.as_view()),
    url(r'^exams/links/?$', exams.views.ExamLink.as_view()),
    url(r'^exams/links/(?P<slug>.+)/$', exams.views.ExamLink.as_view())
]
예제 #6
0
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

from django.conf.urls import re_path
from django.contrib import admin
from django.http import HttpResponseRedirect
from django.views.generic.base import RedirectView

import timetable.views
from helpers.mixins import FeatureFlowView

admin.autodiscover()

urlpatterns = [
    re_path(r'^signin/*$', FeatureFlowView.as_view(feature_name='USER_ACQ')),
    re_path(r'^signup/*$', FeatureFlowView.as_view(feature_name='SIGNUP')),
    re_path(r'^textbooks/*$',
            FeatureFlowView.as_view(feature_name='VIEW_TEXTBOOKS')),
    re_path(r'^export_calendar/*$',
            FeatureFlowView.as_view(feature_name='EXPORT_CALENDAR')),
    re_path(r'^notifyme/*$',
            FeatureFlowView.as_view(feature_name='ENABLE_NOTIFS')),
    re_path(r'^find_friends/$',
            FeatureFlowView.as_view(feature_name='FIND_FRIENDS')),
    # re_path(r'^callback/google_calendar/*$', FeatureFlowView.as_view(feature_name='GCAL_CALLBACK')),
    re_path(r'^timetable/.*$', RedirectView.as_view(url="/")),
    re_path(r'^complete/facebook/.*$', FeatureFlowView.as_view()),

    # timetables
    re_path(r'^timetables/?$', timetable.views.TimetableView.as_view()),