Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
e52de041
Commit
e52de041
authored
4 years ago
by
stvn
Browse files
Options
Downloads
Plain Diff
Merge PR #26752 cleanup/middleware-classes
* Commits: docs: Update references to Django MIDDLEWARE_CLASSES
parents
5e2bbd88
b033b0d1
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
openedx/core/djangoapps/cache_toolbox/middleware.py
+3
-3
3 additions, 3 deletions
openedx/core/djangoapps/cache_toolbox/middleware.py
openedx/core/djangoapps/dark_lang/__init__.py
+1
-1
1 addition, 1 deletion
openedx/core/djangoapps/dark_lang/__init__.py
with
4 additions
and
4 deletions
openedx/core/djangoapps/cache_toolbox/middleware.py
+
3
−
3
View file @
e52de041
...
...
@@ -55,9 +55,9 @@ However, this has two main disadvantages:
Usage
~~~~~
To use, find ``MIDDLEWARE
_CLASSES
`` in your ``settings.py`` and replace::
To use, find ``MIDDLEWARE`` in your ``settings.py`` and replace::
MIDDLEWARE
_CLASSES
= [
MIDDLEWARE = [
...
'
django.contrib.auth.middleware.AuthenticationMiddleware
'
,
...
...
...
@@ -65,7 +65,7 @@ To use, find ``MIDDLEWARE_CLASSES`` in your ``settings.py`` and replace::
with::
MIDDLEWARE
_CLASSES
= [
MIDDLEWARE = [
...
'
openedx.core.djangoapps.cache_toolbox.middleware.CacheBackedAuthenticationMiddleware
'
,
...
...
...
This diff is collapsed.
Click to expand it.
openedx/core/djangoapps/dark_lang/__init__.py
+
1
−
1
View file @
e52de041
...
...
@@ -9,7 +9,7 @@ are only accessible through the use of a specific query parameter
Installation
------------
Add the ``DarkLangMiddleware`` to your list of ``MIDDLEWARE
_CLASSES
``.
Add the ``DarkLangMiddleware`` to your list of ``MIDDLEWARE``.
It must come after the ``SessionMiddleware``, and before the ``LocaleMiddleware``.
Run migrations to install the configuration table.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment