Skip to content

piku/sample-django-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Django Application for piku

Contributed by @chr15m

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, clone this repository run the following commands:

git remote add piku piku@your_server:sample_django_app
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.

About

Sample Django app for deployment with piku

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published