Fahim Akhter
Fahim Akhter

Reputation: 1625

Django: Setting up apps on a server

Trying to upload my django app on my obunto slice. The problem I'm facing right now there are 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

Upvotes: 0

Views: 109

Answers (1)

Eli Bendersky
Eli Bendersky

Reputation: 273416

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.

Upvotes: 2

Related Questions