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
a061e3d9
Commit
a061e3d9
authored
Jan 05, 2013
by
Juan Riaza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deprecate simplejson
parent
8a4e2c17
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
7 additions
and
7 deletions
+7
-7
rest_framework/parsers.py
+1
-1
rest_framework/renderers.py
+1
-1
rest_framework/tests/authentication.py
+1
-1
rest_framework/tests/generics.py
+1
-1
rest_framework/tests/hyperlinkedserializers.py
+1
-1
rest_framework/tests/request.py
+1
-1
rest_framework/utils/encoders.py
+1
-1
No files found.
rest_framework/parsers.py
View file @
a061e3d9
...
...
@@ -8,11 +8,11 @@ on the request, such as form content or json encoded data.
from
django.http
import
QueryDict
from
django.http.multipartparser
import
MultiPartParser
as
DjangoMultiPartParser
from
django.http.multipartparser
import
MultiPartParserError
from
django.utils
import
simplejson
as
json
from
rest_framework.compat
import
yaml
,
ETParseError
from
rest_framework.exceptions
import
ParseError
from
xml.etree
import
ElementTree
as
ET
from
xml.parsers.expat
import
ExpatError
import
json
import
datetime
import
decimal
...
...
rest_framework/renderers.py
View file @
a061e3d9
...
...
@@ -8,10 +8,10 @@ REST framework also provides an HTML renderer the renders the browsable API.
"""
import
copy
import
string
import
json
from
django
import
forms
from
django.http.multipartparser
import
parse_header
from
django.template
import
RequestContext
,
loader
,
Template
from
django.utils
import
simplejson
as
json
from
rest_framework.compat
import
yaml
from
rest_framework.exceptions
import
ConfigurationError
from
rest_framework.settings
import
api_settings
...
...
rest_framework/tests/authentication.py
View file @
a061e3d9
from
django.contrib.auth.models
import
User
from
django.http
import
HttpResponse
from
django.test
import
Client
,
TestCase
from
django.utils
import
simplejson
as
json
from
rest_framework
import
permissions
from
rest_framework.authtoken.models
import
Token
...
...
@@ -9,6 +8,7 @@ from rest_framework.authentication import TokenAuthentication
from
rest_framework.compat
import
patterns
from
rest_framework.views
import
APIView
import
json
import
base64
...
...
rest_framework/tests/generics.py
View file @
a061e3d9
import
json
from
django.db
import
models
from
django.test
import
TestCase
from
django.utils
import
simplejson
as
json
from
rest_framework
import
generics
,
serializers
,
status
from
rest_framework.tests.utils
import
RequestFactory
from
rest_framework.tests.models
import
BasicModel
,
Comment
,
SlugBasedModel
...
...
rest_framework/tests/hyperlinkedserializers.py
View file @
a061e3d9
import
json
from
django.test
import
TestCase
from
django.test.client
import
RequestFactory
from
django.utils
import
simplejson
as
json
from
rest_framework
import
generics
,
status
,
serializers
from
rest_framework.compat
import
patterns
,
url
from
rest_framework.tests.models
import
Anchor
,
BasicModel
,
ManyToManyModel
,
BlogPost
,
BlogPostComment
,
Album
,
Photo
,
OptionalRelationModel
...
...
rest_framework/tests/request.py
View file @
a061e3d9
"""
Tests for content parsing, and form-overloaded content parsing.
"""
import
json
from
django.contrib.auth.models
import
User
from
django.contrib.auth
import
authenticate
,
login
,
logout
from
django.contrib.sessions.middleware
import
SessionMiddleware
from
django.test
import
TestCase
,
Client
from
django.test.client
import
RequestFactory
from
django.utils
import
simplejson
as
json
from
rest_framework
import
status
from
rest_framework.authentication
import
SessionAuthentication
from
rest_framework.compat
import
patterns
...
...
rest_framework/utils/encoders.py
View file @
a061e3d9
...
...
@@ -4,7 +4,7 @@ Helper classes for parsers.
import
datetime
import
decimal
import
types
from
django.utils
import
simplejson
as
json
import
json
from
django.utils.datastructures
import
SortedDict
from
rest_framework.compat
import
timezone
from
rest_framework.serializers
import
DictWithMetadata
,
SortedDictWithMetadata
...
...
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