Django – app runserver 한번만 실행하기 noreload

Django run 하면 app 이 2번 실행된다.

싫으면

./manage.py runserver -noreload

혹은 다음 코드를 app 에 입력하라는 좋은 글이 있어 킵

import os

if os.environ.get('RUN_MAIN', None) != 'true':
    default_app_config = 'server.apps.ServerAppConfig'
https://h.apoolog.com/django%EC%9D%98-appconfig-%EB%91%90%EB%B2%88-%EC%8B%A4%ED%96%89-%EB%AC%B4%ED%9A%A8%ED%99%94%ED%95%98%EA%B8%B0/



Enjoy Reading This Article?

Here are some more articles you might like to read next:

  • a post with plotly.js
  • a post with image galleries
  • a post with tabs
  • a post with typograms
  • a post that can be cited