Setup PyCharm for Django project

Category: /blog /django
Tags: django pycharm

Virtualenv

  • 如果你已经有了一个设置好的virtualenv, 就要在PyCharm里指定 “Settings/Project: ${your_project}/Project Intepreter” “Add Local”
  • 若要在PyCharm里面运行, “Run/Edit configurations…/”

    1. Run broswer: http://127.0.0.1:8000
    2. Environment variables: DJANGO_SETTINGS_MODULE=${your_project}.settings
    3. Working directory: absolute path to your project.

Run manage.py tasks

In main menu, “Tools/Run manage.py tasks” (Ctrl+Alt+R)

评论

提示

  • 如果看不到评论部分, 请暂时关掉adblock in Firefox/Chrome
  • 本网站使用Javascript实现评论功能, 此处外链对提高您的网站PR没有帮助. (潜台词: 请不要灌水, 谢谢)