I forgot to say I am on Windows XP On Mar 27, 2:36 pm, "frocco" <[EMAIL PROTECTED]> wrote: > Hello, > > I am new to Python and dJango. > I am trying to get the tutorial gtd to run on Apache. > I installed mod_python and placed gtd directory into htdocs directory. > I do not understand how to resolve this. > I goal is to run multiple apps in apache. > ecample:http://localhost/app1http://localhost/app2http://localhost/app3 > > Thanks for teh help. > Frank > > Here is my code for apache httpd.conf > <Location "/gtd/"> > SetHandler python-program > PythonHandler django.core.handlers.modpython > PythonOption DJANGO_SETTINGS_MODULE gtd.settings > PythonDebug On > </Location> > > Here is my error: > MOD_PYTHON ERROR > > ProcessId: 772 > Interpreter: 'localhost' > > ServerName: 'localhost' > DocumentRoot: 'C:/Program Files/xampp/htdocs' > > URI: '/gtd/' > Location: '/gtd/' > Directory: None > Filename: 'C:/Program Files/xampp/htdocs/gtd/' > PathInfo: '' > > Phase: 'PythonHandler' > Handler: 'django.core.handlers.modpython' > > Traceback (most recent call last): > > File "C:\Python24\Lib\site-packages\mod_python\importer.py", line > 1537, in HandlerDispatch > default=default_handler, arg=req, silent=hlist.silent) > > File "C:\Python24\Lib\site-packages\mod_python\importer.py", line > 1229, in _process_target > result = _execute_target(config, req, object, arg) > > File "C:\Python24\Lib\site-packages\mod_python\importer.py", line > 1128, in _execute_target > result = object(arg) > > File "C:\Python24\lib\site-packages\django\core\handlers > \modpython.py", line 177, in handler > return ModPythonHandler()(req) > > File "C:\Python24\lib\site-packages\django\core\handlers > \modpython.py", line 145, in __call__ > self.load_middleware() > > File "C:\Python24\lib\site-packages\django\core\handlers\base.py", > line 22, in load_middleware > for middleware_path in settings.MIDDLEWARE_CLASSES: > > File "C:\Python24\lib\site-packages\django\conf\__init__.py", line > 28, in __getattr__ > self._import_settings() > > File "C:\Python24\lib\site-packages\django\conf\__init__.py", line > 53, in _import_settings > raise EnvironmentError, "Environment variable %s is undefined." % > ENVIRONMENT_VARIABLE > > EnvironmentError: Environment variable DJANGO_SETTINGS_MODULE is > undefined.
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

