Django ImportError

Hello!

I'm trying to set up a django site on ubuntu-lucid, and I'm following http://library.linode.com/frameworks/dj … 0.04-lucid">http://library.linode.com/frameworks/django-apache-mod-wsgi/ubuntu-10.04-lucid.

Where should my project actually go, in /srv/www/mydomain.org/application or /srv/www/mydomain.org/application/myproj?

I've tried both.

If the project is in application/myproj:

I get a 500 in the browser and error.log says "ImportError: Could not import settings 'settings' (Is it on sys.path?): No module named settings"

If the project is in application:

Django actually outputs to the browser, and shows me an ImportError saying "No module named myproj.urls"

I've triple-checked that I've followed the guide properly. Is this a python path issue?

1 Reply

Figured it out. The way I was referring to my modules in the source was incorrect.

To answer my own question, the django project just goes directly in the application directory.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct