Restful-API Django module for Studio/STACKn. To include source package in a Django project:
$ python3 -m venv .venv
$ source .venv/bin/activate
$ pip install .
And add to installed apps in settings.py:
INSTALLED_APPS=[
"rest_framework.authtoken",
"rest_framework",
"api"
]
REST_FRAMEWORK = {
"DEFAULT_AUTHENTICATION_CLASSES": [
"rest_framework.authentication.TokenAuthentication"
],
}
For a complete project follow the link above and navigate to settings.py