settings.py should contain as little exact values as possible. Default environment settings should go in the .env-example file.
docker-compose pull
docker-compose up -d
Replace the SECRET_KEY in .env with the output of this file.
docker-compose exec web python manage.py shellfrom django.core.management import utils
print(utils.get_random_secret_key())docker-compose stop
docker-compose pull
docker-compose up -dUpdate versions at requirements.txt
docker-compose exec web pip freeze
Keep requirements that you did not explicitly use out of the requirements.txt, to make maintenance easier.
To start working with your assets, install nodejs dependencies.
npm install grunt \
grunt-contrib-copy \
grunt-contrib-sass \
grunt-contrib-watchAdd lines to the package.json file to start building and watching assets:
{
"scripts": {
"watch": "grunt",
"build": "grunt build"
}
}Test it
npm run build
npm run watchNote: watch will build first, then start watching. It is not manditory to run build before watch
docker-compose exec web python manage.py migrate
docker-compose exec web python manage.py createsuperuserAnd now visit http://localhost:8000/admin
Create your own README.md, and remove the git history of the boilerplate.
mv README.md maybe-nice-to-remember.md
rm -rf .git
git init .
git add .
git commit -m "Initial commit"Last but not least... start developing your, super special - one of a kind, web application.