Code examples from the blog post "Django REST Framework Token Authentication Example"
Switch branches/tags
Nothing to show
Clone or download
Latest commit 8a73262 Nov 22, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
myapi Initial commit Nov 22, 2018
.gitignore Initial commit Nov 22, 2018
LICENSE Add license, readme and requirements Nov 22, 2018
README.md Remove dashes Nov 22, 2018
manage.py Initial commit Nov 22, 2018
requirements.txt Add license, readme and requirements Nov 22, 2018

README.md

Django REST Framework Token Authentication Example

Python Version Django Version Django Rest Framework Version

Code example used in the tutorial How to Implement Token Authentication using Django REST Framework.

Running the Project Locally

First, clone the repository to your local machine:

git clone https://github.com/sibtc/drf-token-auth-example.git

Install the requirements:

pip install -r requirements.txt

Apply the migrations:

python manage.py migrate

Finally, run the development server:

python manage.py runserver

The API endpoints will be available at 127.0.0.1:8000.

License

The source code is released under the MIT License.