2,619
次編輯
Tankianting(討論 | 貢獻) |
Tankianting(討論 | 貢獻) |
||
行 64: | 行 64: | ||
site-available 裏面的 test 設定檔為: | site-available 裏面的 test 設定檔為: | ||
前提要先 ./manage.py runserver 8080。 | |||
<pre> | <pre> | ||
server { | server { | ||
listen 80; | listen 80; | ||
server_name | server_name 127.0.0.1; | ||
# https://docs.djangoproject.com/en/dev/howto/static-files/#serving-static-files-in-production | # https://docs.djangoproject.com/en/dev/howto/static-files/#serving-static-files-in-production |