Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
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
django-rest-framework
Commits
8bafa01a
Commit
8bafa01a
authored
Jun 30, 2011
by
Tom Christie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tidy up oauth imports slightly
parent
5d61ff35
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
djangorestframework/runtests/settings.py
+4
-4
djangorestframework/tests/oauthentication.py
+1
-1
No files found.
djangorestframework/runtests/settings.py
View file @
8bafa01a
...
@@ -84,7 +84,7 @@ TEMPLATE_DIRS = (
...
@@ -84,7 +84,7 @@ TEMPLATE_DIRS = (
# Don't forget to use absolute paths, not relative paths.
# Don't forget to use absolute paths, not relative paths.
)
)
INSTALLED_APPS
=
[
INSTALLED_APPS
=
(
'django.contrib.auth'
,
'django.contrib.auth'
,
'django.contrib.contenttypes'
,
'django.contrib.contenttypes'
,
'django.contrib.sessions'
,
'django.contrib.sessions'
,
...
@@ -95,15 +95,15 @@ INSTALLED_APPS = [
...
@@ -95,15 +95,15 @@ INSTALLED_APPS = [
# Uncomment the next line to enable admin documentation:
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
# 'django.contrib.admindocs',
'djangorestframework'
,
'djangorestframework'
,
]
)
# OAuth support is optional, so we only test oauth if it's installed.
# OAuth support is optional, so we only test oauth if it's installed.
try
:
try
:
import
oauth_provider
import
oauth_provider
except
:
except
ImportError
:
pass
pass
else
:
else
:
INSTALLED_APPS
.
append
(
'oauth_provider'
)
INSTALLED_APPS
+=
(
'oauth_provider'
,
)
# If we're running on the Jenkins server we want to archive the coverage reports as XML.
# If we're running on the Jenkins server we want to archive the coverage reports as XML.
import
os
import
os
...
...
djangorestframework/tests/oauthentication.py
View file @
8bafa01a
...
@@ -15,7 +15,7 @@ try:
...
@@ -15,7 +15,7 @@ try:
from
oauth_provider.decorators
import
oauth_required
from
oauth_provider.decorators
import
oauth_required
from
oauth_provider.models
import
Resource
,
Consumer
,
Token
from
oauth_provider.models
import
Resource
,
Consumer
,
Token
except
:
except
ImportError
:
pass
pass
else
:
else
:
...
...
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