piku/examples/python-django
dependabot[bot] 1b3e471342 Bump django from 2.1.9 to 2.1.10 in /examples/python-django (#57)
Bumps [django](https://github.com/django/django) from 2.1.9 to 2.1.10.
- [Release notes](https://github.com/django/django/releases)
- [Commits](https://github.com/django/django/compare/2.1.9...2.1.10)

Signed-off-by: dependabot[bot] <support@github.com>
2019-07-09 11:16:11 +01:00
..
bin Move release worker to end of deploy. (#50) 2019-06-28 12:59:12 +01:00
pikudjango Example Django app deployment with Piku. (#43) 2019-06-23 15:50:24 +01:00
ENV Example Django app deployment with Piku. (#43) 2019-06-23 15:50:24 +01:00
Procfile Example Django app deployment with Piku. (#43) 2019-06-23 15:50:24 +01:00
README.md Example Django app deployment with Piku. (#43) 2019-06-23 15:50:24 +01:00
manage.py Example Django app deployment with Piku. (#43) 2019-06-23 15:50:24 +01:00
requirements.txt Bump django from 2.1.9 to 2.1.10 in /examples/python-django (#57) 2019-07-09 11:16:11 +01:00

README.md

Django Sample Application

This is a simple Django app that demonstrates running the Django collectstatic and migrate tasks in the release worker phase.

To publish this app to piku, make a copy of this folder and run the following commands inside the copy:

git init .
git remote add piku piku@your_server:django_example
git add .
git commit -a -m "initial commit"
git push piku master

Then you can set up an SSL cert and connect a domain by setting config variables like this:

ssh piku@your_server config:set django_example NGINX_SERVER_NAME=your_server NGINX_HTTPS_ONLY=1

You can create a super user and set a password like this:

piku run django_example -- ./manage.py createsuperuser --email your@email.com --username admin --no-input
piku run django_example -- ./manage.py changepassword admin

You will not see a prompt after the second command but you can type a new password anyway and hit enter.