Re: ImportError: Could not import settings

2012-10-20 Thread sri
Hi Tom, Thanks very much.That solved the problem after removing that import. Sreekanth On Saturday, 20 October 2012 12:05:41 UTC+1, Tomáš Ehrlich wrote: > > Hello, > there's a little hint at the end of exception: > > > No module named unipath > > Seems like you import module unipath in your s

Re: ImportError: Could not import settings

2012-10-20 Thread Tomas Ehrlich
Hello, there's a little hint at the end of exception: > No module named unipath Seems like you import module unipath in your settings.py, which is not on your sys.path. I never set PYTHONPATH for development and everything works fine. Python adds current directory to sys.path, so when you run ./

ImportError: Could not import settings

2012-10-20 Thread sri
django/lib/python2.7/site-packages/django/conf/__init__.py", line 42, in _setup self._wrapped = Settings(settings_module) File "/Users/Sreekanth/django_demo/godjango/lib/python2.7/site-packages/django/conf/__init__.py", line 95, in __init__ raise ImportError("Could n

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 wrote: > > Ok...

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 disc

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 deploy > the application 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 LETTERS*

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: >> os.environ.setdefault("DJANGO_SETT

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 Dewhirst: > >> >> Try d

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 to

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

2012-09-10 Thread Mike Dewhirst
\__init__.py", line 42, in _setup self._wrapped = Settings(settings_module) File "D:\\Python27\\lib\\site-packages\\django\\conf\\__init__.py", line 95, in __init__ raise ImportError("Could not import settings '%s' (Is it on

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

2012-09-10 Thread DJ-Tom
, in _setup > self._wrapped = Settings(settings_module) > File "D:\\Python27\\lib\\site-packages\\django\\conf\\__init__.py", line > 95, in __init__ > raise ImportError("Could not import settings '%s' (Is it on > sys.path?): %s" % (self.SETTIN

Re: ImportError: Could not import settings 'flyp.settings' (Is it on sys.path? Does it have syntax errors?): No module named flyp.settings

2010-11-01 Thread Tom Evans
Perhaps try sending the same question another 3 times in an hour, that always encourages people to help you. > ImportError: Could not import settings 'flyp.settings' (Is it on > sys.path? Does it have syntax errors?): No module named flyp.settings Is it on sys.path? Does it ha

ImportError: Could not import settings 'flyp.settings' (Is it on sys.path? Does it have syntax errors?): No module named flyp.settings

2010-11-01 Thread sami nathan
for middleware_path in settings.MIDDLEWARE_CLASSES: File "D:\Python25\lib\site-packages\django\utils\functional.py", line 276, in __getattr__ self._setup() File "D:\Python25\lib\site-packages\django\conf\__init__.py", line 41, in _setup self._wrapped = Settin

Fwd: ImportError: Could not import settings 'flyp.settings' (Is it on sys.path? Does it have syntax errors?): No module named flyp.settings

2010-11-01 Thread sami nathan
-- Forwarded message -- From: sami nathan Date: Mon, Nov 1, 2010 at 6:42 PM Subject: ImportError: Could not import settings 'flyp.settings' (Is it on sys.path? Does it have syntax errors?): No module named flyp.settings To: django-users@googlegroups.com MY system

ImportError: Could not import settings 'flyp.settings' (Is it on sys.path? Does it have syntax errors?): No module named flyp.settings

2010-11-01 Thread sami nathan
d_middleware for middleware_path in settings.MIDDLEWARE_CLASSES: File "D:\Python25\lib\site-packages\django\utils\functional.py", line 276, in __getattr__ self._setup() File "D:\Python25\lib\site-packages\django\conf\__init__.py", line 41, in _setup self._wrapp

Re: ImportError: Could not import settings 'mysite.settings'

2010-03-05 Thread roc bhakta
Thanks Karen for the tip on SELinux. After researching, I found i needed to do: setsebool -P httpd_enable_homedirs 1 chcon -R -t httpd_user_content_t /home/mysite On Thu, Mar 4, 2010 at 8:15 PM, Karen Tracey wrote: > > Fedora 12 has the security-enhanced linux kernel. If this is active on y

Re: ImportError: Could not import settings 'mysite.settings'

2010-03-04 Thread Karen Tracey
On Thu, Mar 4, 2010 at 7:13 PM, RocB wrote: > [snip] > I have check the python path, I even printed our sys.path from "/usr/ > lib/python2.6/site-packages/django/conf/__init__.py, it looks like: > > ['/home/mycode', ... > So based on your config I'm assuming you have a mysite directory under /ho

ImportError: Could not import settings 'mysite.settings'

2010-03-04 Thread RocB
Following instructions at http://www.howtoforge.com/how-to-install-django-on-fedora9-apache2-mod_python and http://docs.djangoproject.com/en/1.1/howto/deployment/modpython/ I cannot get past the error: ImportError: Could not import settings 'mysite.settings' (Is it on sys.path? Do

Re: ImportError: Could not import settings 'WWlove.settings'

2009-09-22 Thread Jose Sibande
ibande wrote: > > > > > Hi, > > I get this error in /var/log/apache2/error.log: > > > [Mon Sep 21 01:38:14 2009] [error] [client 41.157.12.3] ImportError: > > Could not import settings 'WWlove.settings' (Is it on sys.path? Does > > it have syntax errors?

Re: ImportError: Could not import settings 'WWlove.settings'

2009-09-21 Thread Graham Dumpleton
On Sep 21, 7:50 am, Jose Sibande wrote: > Hi, > I get this error in /var/log/apache2/error.log: > > [Mon Sep 21 01:38:14 2009] [error] [client 41.157.12.3] ImportError: > Could not import settings 'WWlove.settings' (Is it on sys.path? Does > it have syntax errors

Re: ImportError: Could not import settings 'WWlove.settings'

2009-09-21 Thread phoebebright
Only a guess but maybe mixed case in WWlove is causing a problem? On Sep 20, 10:50 pm, Jose Sibande wrote: > Hi, > I get this error in /var/log/apache2/error.log: > > [Mon Sep 21 01:38:14 2009] [error] [client 41.157.12.3] ImportError: > Could not import settings 'WWlove

ImportError: Could not import settings 'WWlove.settings'

2009-09-20 Thread Jose Sibande
Hi, I get this error in /var/log/apache2/error.log: [Mon Sep 21 01:38:14 2009] [error] [client 41.157.12.3] ImportError: Could not import settings 'WWlove.settings' (Is it on sys.path? Does it have syntax errors?): No module named settings And my /home/jose/WWlove/apache/django.wsgi

Re: ImportError: Could not import settings, but with an EACCES puzzle

2009-03-15 Thread Jim Hickstein
It was SELinux, enabled by default on CentOS 5.2 (apparently). The man page for stat(2) didn't mention SELinux, but some web page I stumbled on did. I started to dig into chcon(1) and all that -- geez, it must be a new century -- got it to find my application, then django itself, then anothe

Re: ImportError: Could not import settings, but with an EACCES puzzle

2009-03-14 Thread Jim Hickstein
Alex Gaynor wrote: > This isn't stricly related, probably, but you generally shouldn't be putting > your django projects in your docs root: DocumentRoot is /var/www/html in fact. So it's not. But thanks for the reference. > http://www.djangobook.com/en/2.0/chapter02/#cn76 explains why not. P

Re: ImportError: Could not import settings, but with an EACCES puzzle

2009-03-14 Thread Alex Gaynor
PythonPath "['/var/www/amb-django', '/var/www'] + sys.path" > > > Trying to reach the first page (https://host/) gets the oft-heard > refrain that ends in: > > ImportError: Could not import settings 'ambassador.settings' (Is it on > sys

ImportError: Could not import settings, but with an EACCES puzzle

2009-03-14 Thread Jim Hickstein
e (https://host/) gets the oft-heard refrain that ends in: ImportError: Could not import settings 'ambassador.settings' (Is it on sys.path? Does it have syntax errors?): No module named ambassador.settings Well, yes it is on sys.path at that point. A quick edit to /usr/lib/ python2.4/si

Re: ImportError: Could not import settings '.settings'.

2009-03-06 Thread Ishwor Gurung
Muslu Yüksektepe wrote: >46 PythonPath "['*/home/hutch/apps/wikinotes/*'] + sys.path" > > > try this code [ ... ] Apache returns 500 with that particular code. Anyway, it works already (see my last post). Thanks in any case. ;) Cheers, Ishwor smime.p7s Description: S/MIME Crypt

Re: ImportError: Could not import settings '.settings'.

2009-03-06 Thread Muslu Yüksektepe
y", > line 191, in __call__ >self.load_middleware() > > File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py", > line 31, in load_middleware >for middleware_path in settings.MIDDLEWARE_CLASSES: > > File "/usr/lib/python2.5/site-pack

Re: ImportError: Could not import settings '.settings'.

2009-03-06 Thread Ishwor Gurung
Hi Ishwor Gurung wrote: > Hi [ ] Another follow up (and hopefully last one for the night). The problem was with my mod_python, view and urlconf configs - I changed mod_python directives from what was in the previous to: SetHandler python-program PythonHandler djan

Re: ImportError: Could not import settings '.settings'.

2009-03-06 Thread Ishwor Gurung
Hi Ishwor Gurung wrote: > Hi > I want to run this django app I wrote called wikinotes (its a modified > version of note application to maintain user single user session [1]) > for simple note taking. While the wikinotes works absolutely correctly > using "python manage.py runserver", it fails to w

ImportError: Could not import settings '.settings'.

2009-03-05 Thread Ishwor Gurung
te-packages/django/conf/__init__.py", line 59, in _import_settings self._target = Settings(settings_module) File "/usr/lib/python2.5/site-packages/django/conf/__init__.py", line 94, in __init__ raise ImportError, "Could not import settings '%s' (Is it on sys.path? D

Re: ImportError: Could not import settings 'mysite.settings'

2009-02-06 Thread djandrow
XP) > > However when I try to get my project going I get > > > ImportError: Could not import settings 'mysite.settings' (Is it on > > sys.path? Does it have syntax errors?): No module named > > mysite.settings > > > But I have this in my conf: > >

Re: ImportError: Could not import settings 'mysite.settings'

2009-02-06 Thread Karen Tracey
On Fri, Feb 6, 2009 at 4:37 PM, djandrow wrote: > > Hello, > > I'm trying to get my django project going on mod_python (this all on > on windows XP) > However when I try to get my project going I get > > ImportError: Could not import settings 'mysite.settings&#

ImportError: Could not import settings 'mysite.settings'

2009-02-06 Thread djandrow
Hello, I'm trying to get my django project going on mod_python (this all on on windows XP) However when I try to get my project going I get ImportError: Could not import settings 'mysite.settings' (Is it on sys.path? Does it have syntax errors?): No module named mysite.settings

Re: Apache ImportError: Could not import settings

2009-02-02 Thread Bradley Wright
I had the following vhost.conf, which worked for me (before I switched to WSGI): NameVirtualHost 127.0.0.1 # dynamic Django site ServerAdmin myem...@mysite.com ServerName mysite.com SetHandler python-program PythonHandler django.core.handlers.modpython PythonDebug Off

Re: Apache ImportError: Could not import settings

2009-02-02 Thread tygielzchaosem
same here; hasn't something been messed up since some recent svn commits? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To un

Apache ImportError: Could not import settings

2009-01-31 Thread DragonSlayre
ges/django/conf/__init__.py", line 94, in __init__ raise ImportError, "Could not import settings '%s' (Is it on sys.path? Does it have syntax errors?): %s" % (self.SETTINGS_MODULE, e) ImportError: Could not import settings 'kazbah.settings' (Is it on sys.p

Re: ImportError: Could not import settings 'djangoblog.settings' (Is it on sys.path? Does it have syntax errors?): No module named djangoblog.settings

2008-12-05 Thread garagefan
nevermind. I've borked the server messing around again :) On Dec 5, 4:19 pm, garagefan <[EMAIL PROTECTED]> wrote: > http://www.kennethdavid.net/djangoblog/admin/ > getting this error on my admin page. just started working w/ > webmonkey.com's > tutorialhttp://www.webmonkey.com/tutorial/Install_D

ImportError: Could not import settings 'djangoblog.settings' (Is it on sys.path? Does it have syntax errors?): No module named djangoblog.settings

2008-12-05 Thread garagefan
http://www.kennethdavid.net/djangoblog/admin/ getting this error on my admin page. just started working w/ webmonkey.com's tutorial http://www.webmonkey.com/tutorial/Install_Django_and_Build_Your_First_App this is occurring after installing the tagging module... which including me needing to ins

Re: ImportError: Could not import settings 'settings'

2008-10-15 Thread Dana
Ok, so I started from scratch and it was permissions problems as you guessed. The folders and files did not have group read or execute permissions. Everything was defaulting to drwx-- for directories and -rw--- for files when uploaded via FTP. Is this normal behavior? Or is this something

Re: ImportError: Could not import settings 'settings'

2008-10-15 Thread D. Woodman
Ok, thanks for the tip Malcolm, Ill try that out tonight. Have a great evening. Cheers, Dana Well, if it's a personal server with no other users on there but you, > just letting everybody (the "other" section) have read permissions on > settings.py won't hurt. So that will at least allow you to m

Re: ImportError: Could not import settings 'settings'

2008-10-15 Thread Malcolm Tredinnick
On Wed, 2008-10-15 at 20:16 -0700, D. Woodman wrote: > Hi Malcolm, > > Sorry about restating my FTP question, I missed the top part of your > reply. I in no way wanted you to play remote sys admin, just thought > there may have been something I missed about FTP. > > Since this is a personal ser

Re: ImportError: Could not import settings 'settings'

2008-10-15 Thread D. Woodman
Hi Malcolm, Sorry about restating my FTP question, I missed the top part of your reply. I in no way wanted you to play remote sys admin, just thought there may have been something I missed about FTP. Since this is a personal server, I don't have any sys admin to save the day :) Ill have to just k

Re: ImportError: Could not import settings 'settings'

2008-10-15 Thread Malcolm Tredinnick
On Wed, 2008-10-15 at 19:45 -0700, D. Woodman wrote: > Haha, well I'm glad I didnt try that command. > > I ran "groups" and it returned only the group "bob" for the account I > created, I did not see "apache" in that list (or any other group or > user for that matter). I also ran "groups apache"

Re: ImportError: Could not import settings 'settings'

2008-10-15 Thread D. Woodman
Haha, well I'm glad I didnt try that command. I ran "groups" and it returned only the group "bob" for the account I created, I did not see "apache" in that list (or any other group or user for that matter). I also ran "groups apache" with no result. Any more suggestions? Would transferring files

Re: ImportError: Could not import settings 'settings'

2008-10-15 Thread Malcolm Tredinnick
On Wed, 2008-10-15 at 19:20 -0700, D. Woodman wrote: > Hi Malcolm, > > First off, thanks for taking the time to help out. > > I had an inkling that it was a permission problem, so I decided to > remove everything and start again. After creating a new user and > creating the folders as that user

Re: ImportError: Could not import settings 'settings'

2008-10-15 Thread D. Woodman
Hi Malcolm, First off, thanks for taking the time to help out. I had an inkling that it was a permission problem, so I decided to remove everything and start again. After creating a new user and creating the folders as that user (lets call the user "bob") I still get the same issue. I have upload

Re: ImportError: Could not import settings 'settings'

2008-10-15 Thread Malcolm Tredinnick
On Wed, 2008-10-15 at 14:15 -0700, Dana wrote: > Hey All, > > Im getting the error "ImportError: Could not import settings > 'setting'" when running my Django project on a SliceHost server using > Apache/mod_python. > > Here is my vhost file

ImportError: Could not import settings 'settings'

2008-10-15 Thread Dana
Hey All, Im getting the error "ImportError: Could not import settings 'setting'" when running my Django project on a SliceHost server using Apache/mod_python. Here is my vhost file (located in /etc/apache2/sites-available/ myproject): ServerName www.example