MXSH-Dev / SimpleDjangoRestApiWithTokenAuth

Simple Django Rest API with token based authentication

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create virtual environment on vagrant vm:

python3 -m venv ~/env

Activate virtual environment:

source ~/env/bin/activate

Deactivate virtual environment:

deactivate

Install python packages:

pip install -r requirements.txt

Add APPs to settings.py:

INSTALLED_APPS = [
    'rest_framework',
    'rest_framework.authtoken',
    'profile_api'
]

Run development server:

python3 manage.py runserver 0.0.0.0:8000

About

Simple Django Rest API with token based authentication

License:MIT License


Languages

Language:Python 100.0%