Thanks to visit codestin.com
Credit goes to github.com

Skip to content

An example of setting up auth0 with django

dheerajck/Django-Auth0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setting up the project

I - Clone this repo

git clone https://github.com/dheerajck/Django-Auth0.git

II - Create a new Python virtual environment:

python -m venv venv

III - Activate the virtual environment and install the project requirements:

source venv/bin/activate
pip install -r requirements.txt

IV - Create a new auth0 application

Create an auth0 Regular Web Application and configure Application URIs, for running in localhost use the below Application URIs
Allowed Callback URLs: http://127.0.0.1:8000/complete/auth0/, http://localhost:8000/complete/auth0/
Allowed Logout URLs:http://127.0.0.1:8000/, http://localhost:8000/

V - Create a new .env file on the root directory based on .env.example and update the variables in the .env file

cp .env.example .env

VI - Perform the Django database migrations:

python manage.py migrate

VII - Start the Django development server:

python manage.py runserver

Now open your web browser and navigate to http://localhost:8000/ to view the application.

That's it! You should now be able to run the Django server and start working on your project. Don't forget to update the .env file with your own environment variables before running the server.

About

An example of setting up auth0 with django

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published