Skip to content

Nginx -> uWSGI -> Django で動作するDjangoプロジェクトの初期状態環境

Notifications You must be signed in to change notification settings

tn1994/django_nginx_uwsgi_environment

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django_nginx_uwsgi_environment

Nginx -> uWSGI -> Django で動作するDjangoプロジェクトの初期状態環境

使い方

$ cd your_work_dir
$ git clone https://github.com/mixmaru/django_nginx_uwsgi_environment.git
$ cd django_nginx_uwsgi_environment
$ docker-compose up

ブラウザでlocalhostにアクセスすると、Djangoの初期画面が表示される。

DB

postgreSQL

user_name: foo
password: foobar
db_name: baz

localhost:5432でアクセス可能。

DjangoによるDB初期化

docker exec -it (appのコンテナ名) /bin/bash でappサーバー内に入って、

$ cd project/
$ python3 ./manage.py migrate

About

Nginx -> uWSGI -> Django で動作するDjangoプロジェクトの初期状態環境

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 81.8%
  • Dockerfile 18.2%
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy