开发者

Uploading Django Development to Dreamhost/Passenger first time "Could no import"

I've been developing on my laptop.

Now, I've uploaded my development project from Django 1.2/Python 2.7 up to Dreamhost created using the Passenger setup. I am using South for migration.

I modified settings.py to access MySQL. Got Admin working.

Questions:

1) Where is the std out shown when you hit the site? (all my print statements)

2) I had to add

from decimal import Decimal

to get the settings.py to run.

Now, hitting the server gives me a 500. When I go to the commandline and try any manage.py command I'm getting:

Error: Could not import settings 'pholdershare.settings' (Is it on sys.path? Does it have syntax errors?): No module named settings

I modified the permissions for my folder to 755 but that didn't change anything.

3) Regardin开发者_高级运维g development to testing to live, I'm totally unclear on how to do this. I want to have a nice solid system for development where I can do releases but I've never done that. I have been using GIT locally. Can anybody point me to the tutorial on setting up the release system?

Suggestions?

Thanks much!


"Could not import settings 'pholdershare.settings'"
...usually means either settings.py has an import error or syntax error, or pholdershare has not been added to sys.path in your wsgi.py

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜