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
b86ba908
Commit
b86ba908
authored
Jan 29, 2012
by
Piotr Mitros
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forked django middleware and moved it into the project. We'd like better django integration
parent
8125180e
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
22 additions
and
19 deletions
+22
-19
auth/views.py
+1
-1
circuit/views.py
+1
-1
courseware/capa/inputtypes.py
+1
-1
courseware/module_render.py
+1
-1
courseware/modules/capa_module.py
+1
-1
courseware/modules/html_module.py
+1
-1
courseware/modules/schematic_module.py
+1
-1
courseware/modules/seq_module.py
+1
-1
courseware/modules/vertical_module.py
+1
-1
courseware/modules/video_module.py
+1
-1
courseware/views.py
+1
-1
settings_new_askbot.py
+4
-1
settings_old_askbot.py
+1
-1
simplewiki/mdx_circuit.py
+1
-1
simplewiki/views.py
+2
-2
static_template_view/views.py
+1
-1
staticbook/views.py
+1
-1
util/views.py
+1
-1
No files found.
auth/views.py
View file @
b86ba908
...
...
@@ -12,7 +12,7 @@ from django.core.validators import validate_email, validate_slug
from
django.db
import
connection
from
django.http
import
HttpResponse
from
django.shortcuts
import
redirect
from
django
mako.shortcuts
import
render_to_response
,
render_to_string
from
mitx
mako.shortcuts
import
render_to_response
,
render_to_string
from
models
import
Registration
,
UserProfile
log
=
logging
.
getLogger
(
"mitx.auth"
)
...
...
circuit/views.py
View file @
b86ba908
...
...
@@ -7,7 +7,7 @@ from django.conf import settings
from
django.http
import
Http404
from
django.http
import
HttpResponse
from
django.shortcuts
import
redirect
from
django
mako.shortcuts
import
render_to_response
,
render_to_string
from
mitx
mako.shortcuts
import
render_to_response
,
render_to_string
from
models
import
ServerCircuit
...
...
courseware/capa/inputtypes.py
View file @
b86ba908
from
lxml.etree
import
Element
from
lxml
import
etree
from
django
mako.shortcuts
import
render_to_response
,
render_to_string
from
mitx
mako.shortcuts
import
render_to_response
,
render_to_string
class
textline
(
object
):
@staticmethod
...
...
courseware/module_render.py
View file @
b86ba908
...
...
@@ -17,7 +17,7 @@ from django.http import HttpResponse
from
django.shortcuts
import
redirect
from
django.template
import
Context
from
django.template
import
Context
,
loader
from
django
mako.shortcuts
import
render_to_response
,
render_to_string
from
mitx
mako.shortcuts
import
render_to_response
,
render_to_string
from
auth.models
import
UserProfile
from
models
import
StudentModule
...
...
courseware/modules/capa_module.py
View file @
b86ba908
...
...
@@ -16,7 +16,7 @@ from lxml import etree
## TODO: Abstract out from Django
from
django.conf
import
settings
from
django
mako.shortcuts
import
render_to_response
,
render_to_string
from
mitx
mako.shortcuts
import
render_to_response
,
render_to_string
from
django.http
import
Http404
from
x_module
import
XModule
...
...
courseware/modules/html_module.py
View file @
b86ba908
...
...
@@ -2,7 +2,7 @@ import json
## TODO: Abstract out from Django
from
django.conf
import
settings
from
django
mako.shortcuts
import
render_to_response
,
render_to_string
from
mitx
mako.shortcuts
import
render_to_response
,
render_to_string
from
x_module
import
XModule
from
lxml
import
etree
...
...
courseware/modules/schematic_module.py
View file @
b86ba908
...
...
@@ -2,7 +2,7 @@ import json
## TODO: Abstract out from Django
from
django.conf
import
settings
from
django
mako.shortcuts
import
render_to_response
,
render_to_string
from
mitx
mako.shortcuts
import
render_to_response
,
render_to_string
from
x_module
import
XModule
...
...
courseware/modules/seq_module.py
View file @
b86ba908
...
...
@@ -5,7 +5,7 @@ from lxml import etree
## TODO: Abstract out from Django
from
django.http
import
Http404
from
django.conf
import
settings
from
django
mako.shortcuts
import
render_to_response
,
render_to_string
from
mitx
mako.shortcuts
import
render_to_response
,
render_to_string
from
x_module
import
XModule
...
...
courseware/modules/vertical_module.py
View file @
b86ba908
...
...
@@ -2,7 +2,7 @@ import json
## TODO: Abstract out from Django
from
django.conf
import
settings
from
django
mako.shortcuts
import
render_to_response
,
render_to_string
from
mitx
mako.shortcuts
import
render_to_response
,
render_to_string
from
x_module
import
XModule
from
lxml
import
etree
...
...
courseware/modules/video_module.py
View file @
b86ba908
...
...
@@ -5,7 +5,7 @@ from lxml import etree
## TODO: Abstract out from Django
from
django.conf
import
settings
from
django
mako.shortcuts
import
render_to_response
,
render_to_string
from
mitx
mako.shortcuts
import
render_to_response
,
render_to_string
from
x_module
import
XModule
...
...
courseware/views.py
View file @
b86ba908
...
...
@@ -12,7 +12,7 @@ from django.contrib.auth.models import User
from
django.http
import
HttpResponse
,
Http404
from
django.shortcuts
import
redirect
from
django.template
import
Context
,
loader
from
django
mako.shortcuts
import
render_to_response
,
render_to_string
from
mitx
mako.shortcuts
import
render_to_response
,
render_to_string
from
django.db
import
connection
from
lxml
import
etree
...
...
settings_new_askbot.py
View file @
b86ba908
...
...
@@ -3,6 +3,9 @@ import sys
import
djcelery
LIB_URL
=
'/static/lib/'
BOOK_URL
=
'/static/book/'
# Our parent dir (mitx_all) is the BASE_DIR
BASE_DIR
=
os
.
path
.
abspath
(
os
.
path
.
join
(
__file__
,
".."
,
".."
))
...
...
@@ -85,7 +88,7 @@ MIDDLEWARE_CLASSES = (
'django.contrib.auth.middleware.AuthenticationMiddleware'
,
'django.contrib.messages.middleware.MessageMiddleware'
,
'track.middleware.TrackMiddleware'
,
'
django
mako.middleware.MakoMiddleware'
,
'
mitx
mako.middleware.MakoMiddleware'
,
#'debug_toolbar.middleware.DebugToolbarMiddleware',
)
...
...
settings_old_askbot.py
View file @
b86ba908
...
...
@@ -81,7 +81,7 @@ MIDDLEWARE_CLASSES = (
'django.contrib.auth.middleware.AuthenticationMiddleware'
,
'django.contrib.messages.middleware.MessageMiddleware'
,
'track.middleware.TrackMiddleware'
,
'
django
mako.middleware.MakoMiddleware'
,
'
mitx
mako.middleware.MakoMiddleware'
,
#'debug_toolbar.middleware.DebugToolbarMiddleware',
)
...
...
simplewiki/mdx_circuit.py
View file @
b86ba908
...
...
@@ -8,7 +8,7 @@ circuit:name becomes the circuit.
import
simplewiki.settings
as
settings
from
django
mako.shortcuts
import
render_to_response
,
render_to_string
from
mitx
mako.shortcuts
import
render_to_response
,
render_to_string
import
markdown
try
:
...
...
simplewiki/views.py
View file @
b86ba908
...
...
@@ -15,10 +15,10 @@ from django.template import Context
from
django.template
import
RequestContext
,
Context
,
loader
from
django.utils
import
simplejson
from
django.utils.translation
import
ugettext_lazy
as
_
from
django
mako.shortcuts
import
render_to_response
,
render_to_string
from
mitx
mako.shortcuts
import
render_to_response
,
render_to_string
from
mako.lookup
import
TemplateLookup
from
mako.template
import
Template
import
django
mako.middleware
import
mitx
mako.middleware
from
models
import
*
# TODO: Clean up
from
settings
import
*
...
...
static_template_view/views.py
View file @
b86ba908
...
...
@@ -3,7 +3,7 @@
# List of valid templates is explicitly managed for (short-term)
# security reasons.
from
django
mako.shortcuts
import
render_to_response
,
render_to_string
from
mitx
mako.shortcuts
import
render_to_response
,
render_to_string
from
django.shortcuts
import
redirect
from
django.core.context_processors
import
csrf
...
...
staticbook/views.py
View file @
b86ba908
...
...
@@ -4,7 +4,7 @@ import os
from
django.conf
import
settings
from
django.http
import
Http404
from
django.shortcuts
import
redirect
from
django
mako.shortcuts
import
render_to_response
,
render_to_string
from
mitx
mako.shortcuts
import
render_to_response
,
render_to_string
def
index
(
request
,
page
=
0
):
if
not
request
.
user
.
is_authenticated
():
...
...
util/views.py
View file @
b86ba908
...
...
@@ -10,7 +10,7 @@ from django.core.mail import send_mail
from
django.http
import
Http404
from
django.http
import
HttpResponse
from
django.shortcuts
import
redirect
from
django
mako.shortcuts
import
render_to_response
,
render_to_string
from
mitx
mako.shortcuts
import
render_to_response
,
render_to_string
import
courseware.capa.calc
import
track.views
...
...
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