Skip to content
This repository has been archived by the owner on Sep 17, 2020. It is now read-only.
/ djangox Public archive
forked from wsvincent/lithium

A framework for launching new Django projects quickly.

License

Notifications You must be signed in to change notification settings

rengler33/djangox

 
 

Repository files navigation

README.md

Adapted from wsvincent/djangox for my own projects

Setup

Need to run:

python manage.py makemigrations users
python manage.py migrate

If using Docker:

docker-compose up
docker-compose exec web "python manage.py makemigrations users"
docker-compose exec web "python manage.py migrate"

When adding an email service, you will want to update the DEFAULT_FROM_EMAIL setting as well as the domain name and display name in the sites table created by all-auth.

You can generate a new secret key from inside the django shell with the following:

>>> from django.core.management.utils import get_random_secret_key
>>> get_random_secret_key()

When generating files in the volume via docker exec (such as startapp), you'll need to change ownership of the directory/files. It's common to have a docker group.

sudo chown -R <user>:<group> <file|dir>

Recommended settings for vscode

"settings": {
    "python.formatting.provider": "black",
    "editor.formatOnSave": true,
    "python.linting.enabled": true,
    "python.linting.pylintEnabled": false,
    "python.linting.flake8Enabled": true
}

About

A framework for launching new Django projects quickly.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 51.5%
  • HTML 46.3%
  • Dockerfile 2.2%