Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shearichard/drf-auth-sandbox
A sandbox project for demoing different approaches to Django Rest Framework Authentication
https://github.com/shearichard/drf-auth-sandbox
authentication demo-app django django-rest-framework
Last synced: about 9 hours ago
JSON representation
A sandbox project for demoing different approaches to Django Rest Framework Authentication
- Host: GitHub
- URL: https://github.com/shearichard/drf-auth-sandbox
- Owner: shearichard
- Created: 2024-01-09T01:45:59.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-10-18T21:03:05.000Z (29 days ago)
- Last Synced: 2024-10-19T01:09:39.763Z (29 days ago)
- Topics: authentication, demo-app, django, django-rest-framework
- Language: Python
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/shearichard/drf-cc-sandbox.svg?branch=master)](https://travis-ci.org/shearichard/drf-cc-sandbox)
[![Built with](https://img.shields.io/badge/Built_with-Cookiecutter_Django_Rest-F7B633.svg)](https://github.com/agconti/cookiecutter-django-rest)# Django Rest Framework Authentication Demonstrator
Exposing various authentication options in Django Rest Framework to allow for demonstrations and training.
## Prerequisites
- [Docker](https://docs.docker.com/docker-for-mac/install/)
## Databases
This project is setup to use Postgres in the long term but initially uses sqlite. A flag in the [config.common](https://github.com/shearichard/drf-auth-sandbox/blob/2582af4a410917d813f1f2c1f7d5ad2206dddafe/drf-cc-sandbox/config/common.py#L8) settings module determines which is used. When the switch back to Postgres is made it will be necessary to re-run the migrations and recreat the superuser.## Local Development
Start the dev server for local development:
```bash
docker-compose up
```Run a command inside the docker container:
```bash
docker-compose run --rm web [command]
```