https://github.com/fusionauth/fusionauth-quickstart-python-django-web
https://github.com/fusionauth/fusionauth-quickstart-python-django-web
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fusionauth/fusionauth-quickstart-python-django-web
- Owner: FusionAuth
- License: other
- Created: 2023-08-18T19:45:46.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2026-02-06T22:54:38.000Z (5 months ago)
- Last Synced: 2026-02-07T09:44:46.774Z (5 months ago)
- Language: FreeMarker
- Homepage: https://fusionauth.io
- Size: 2.42 MB
- Stars: 2
- Watchers: 9
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Example Django Application
This repo holds an example Python/Django application that uses FusionAuth as the identity provider.
This application was built by following the [Python/Django Quickstart](https://fusionauth.io/docs/quickstarts/quickstart-python-django-web).
## Project Contents
The `docker-compose.yml` file and the `kickstart` directory are used to start and configure a local FusionAuth server.
The `/complete-application` directory contains a fully working version of the application.
## Project Dependencies
* Docker, for running FusionAuth.
* Python 3.8 or later, for running the Changebank Python application.
* [mozilla-django-oidc library](https://mozilla-django-oidc.readthedocs.io/en/stable/index.html)
## Running FusionAuth
To run FusionAuth, just start up the docker containers using `docker-compose`.
```shell
docker-compose up
```
This will start a PostgreSQL database, and Elastic service, and the FusionAuth server.
## Running the Example App
To run the application set up a Python virtual env and install the project dependencies.
```shell
cd complete-application && \
python -m venv venv && \
source venv/bin/activate && \
pip install -r requirements.txt && \
python mysite/manage.py runserver
```
Visit the local webserver at `http://localhost:8000/` and sign in using the credentials:
* username: richard@example.com
* password: password