Hi,

manage.py is show below:

#!/usr/bin/env python
import os
import sys

if __name__ == "__main__":
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test.settings")

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)


I think you may be right...I think I have the project directory set at a 
level too high some how...


On Tuesday, December 25, 2012 1:22:10 PM UTC, 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/-/EGGUxTvjArEJ.
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