Skip to content

SocialNerds/Python-Django-Starter-Pack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django - Docker Starter pack

This repo contains the starting point to create Django application on Docker.

Check the full explanation videos (GR)

Πως να Ξεκινήσω, Python Tutorial

Installation

Requirements

Run

Run in root folder,

cp .env.example .env
docker-compose build && docker-compose up -d

Login to the container,

docker exec -u serveruser -it app_wsgi /bin/bash -c "TERM=$TERM exec bash"

Initial setup,

cd ~/web/app/main
python manage.py migrate

Create admin user,

python manage.py createsuperuser

Create static files,

python manage.py collectstatic

Check http://127.0.0.1/admin on your browser and login as admin.

Exit the container,

exit

Stop the containers,

docker-compose down

Warning

Don't use this in production. It is for educational purposes only. The SECRET_KEY is in source control for Christ's sake.

By SocialNerds

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published