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
7f1ba504
Commit
7f1ba504
authored
Sep 13, 2017
by
bmedx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding Django 1.11 support
parent
8b210641
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
django_openid_auth/views.py
+2
-2
example_consumer/settings.py
+1
-1
tox.ini
+3
-3
No files found.
django_openid_auth/views.py
View file @
7f1ba504
...
...
@@ -133,7 +133,7 @@ def default_render_failure(request, message, status=403,
template_name
=
'openid/failure.html'
,
exception
=
None
):
"""Render an error page to the user."""
context
=
RequestContext
(
request
)
context
=
RequestContext
(
request
)
.
flatten
()
context
.
update
(
dict
(
message
=
message
,
exception
=
exception
))
data
=
render_to_string
(
template_name
,
context
)
return
HttpResponse
(
data
,
status
=
status
)
...
...
@@ -179,7 +179,7 @@ def login_begin(request, template_name='openid/login.html',
# Invalid or no form data:
if
openid_url
is
None
:
context
=
RequestContext
(
request
)
context
=
RequestContext
(
request
)
.
flatten
()
context
.
update
({
'form'
:
login_form
,
redirect_field_name
:
redirect_to
,
...
...
example_consumer/settings.py
View file @
7f1ba504
...
...
@@ -53,13 +53,13 @@ SECRET_KEY = '34958734985734985734985798437'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG
=
True
TEMPLATE_DEBUG
=
True
TEMPLATES
=
[
{
'BACKEND'
:
'django.template.backends.django.DjangoTemplates'
,
'DIRS'
:
[],
'APP_DIRS'
:
True
,
'OPTIONS'
:
{
'debug'
:
True
,
'context_processors'
:
[
'django.contrib.auth.context_processors.auth'
,
'django.template.context_processors.debug'
,
...
...
tox.ini
View file @
7f1ba504
[tox]
envlist
=
py27-django{1.8,1.9,1.10}
#
py3-django{1.11}
py27-django{1.8,1.9,1.10
,1.11
}
py3-django{1.11}
[testenv]
commands
=
python manage.py test django_openid_auth
...
...
@@ -15,7 +15,7 @@ deps =
{
[testenv]
deps}
[testenv:py3]
basepython
=
python3
basepython
=
python3
.5
deps
=
python3-openid
{
[testenv]
deps}
...
...
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