Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Django ImportError
PostPosted: Sun Apr 03, 2011 2:58 am 
Offline
Newbie

Joined: Sun Apr 03, 2011 2:56 am
Posts: 2
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.

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?


Top
   
 Post subject:
PostPosted: Sun Apr 03, 2011 3:23 am 
Offline
Newbie

Joined: Sun Apr 03, 2011 2:56 am
Posts: 2
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group