Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
29c7f529
Commit
29c7f529
authored
Jan 29, 2012
by
Piotr Mitros
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
768c0853
a1a37f70
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletions
+7
-1
settings_new_askbot.py
+3
-1
staticbook/views.py
+3
-0
urls.py
+1
-0
No files found.
settings_new_askbot.py
View file @
29c7f529
...
@@ -13,7 +13,9 @@ BASE_DIR = os.path.abspath(os.path.join(__file__, "..", ".."))
...
@@ -13,7 +13,9 @@ BASE_DIR = os.path.abspath(os.path.join(__file__, "..", ".."))
COURSEWARE_ENABLED
=
True
COURSEWARE_ENABLED
=
True
ASKBOT_ENABLED
=
True
ASKBOT_ENABLED
=
True
ASKBOT_FILE_UPLOAD_DIR
=
""
ASKBOT_FILE_UPLOAD_DIR
=
""
ASKBOT_UPLOADED_FILES_URL
=
""
CSRF_COOKIE_DOMAIN
=
'127.0.0.1'
CSRF_COOKIE_DOMAIN
=
'127.0.0.1'
# Defaults to be overridden
# Defaults to be overridden
...
...
staticbook/views.py
View file @
29c7f529
...
@@ -10,3 +10,6 @@ def index(request, page=0):
...
@@ -10,3 +10,6 @@ def index(request, page=0):
if
not
request
.
user
.
is_authenticated
():
if
not
request
.
user
.
is_authenticated
():
return
redirect
(
'/'
)
return
redirect
(
'/'
)
return
render_to_response
(
'staticbook.html'
,{
'page'
:
int
(
page
)})
return
render_to_response
(
'staticbook.html'
,{
'page'
:
int
(
page
)})
def
index_shifted
(
request
,
page
):
return
index
(
request
,
int
(
page
)
+
24
)
urls.py
View file @
29c7f529
...
@@ -44,6 +44,7 @@ if settings.COURSEWARE_ENABLED:
...
@@ -44,6 +44,7 @@ if settings.COURSEWARE_ENABLED:
url
(
r'^change_setting$'
,
'auth.views.change_setting'
),
url
(
r'^change_setting$'
,
'auth.views.change_setting'
),
url
(
r'^s/(?P<template>[^/]*)$'
,
'static_template_view.views.auth_index'
),
url
(
r'^s/(?P<template>[^/]*)$'
,
'static_template_view.views.auth_index'
),
url
(
r'^book/(?P<page>[^/]*)$'
,
'staticbook.views.index'
),
url
(
r'^book/(?P<page>[^/]*)$'
,
'staticbook.views.index'
),
url
(
r'^book-shifted/(?P<page>[^/]*)$'
,
'staticbook.views.index_shifted'
),
url
(
r'^book*$'
,
'staticbook.views.index'
),
url
(
r'^book*$'
,
'staticbook.views.index'
),
# url(r'^course_info/$', 'auth.views.courseinfo'),
# url(r'^course_info/$', 'auth.views.courseinfo'),
# url(r'^show_circuit/(?P<circuit>[^/]*)$', 'circuit.views.show_circuit'),
# url(r'^show_circuit/(?P<circuit>[^/]*)$', 'circuit.views.show_circuit'),
...
...
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