Skip to content

TheDeadcoder/django-init-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Running the Backend

Django-supabase Logo

Virtual environment

Make a python virtual environment with the following command:

python3 -m venv .venv

Activate the virtual environment

source .venv/bin/activate

Install dependencies

Install the required packages with the following command:

pip install -r requirements.txt

Required Environment variables

  • DEFAULT_DB_NAME=''
  • DEFAULT_DB_USER=''
  • DEFAULT_DB_PASSWORD=''
  • DEFAULT_DB_HOST=''
  • DEFAULT_DB_PORT=''
  • SUPABASE_URL=''
  • SUPABASE_KEY=''
  • APP_SECRET_KEY=''
  • ALLOWED_HOSTS='localhost:8000,127.0.0.1,your-frontend-url'

Start the first migration

At first, create a superuser, (remember the pass you are giving)

python manage.py createsuperuser

Then create and make the migration

python manage.py makemigrations
python manage.py migrate

Running the backend

To run the backend server, use the following command:

python manage.py runserver

Access the swagger API docs at

http://127.0.0.1:8000/swagger/

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published