startapp with manage.py to create app in another directory

前端 未结 6 982
谎友^
谎友^ 2021-01-31 14:25

My Django project structure is:

/proj
  /frontend
  /server
    /proj
    /app1
    /app2
  manage.py

How do I run python ma

6条回答
  •  忘了有多久
    2021-01-31 14:56

    Use absolute path for the manage file work well for me, an example to run from the destination folder

    python /home/user/project_name/manage.py startupapp app_name
    

提交回复
热议问题