Could not import settings

2014-11-20 Thread Larry Martell
I am setting up a new django project and I'm getting the dreaded 'Could not import settings' error. I've set up many django projects before, and never had this problem. The differences with this one is that it's using python3.4, django 1.7, and it's on a VM (all my others were on <1.7, pytho

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

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
/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 not import

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
ot;, 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 sys.path?): %s" %

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

2012-09-10 Thread DJ-Tom
; 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.SETTINGS_MODULE, e)) > Impor

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 have syntax

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
py", line 276, in __getattr__ self._setup() File "D:\Python25\lib\site-packages\django\conf\__init__.py", line 41, in _setup self._wrapped = Settings(settings_module) File "D:\Python25\lib\site-packages\django\conf\__init__.py", line 76, in __init__ ra

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 <itssami.g...@gmail.com> 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@googlegrou

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
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 = Settings(settings_module) File "D:\Python25\lib\site-packages\django\conf\__init__.py", line 76, in __

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.

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

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? Does it have

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

2009-09-22 Thread Jose Sibande
p 21, 7:50 am, Jose Sibande <jbsiba...@gmail.com> 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 o

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

2009-09-21 Thread Graham Dumpleton
On Sep 21, 7:50 am, Jose Sibande <jbsiba...@gmail.com> 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 &g

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 <jbsiba...@gmail.com> 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: > Coul

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 Looks like

Google App Engine - Could not import settings

2009-08-06 Thread Geoff
attr__ self._import_settings() File "C:\Python25\lib\site-packages\django\conf\__init__.py", line 59, in _imp ort_settings self._target = Settings(settings_module) File "C:\Python25\lib\site-packages\django\conf\__init__.py", line 94, in __in it__ raise ImportError

Re: Could not import settings

2009-04-03 Thread parkprimus
wrote: > > > Hi, > > > I'm trying to install my django application on CentOS 5 and I'm > > getting the following error: > > > ImportError: Could not import settings 'mx30.settings' (Is it on > > sys.path? Does it have syntax errors?): No module named mx30.setti

Re: Could not import settings

2009-03-31 Thread Karen Tracey
On Tue, Mar 31, 2009 at 9:27 AM, knight <alexar...@gmail.com> wrote: > > Hi, > > I'm trying to install my django application on CentOS 5 and I'm > getting the following error: > > ImportError: Could not import settings 'mx30.settings' (Is it on > sys.path? Does it h

Could not import settings

2009-03-31 Thread knight
Hi, I'm trying to install my django application on CentOS 5 and I'm getting the following error: ImportError: Could not import settings 'mx30.settings' (Is it on sys.path? Does it have syntax errors?): No module named mx30.settings My httpd.conf looks as follows: Listen 80 SetHandler python

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

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.

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

2009-03-14 Thread Alex Gaynor
thonDebug On >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.path?

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

2009-03-14 Thread Jim Hickstein
ts 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/site-packages/Django-1.0.2_final

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

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

2009-03-06 Thread Muslu Yüksektepe
() > > 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-packages/django/conf/__init__.py", line > 28, in __getattr__ >self

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

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

ImportError: Could not import settings '.settings'.

2009-03-05 Thread Ishwor Gurung
ings(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? Does it have syntax errors?): %s" % (self.SETTINGS_MODULE, e) ImportError: Could not import settings

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

2009-02-06 Thread djandrow
ect 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 > &g

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

2009-02-06 Thread Karen Tracey
On Fri, Feb 6, 2009 at 4:37 PM, djandrow <andrewkenyon...@gmail.com> 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 im

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 But I have

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

Apache ImportError: Could not import settings

2009-01-31 Thread DragonSlayre
/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.path? Does it have syntax error

Re: could not import settings error, FastCGI

2009-01-07 Thread Bradley Proctor
not found. I can delete the entire >> contents of the file so all it has in it is #!/path/to/python and it >> still gives me this error message. How on earth is it still loading >> django? Error message looks like >> >> ImportError: Could not import settings 'seymourheral

Re: could not import settings error, FastCGI

2009-01-07 Thread Malcolm Tredinnick
file so all it has in it is #!/path/to/python and it > still gives me this error message. How on earth is it still loading > django? Error message looks like > > ImportError: Could not import settings 'seymourherald.settings' (Is it > on sys.path? Does it have synta

Re: Could not import settings

2009-01-06 Thread Karen Tracey
On Tue, Jan 6, 2009 at 2:49 PM, Bradley <bproct...@gmail.com> wrote: > > I move an existing website running django onto a shared webhost via > FastCGI. > > No matter what I do, I get the following error: > > ImportError: Could not import settings 'seymourherald.set

could not import settings error, FastCGI

2009-01-06 Thread Bradley
this error message. How on earth is it still loading django? Error message looks like ImportError: Could not import settings 'seymourherald.settings' (Is it on sys.path? Does it have syntax errors?): No module named seymourherald.settings So I've been trying to troubleshoot why it can't find

Could not import settings

2009-01-06 Thread Bradley
I move an existing website running django onto a shared webhost via FastCGI. No matter what I do, I get the following error: ImportError: Could not import settings 'seymourherald.settings' (Is it on sys.path? Does it have syntax errors?): No module named seymourherald.settings my

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 >

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

Re: ImportError: Could not import settings 'settings'

2008-10-16 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

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

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

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

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

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

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 (located

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.com S

Re: EnvironmentError: Could not import settings

2008-09-01 Thread Daniel Roseman
On Sep 1, 5:39 pm, "Weber Sites" <[EMAIL PROTECTED]> wrote: > How do I know which ver? What does it say when you start up the development server? Or in the shell, you can do >>> import django >>> django.get_version() u'1.0-alpha-SVN-8210' To be honest, I'm not sure you actually want the

RE: EnvironmentError: Could not import settings

2008-09-01 Thread Weber Sites
How do I know which ver? -Original Message- From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Roseman Sent: יום ב 01 ספטמבר 2008 17:48 To: Django users Subject: Re: EnvironmentError: Could not import settings On Sep 1, 3:10 pm, "Weber Sites&quo

Re: EnvironmentError: Could not import settings

2008-09-01 Thread Daniel Roseman
On Sep 1, 3:10 pm, "Weber Sites" <[EMAIL PROTECTED]> wrote: > Thanks, looks like we are making progress :) > > Now I get > > Page not found (404) > Request Method: GET > Request URL:http://django.weberdev.com:82/mysite/ > > Using the URLconf defined in mysite.urls, Django tried these URL

RE: EnvironmentError: Could not import settings

2008-09-01 Thread Weber Sites
ספטמבר 2008 15:57 To: Django users Subject: Re: EnvironmentError: Could not import settings On Sep 1, 1:52 pm, "Weber Sites" <[EMAIL PROTECTED]> wrote: > Hi > > I'm trying to get the the tutorial02 (mysite) to work with apache. > No matter what I do I keep getting this

Re: EnvironmentError: Could not import settings

2008-09-01 Thread Daniel Roseman
On Sep 1, 1:52 pm, "Weber Sites" <[EMAIL PROTECTED]> wrote: > Hi > > I'm trying to get the the tutorial02 (mysite) to work with apache. > No matter what I do I keep getting this error : > > EnvironmentError: Could not import settings 'mysite.settings' (Is it

EnvironmentError: Could not import settings

2008-09-01 Thread Weber Sites
Hi I'm trying to get the the tutorial02 (mysite) to work with apache. No matter what I do I keep getting this error : EnvironmentError: Could not import settings 'mysite.settings' (Is it on sys.path? Does it have syntax errors?): No module named mysite.settings SetHandler python-program