shinejh0528/django

By shinejh0528

Updated 6 months ago

django evironment

Image
Networking
Developer tools
Web servers
0

10K+

shinejh0528/django repository overview

version info

release note



Usage

use -p option to open port to execute web server
recommend to use docker volume to connect
# -v is optional
# --hostname is optional
# --name is optional
# [data dir] is optional
docker run -itd --hostname dev -v [django dir]:[django dir] -v [data dir]:[data dir] -p [port]:[port] --name django shinejh0528/django:1.0.0

# ex)
docker run -itd --hostname dev -v /home/jhshin:/home/jhshin -v /data:/data -p 8787:8787 --name django shinejh0528/django:1.0.0

run django web server
python manage.py runserver 0.0.0.0:8787
# gunicorn
cd [app_root_dir]
gunicorn [app].wsgi:application --bind 0.0.0.0:8787

you can run with this command
docker exec -it [container_id] python [django dir]/manage.py runserver 0.0.0.0:[docker port]

# ex)
docker exec -it django python /home/jhshin/django/bi_system/1.2.1-rc1/mysite/manage.py runserver 0.0.0.0:8787



SMTP (ver 1.1.0 above)

send email using mutt ex)
/usr/bin/mutt -e "my_hdr From:[email protected]" -s "test" [your_email] < test.txt

Tag summary

Content type

Image

Digest

sha256:6a11982a8

Size

456.2 MB

Last updated

6 months ago

docker pull shinejh0528/django:1.3.2