Comments on How To Install Django On Fedora 9 (Apache2/mod_python)
How To Install Django On Fedora 9 (Apache2/mod_python) This tutorial explains how to install Django on a Fedora 9 server. Django is a web framework that allows to develop Python web applications quickly with as much automation as possible. I will use it with Apache2 and mod_python in this guide.
2 Comment(s)
Comments
Thanks for your Post, it help me very much! I can configure django on fedora, but i can not configure with mod_wsgi, the Django recomends use WSGI... Can you tell me how to configure with mod_wsgi please?
Thank you!!!
Me gustó el tuto, es entendible y facil de seguir, sin embargo me sale un problema al ponerlo en marcha. Uso fedora 11, Gnome 2.26.3, firefox 3.5.5,python 2.6 y es una laptop DELL XPS m1210. El bug es el siguiente:
MOD_PYTHON ERROR
ProcessId: 2115
Interpreter: 'localhost.xps'
ServerName: 'localhost.xps'
DocumentRoot: '/var/www/html'
URI: '/mysite'
Location: '/mysite'
Directory: None
Filename: '/var/www/html/mysite'
PathInfo: ''
Phase: 'PythonHandler'
Handler: 'django.core.handlers.modpython'
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/mod_python/importer.py", line 1537, in HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)
File "/usr/lib/python2.6/site-packages/mod_python/importer.py", line 1229, in _process_target
result = _execute_target(config, req, object, arg)
File "/usr/lib/python2.6/site-packages/mod_python/importer.py", line 1128, in _execute_target
result = object(arg)
File "/usr/lib/python2.6/site-packages/django/core/handlers/modpython.py", line 228, in handler
return ModPythonHandler()(req)
File "/usr/lib/python2.6/site-packages/django/core/handlers/modpython.py", line 191, in __call__
self.load_middleware()
File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 33, in load_middleware
for middleware_path in settings.MIDDLEWARE_CLASSES:
File "/usr/lib/python2.6/site-packages/django/utils/functional.py", line 269, in __getattr__
self._setup()
File "/usr/lib/python2.6/site-packages/django/conf/__init__.py", line 40, in _setup
self._wrapped = Settings(settings_module)
File "/usr/lib/python2.6/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 'mysite.settings' (Is it on sys.path? Does it have syntax errors?): No module named mysite.settings
Espero me puedan hechar la mano =D. SALUDOS