开发者

Django: Setting up apps on a server

开发者 https://www.devze.com 2022-12-14 03:56 出处:网络
Trying to upload my django app on my obunto slice. The problem I\'m facing right now there are开发者_StackOverflow社区 a couple of packages I\'m using. Which I installed in site packages on my machine

Trying to upload my django app on my obunto slice. The problem I'm facing right now there are开发者_StackOverflow社区 a couple of packages I'm using. Which I installed in site packages on my machine. Now when I put them online on the server their sadly not working. Any ideas how to make them work.

p.s I get a error on import


Python must have a way to find these packages. Did you use standard installation procedures for them (i.e. setup.py install) or copy them in an accessible directory? If you didn't use setup.py install, check your PYTHONPATH environment variable. It should contain the directory where your packages are stored. If it doesn't, you can create it.

This is a Python issue really, not a Django issue.

To get more help paste the import error you're getting, as well as the directory structure of where you installed this package.

0

精彩评论

暂无评论...
验证码 换一张
取 消