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
8ebbae68
Commit
8ebbae68
authored
Nov 13, 2012
by
Rob Romano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed authtoken/urls.py, not really needed with Tom's simplification
parent
4fd590f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
rest_framework/authtoken/urls.py
+0
-20
No files found.
rest_framework/authtoken/urls.py
deleted
100644 → 0
View file @
4fd590f9
"""
Login view for token authentication.
Add this to your root URLconf if you're using token authentication
your API requires authentication.
You should make sure your authentication settings include
`TokenAuthentication`.
urlpatterns = patterns('',
...
url(r'^auth-token/', 'rest_framework.authtoken.obtain_auth_token')
)
"""
from
django.conf.urls.defaults
import
patterns
,
url
urlpatterns
=
patterns
(
'rest_framework.authtoken.views'
,
url
(
r'^login/$'
,
'rest_framework.authtoken.views.obtain_auth_token'
,
name
=
'token_login'
),
)
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