Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/04/2011, 06:39
llos
 
Fecha de Ingreso: junio-2010
Mensajes: 29
Antigüedad: 13 años, 11 meses
Puntos: 0
Problemas con apache

Hola,

Tengo instalado apache y django en mi ubuntu llevo unas 6 horas intentando hacer que django funcione desde apache, pero no lo consigo.

Miren empece ha hacer el ejemplo de la pagina de django para aprender, y en el momento que habilite la zona de administracion me salta el seiguiente error:

Código Apache:
Ver original
  1. MOD_PYTHON ERROR
  2.  
  3. ProcessId:      11152
  4. Interpreter:    '127.0.1.1'
  5.  
  6. ServerName:     '127.0.1.1'
  7. DocumentRoot:   '/var/www'
  8.  
  9. URI:            '/paddingtonProject/'
  10. Location:       '/paddingtonProject'
  11. Directory:      None
  12. Filename:       '/var/www/paddingtonProject'
  13. PathInfo:       '/'
  14.  
  15. Phase:          'PythonHandler'
  16. Handler:        'django.core.handlers.modpython'
  17.  
  18. Traceback (most recent call last):
  19.  
  20.   File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1537, in HandlerDispatch
  21.     default=default_handler, arg=req, silent=hlist.silent)
  22.  
  23.   File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1229, in _process_target
  24.     result = _execute_target(config, req, object, arg)
  25.  
  26.   File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1128, in _execute_target
  27.     result = object(arg)
  28.  
  29.   File "/usr/lib/pymodules/python2.6/django/core/handlers/modpython.py", line 228, in handler
  30.     return ModPythonHandler()(req)
  31.  
  32.   File "/usr/lib/pymodules/python2.6/django/core/handlers/modpython.py", line 201, in __call__
  33.     response = self.get_response(request)
  34.  
  35.   File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py", line 134, in get_response
  36.     return self.handle_uncaught_exception(request, resolver, exc_info)
  37.  
  38.   File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py", line 154, in handle_uncaught_exception
  39.     return debug.technical_500_response(request, *exc_info)
  40.  
  41.   File "/usr/lib/pymodules/python2.6/django/views/debug.py", line 40, in technical_500_response
  42.     html = reporter.get_traceback_html()
  43.  
  44.   File "/usr/lib/pymodules/python2.6/django/views/debug.py", line 114, in get_traceback_html
  45.     return t.render(c)
  46.  
  47.   File "/usr/lib/pymodules/python2.6/django/template/__init__.py", line 178, in render
  48.     return self.nodelist.render(context)
  49.  
  50.   File "/usr/lib/pymodules/python2.6/django/template/__init__.py", line 779, in render
  51.     bits.append(self.render_node(node, context))
  52.  
  53.   File "/usr/lib/pymodules/python2.6/django/template/debug.py", line 81, in render_node
  54.     raise wrapped
  55.  
  56. TemplateSyntaxError: Caught an exception while rendering: No module named polls
  57.  
  58. Original Traceback (most recent call last):
  59.   File "/usr/lib/pymodules/python2.6/django/template/debug.py", line 71, in render_node
  60.     result = node.render(context)
  61.   File "/usr/lib/pymodules/python2.6/django/template/debug.py", line 87, in render
  62.     output = force_unicode(self.filter_expression.resolve(context))
  63.   File "/usr/lib/pymodules/python2.6/django/template/__init__.py", line 572, in resolve
  64.     new_obj = func(obj, *arg_vals)
  65.   File "/usr/lib/pymodules/python2.6/django/template/defaultfilters.py", line 687, in date
  66.     return format(value, arg)
  67.   File "/usr/lib/pymodules/python2.6/django/utils/dateformat.py", line 269, in format
  68.     return df.format(format_string)
  69.   File "/usr/lib/pymodules/python2.6/django/utils/dateformat.py", line 30, in format
  70.     pieces.append(force_unicode(getattr(self, piece)()))
  71.   File "/usr/lib/pymodules/python2.6/django/utils/dateformat.py", line 175, in r
  72.     return self.format('D, j M Y H:i:s O')
  73.   File "/usr/lib/pymodules/python2.6/django/utils/dateformat.py", line 30, in format
  74.     pieces.append(force_unicode(getattr(self, piece)()))
  75.   File "/usr/lib/pymodules/python2.6/django/utils/encoding.py", line 71, in force_unicode
  76.     s = unicode(s)
  77.   File "/usr/lib/pymodules/python2.6/django/utils/functional.py", line 201, in __unicode_cast
  78.     return self.__func(*self.__args, **self.__kw)
  79.   File "/usr/lib/pymodules/python2.6/django/utils/translation/__init__.py", line 62, in ugettext
  80.     return real_ugettext(message)
  81.   File "/usr/lib/pymodules/python2.6/django/utils/translation/trans_real.py", line 286, in ugettext
  82.     return do_translate(message, 'ugettext')
  83.   File "/usr/lib/pymodules/python2.6/django/utils/translation/trans_real.py", line 276, in do_translate
  84.     _default = translation(settings.LANGUAGE_CODE)
  85.   File "/usr/lib/pymodules/python2.6/django/utils/translation/trans_real.py", line 194, in translation
  86.     default_translation = _fetch(settings.LANGUAGE_CODE)
  87.   File "/usr/lib/pymodules/python2.6/django/utils/translation/trans_real.py", line 180, in _fetch
  88.     app = import_module(appname)
  89.   File "/usr/lib/pymodules/python2.6/django/utils/importlib.py", line 35, in import_module
  90.     __import__(name)
  91. ImportError: No module named polls


He probado un millon de cosas y no consigo nada....

Haber si alguien me puede ayudar!

Muchas gracias!