How to keep all my django applications in specific folder

前端 未结 7 911
逝去的感伤
逝去的感伤 2020-12-12 16:59

I have a Django project, let\'s say \"project1\". Typical folder structure for applications is:

/project1/
         /app1/
         /app2/
         ...
             


        
7条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-12 17:55

    If you're using virtualenv/virtualenvwrapper (which is a bit dated but still valid), you can use the included add2virtualenv command to augment your python path:

    mkdir apps
    cd apps
    pwd
    [/path/to/apps/dir]
    

    Copy that path to clipboard, then:

    add2virtualenv /path/to/apps/dir
    

提交回复
热议问题