django_for_apis/
django_for_apis/
settings.py
DATABASES = [...]
/* Modify this with your needs */
-
For PostgreSQL
$ createdb <database_name>
$ virtualenv venv -p python3
$ source venv/bin/activate
$ pip3 install -r requirements.txt
(django_for_apis/) $ python3 manage.py migrate
$ python3 manage.py createsuperuser
$ python3 manage.py drf_create_token <superuser_username>
$ python3 manage.py runserver
-
User Creation
POST http://localhost:8000/secure/users/ { "username" : <username>, "password" : <password>, "email" : <email> }
-
User Login
POST http://localhost/secure/login/ { "username" : <username>, "password" : <password> }