ValueError: Empty module name

2010-11-16 Thread ErritG
s/2.7/lib/python2.7/ site-packages/django/utils/importlib.py", line 35, in import_module __import__(name) ValueError: Empty module name If found several posts but none so far addressed this problem in particular. Thanks for kind coop in advance! Errit. -- You received this message because yo

Re: ValueError: Empty module name

2007-02-17 Thread cory
Ah-ha! I think I've found the issue. The problem was coming from the template context loader I was using. Or rather, how that was set in the settings.py file. I only had one template context loader set, and forgot to include a trailing comma so that it could be processed as a tuple instead of a s

Re: ValueError: Empty module name

2007-02-16 Thread Malcolm Tredinnick
On Fri, 2007-02-16 at 12:27 -0800, cory wrote: > Hello all, > > I keep getting a very strange error in my latest Django project. It > repeatedly sends back a ValueError saying 'Empty module name', but in > the debug output all of the settings from the settings files are > displayed correctly and

ValueError: Empty module name

2007-02-16 Thread cory
Hello all, I keep getting a very strange error in my latest Django project. It repeatedly sends back a ValueError saying 'Empty module name', but in the debug output all of the settings from the settings files are displayed correctly and the settings file that's listed is the correct one. The on

Re: Apache2 - Mod_python: ValueError: Empty module name

2006-01-18 Thread Krietjur
Okay, now it's very fast :) I forgot that my linux box was busy compiling something :) Thanks for the help everyone

Re: Apache2 - Mod_python: ValueError: Empty module name

2006-01-18 Thread Krietjur
Thanks! That worked very well. I also got the media directory ok now, and I'm able to open the admin interface. Now I can continue exploring django :) I must say that I'm happy allready with what Django is doing, but it's a bit slow. I'm running Django on a dual P200mmx, perhaps that's not enough

Re: Apache2 - Mod_python: ValueError: Empty module name

2006-01-18 Thread iGL
Hi Krietjur, Probably, you need to try something like: SetHandler python-program PythonHandler django.core.handlers.modpython PythonPath sys.path+['/home/kris/my_django_project_dir'] SetEnv DJANGO_SETTINGS_MODULE myproject.settings

Re: Apache2 - Mod_python: ValueError: Empty module name

2006-01-17 Thread Krietjur
Thanks for the quick response. I have the following in my apache config: SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE .home.kris.myproject.settings PythonDebug On The sett

Re: Apache2 - Mod_python: ValueError: Empty module name

2006-01-16 Thread Dody Suria Wijaya
mod = __import__(me.SETTINGS_MODULE, '', '', ['']) ValueError: Empty module name Hey Krietjur, This error is happening because mod_python isn't finding your settings module. Do you have the line "SetEnv DJANGO_SETTINGS_MODULE foo" in your httpd.conf, wh

Re: Apache2 - Mod_python: ValueError: Empty module name

2006-01-16 Thread Adrian Holovaty
On 1/16/06, Krietjur <[EMAIL PROTECTED]> wrote: > line 32, in ? > mod = __import__(me.SETTINGS_MODULE, '', '', ['']) > > ValueError: Empty module name Hey Krietjur, This error is happening because mod_python isn't findi

Apache2 - Mod_python: ValueError: Empty module name

2006-01-16 Thread Krietjur
", line 130, in __call__ from django.conf import settings File "/usr/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/conf/settings.py", line 32, in ? mod = __import__(me.SETTINGS_MODULE, '', '', ['']) ValueError: Empty module name