Hi,

I would like to ask you to post a snapshot of your dir structure. In the 
mean time, I am going to give you some pointers that you could consider. Is 
the an app you converted to django 1.4 or did you created your app from 
scratch(using 1.4 from the beginning)?

If you converted you app your Error("Could not import settings 
'test.test.settings' (Is it on sys.path?): ") indicates that you set your 
"DJANGO_SETTINGS_MODULE" is set incorrectly. Open your manage.py file and 
set it the django environmental variable to "test.settings".

If you created your app using django 1.4 from the beginning, I don't see 
how this error could happen! Django lays out your project for you and sets 
everything correctly. 

Thank you,
Victor Rocha
RochApps <http://www.rochapps.com>


On Tuesday, December 25, 2012 8:22:10 AM UTC-5, huw_at1 wrote:
>
> Hi,
>
> This has probably been asked a million times before so apologies. I'm new 
> to 1.4 so the standard project layout is a little unfamiliar. I'm trying to 
> perform a simple import from within my shell:
>
> from django.contrib.sites.models import Site
>
> However I am constantly getting the problem that my settings are not being 
> found:
>
>     raise ImportError("Could not import settings '%s' (Is it on 
> sys.path?): %s" % (self.SETTINGS_MODULE, e))
> ImportError: Could not import settings 'test.test.settings' (Is it on 
> sys.path?): No module named test.settings
>
> In the past I would have thought that this was an issue as the project and 
> the "app" had the same name although in the case of 1.4 the settings are 
> placed in a directory with the same name as the project. I'm not sure what 
> I should change to get this to work.
>
> Has this been seen before or any ideas?
>
> Many thanks
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/BjA9V-YqpBgJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to