Occured error while using url http://localhost/fllyp/ ---------------------------------------------------------------------------------------------------- MOD_PYTHON ERROR
ProcessId: 844 Interpreter: '192.168.1.116' ServerName: '192.168.1.116' DocumentRoot: 'C:/Program Files/Apache Software Foundation/Apache2.2/ htdocs' URI: '/fllyp/' Location: '/fllyp/' Directory: None Filename: 'C:/Program Files/Apache Software Foundation/Apache2.2/ htdocs/fllyp/' PathInfo: '' Phase: 'PythonHandler' Handler: 'django.core.handlers.modpython' Traceback (most recent call last): File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 1537, in HandlerDispatch default=default_handler, arg=req, silent=hlist.silent) File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 1229, in _process_target result = _execute_target(config, req, object, arg) File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 1128, in _execute_target result = object(arg) File "C:\Python25\Lib\site-packages\django\core\handlers \modpython.py", line 228, in handler return ModPythonHandler()(req) File "C:\Python25\Lib\site-packages\django\core\handlers \modpython.py", line 191, in __call__ self.load_middleware() File "C:\Python25\Lib\site-packages\django\core\handlers\base.py", line 33, in load_middleware for middleware_path in settings.MIDDLEWARE_CLASSES: File "C:\Python25\Lib\site-packages\django\utils\functional.py", line 276, in __getattr__ self._setup() File "C:\Python25\Lib\site-packages\django\conf\__init__.py", line 40, in _setup self._wrapped = Settings(settings_module) File "C:\Python25\Lib\site-packages\django\conf\__init__.py", line 75, 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 'settings.py' (Is it on sys.path? Does it have syntax errors?): No module named settings.py----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- To configure Django with mod_python I added this in httpd.conf file <Location "/mysite/"> SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE settings.py PythonOption django.root /mysite PythonDebug On PythonPath "['C:/mysite'] + sys.path" </Location> what shoul i do now pls help me my project file is in C drive at this location only i am not having file at C:/Program Files/Apache2.2/ htdocs/mysite' -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.