Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-openid-auth
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
OpenEdx
django-openid-auth
Commits
c0a75d48
Commit
c0a75d48
authored
Jan 06, 2011
by
Anthony Lenton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added an explanatory note in settings.py
parent
a40b0a0d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
example_consumer/settings.py
+3
-0
No files found.
example_consumer/settings.py
View file @
c0a75d48
...
@@ -86,6 +86,9 @@ TEMPLATE_LOADERS = (
...
@@ -86,6 +86,9 @@ TEMPLATE_LOADERS = (
# 'django.template.loaders.eggs.load_template_source',
# 'django.template.loaders.eggs.load_template_source',
)
)
# django-openid-auth will *not* work with Django 1.1.1 or older, as it's
# missing the csrf_token template tag. It will work with Lucid's django
# though, as that has a bunch of backported features from 1.1.2.
import
django
import
django
if
float
(
django
.
get_version
()[:
3
])
<
1.2
:
if
float
(
django
.
get_version
()[:
3
])
<
1.2
:
csrf_middleware
=
'django.contrib.csrf.middleware.CsrfViewMiddleware'
csrf_middleware
=
'django.contrib.csrf.middleware.CsrfViewMiddleware'
...
...
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