Re: Problems with simple "hello world" test - "ImportError: Could not import settings"

2012-09-19 Thread Stephen Anto
Hi, There are only 7 steps ahead to say 'Hello World' via Django project. Visit http://www.f2finterview.com/web/Django/17/ its tells how to make simple django project with seven steps. Thank you for visiting On Thu, Sep 13, 2012 at 2:55 PM, DJ-Tom

Re: Problems with simple "hello world" test - "ImportError: Could not import settings"

2012-09-19 Thread DJ-Tom
I have now found extensive documentation as to why and how Apache has to be configured with Django and mod_wsgi here http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this

Re: Problems with simple "hello world" test - "ImportError: Could not import settings"

2012-09-13 Thread James Bennett
On Thu, Sep 13, 2012 at 4:25 AM, DJ-Tom wrote: > Basically I always try to have the same environment for development as I > also use for actual production - I'm lucky that my projects are small enough > so i can do that :-) to avoid last minute surprises when trying to

Re: Problems with simple "hello world" test - "ImportError: Could not import settings"

2012-09-13 Thread DJ-Tom
> Ok... GREAT! Now it works :-) (well... sort of, more below... ) but I had >> to restart Apache to make config changes effective... is that "normal"? >> >> I think important things like "you have to restart the webserver to make >> changes life" should go into the tutorial in *BIG RED

Re: Problems with simple "hello world" test - "ImportError: Could not import settings"

2012-09-11 Thread Daniel Roseman
On Tuesday, 11 September 2012 16:33:31 UTC+1, DJ-Tom wrote: > > > > Am Dienstag, 11. September 2012 10:20:16 UTC+2 schrieb Chang.Jian: >> >> "d:/wwwroot/djtest/djtest/" was already in system path, so I think you >> should set DJANGO_SETTINGS_MODULE like this: >>

Re: Problems with simple "hello world" test - "ImportError: Could not import settings"

2012-09-11 Thread DJ-Tom
Am Dienstag, 11. September 2012 10:20:16 UTC+2 schrieb Chang.Jian: > > "d:/wwwroot/djtest/djtest/" was already in system path, so I think you > should set DJANGO_SETTINGS_MODULE like this: > os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings") > > try it! > > Ok... GREAT! Now it works

Re: Problems with simple "hello world" test - "ImportError: Could not import settings"

2012-09-11 Thread Jian Chang
"d:/wwwroot/djtest/djtest/" was already in system path, so I think you should set DJANGO_SETTINGS_MODULE like this: os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings") try it![?][?][?] 2012/9/11 DJ-Tom > Am Dienstag, 11. September 2012 00:43:44 UTC+2 schrieb Mike

Re: Problems with simple "hello world" test - "ImportError: Could not import settings"

2012-09-11 Thread DJ-Tom
Am Dienstag, 11. September 2012 00:43:44 UTC+2 schrieb Mike Dewhirst: > > > Try dropping this down to "djtest.settings". Also make sure you have a > file in each of your folders called __init__.py > > This tells Python the folder is part of the package. > Sorry - but this does not help. Just

Re: Problems with simple "hello world" test - "ImportError: Could not import settings"

2012-09-10 Thread Mike Dewhirst
On 11/09/2012 1:31am, DJ-Tom wrote: Hi, I'm new to django and python at the same time (Nightmare ) and currently struggling to get a basic understanding of how everything works and how the different components are connected to each other. My setup is a s follows: - Apache 2.2 running as a

Problems with simple "hello world" test - "ImportError: Could not import settings"

2012-09-10 Thread DJ-Tom
Hi, I'm new to django and python at the same time (Nightmare ) and currently struggling to get a basic understanding of how everything works and how the different components are connected to each other. My setup is a s follows: - Apache 2.2 running as a service under Windows 7 - mod_wsgi -