Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
roomlist
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
23
Issues
23
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SRCT
roomlist
Commits
f39cfb2a
Commit
f39cfb2a
authored
Oct 17, 2015
by
Daniel W Bond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imported new views and added routing
parent
97c9c10c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
8 deletions
+21
-8
roomlist/accounts/urls.py
roomlist/accounts/urls.py
+21
-8
No files found.
roomlist/accounts/urls.py
View file @
f39cfb2a
...
@@ -4,13 +4,16 @@ from django.views.decorators.cache import cache_page
...
@@ -4,13 +4,16 @@ from django.views.decorators.cache import cache_page
# imports from your apps
# imports from your apps
from
.views
import
DetailStudent
,
UpdateStudent
,
DetailStudentSettings
,
\
from
.views
import
DetailStudent
,
UpdateStudent
,
DetailStudentSettings
,
\
DetailCurrentStudent
,
DetailCurrentStudentSettings
,
ListMajors
,
\
DetailCurrentStudent
,
DetailCurrentStudentSettings
,
ListMajors
,
\
DetailMajor
,
WelcomeName
,
WelcomePrivacy
,
WelcomeMajor
,
WelcomeSocial
DetailMajor
,
WelcomeName
,
WelcomePrivacy
,
WelcomeMajor
,
WelcomeSocial
,
\
CreateConfirmation
,
DeleteConfirmation
urlpatterns
=
patterns
(
''
,
urlpatterns
=
patterns
(
''
,
# social media confirmation
url
(
r
''
,
include
(
'allauth.urls'
)),
url
(
r
''
,
include
(
'allauth.urls'
)),
# majors pages
url
(
r
'^majors/$'
,
url
(
r
'^majors/$'
,
cache_page
(
60
*
15
)(
ListMajors
.
as_view
()),
cache_page
(
60
*
15
)(
ListMajors
.
as_view
()),
name
=
'list_majors'
),
name
=
'list_majors'
),
...
@@ -19,21 +22,31 @@ urlpatterns = patterns('',
...
@@ -19,21 +22,31 @@ urlpatterns = patterns('',
cache_page
(
60
*
2
)(
DetailMajor
.
as_view
()),
cache_page
(
60
*
2
)(
DetailMajor
.
as_view
()),
name
=
'detail_major'
),
name
=
'detail_major'
),
url
(
r
'^student/$'
,
# student profile pages
cache_page
(
60
*
2
)(
DetailCurrentStudent
.
as_view
()),
name
=
'detailCurrentStudent'
),
url
(
r
'^student/(?P<slug>[\w-]+)/$'
,
url
(
r
'^student/(?P<slug>[\w-]+)/$'
,
cache_page
(
60
*
2
)(
DetailStudent
.
as_view
()),
cache_page
(
60
*
2
)(
DetailStudent
.
as_view
()),
name
=
'detail_student'
),
name
=
'detail_student'
),
#url(r'^student/$',
#cache_page(60 * 2)(DetailCurrentStudent.as_view()),
#name='detailCurrentStudent'),
# student settings
url
(
r
'^student/(?P<slug>[\w-]+)/settings/$'
,
url
(
r
'^student/(?P<slug>[\w-]+)/settings/$'
,
cache_page
(
4
)(
UpdateStudent
.
as_view
()),
cache_page
(
4
)(
UpdateStudent
.
as_view
()),
name
=
'updateStudent'
),
name
=
'updateStudent'
),
url
(
r
'^settings/$'
,
#url(r'^settings/$',
cache_page
(
4
)(
DetailCurrentStudentSettings
.
as_view
()),
#cache_page(4)(DetailCurrentStudentSettings.as_view()),
name
=
'currentStudentSettings'
),
#name='currentStudentSettings'),
# student confirmation pages
url
(
r
'^student/(?P<student_slug>[\w-]+)/flag/$'
,
CreateConfirmation
.
as_view
(),
name
=
'createConfirmation'
),
# delete
url
(
r
'^student/(?P<student_slug>[\w-]+)/flag/(?P<slug>[\w-]+)/$'
,
DeleteConfirmation
.
as_view
(),
name
=
'deleteConfirmation'
),
# first welcome page
# first welcome page
# let's verify your name and optionally select a gender
# let's verify your name and optionally select a gender
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment