See anything wrong with my attempt to get Flask running? (mod_wsgi + virtualenv)

前端 未结 2 1804
陌清茗
陌清茗 2021-02-02 00:45

I have a VPS running a fresh install of Ubuntu 10.04 LTS. I\'m trying to set up a live application using the Flask microframework, but it\'s giving me trouble. I took notes whil

2条回答
  •  既然无缘
    2021-02-02 01:06

    Edit line sys.path.append, it needs to be a string.

    import sys
    sys.path.append('directory/where/package/is/located')
    

    Notice the single quotes.

提交回复
热议问题