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

Ahora en principio esta configurado con el mod_wsgi

pero me salta:


Page not found (404)
Request Method: GET
Request URL: http://localhost/paddingtonProject/

Using the URLconf defined in paddington.urls, Django tried these URL patterns, in this order:

1. ^admin/

The current URL, , didn't match any of these.

You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.



Y si voi a : http://localhost/paddingtonProject/admin/
ya me peta de lo londo con un bonito:
ImportError at /admin/

No module named urls

Request Method: GET
Request URL: http://localhost/paddingtonProject/admin/
Exception Type: ImportError
Exception Value: No module named urls


Código Python:
Ver original
  1. # -*- coding: utf-8 -*-
  2. from django.conf.urls.defaults import *
  3.  
  4.  
  5. este es mi archivo url.py
  6.  
  7. urlpatterns = patterns('',
  8.   (r'^admin/', include('django.contrib.admin.urls')),
  9. )


Código Python:
Ver original
  1. import os
  2. import sys
  3.  
  4.  
  5. path = '/usr/local/django/'
  6. if path not in sys.path:
  7.     sys.path.append(path)
  8.  
  9. path = '/usr/local/django/paddington/'
  10. if path not in sys.path:
  11.     sys.path.append(path)
  12.  
  13.  
  14. os.environ['DJANGO_SETTINGS_MODULE'] = 'paddington.settings'
  15.  
  16. import django.core.handlers.wsgi
  17. application = django.core.handlers.wsgi.WSGIHandler()

este es el .wsgi

No se si veis algo raro... desde la configuracion de apache simplemente hago: WSGIScriptAlias /paddingtonProject /usr/local/django/paddington/apache/apache.wsgi

Muchas gracias