Skip to content

CoreWebDev/tenants

 
 

Repository files navigation

Commands

Part 1:

git clone https://github.com/andyjud/django-starter.git . && rm -rf .git
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
docker compose up -d
pip install psycopg2-binary
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver
ctrl + c
python manage.py makemigrations

Part 2:

pip install django-tenants
python manage.py startapp a_tenant_manager
python manage.py create_tenant
python manage.py create_tenant_superuser

Part 3:

pip install django-colorfield
{% if color %}style="background-color: {{ color }};"{% endif %}
{% if logo %}{{ logo.url }}{% else %}{% static 'images/logo.svg' %}{% endif %}

Part 4:

pip install gunicorn
pip install django-environ
pip install whitenoise
python manage.py collectstatic
pip freeze > requirements.txt
pip install django-storages
pip install boto3
python manage.py migrate_schemas --schema=schema-name

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 50.7%
  • HTML 49.3%