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# -*- coding: utf-8 -*-
from django.conf.urls.defaults import *
este es mi archivo url.py
urlpatterns = patterns('',
(r'^admin/', include('django.contrib.admin.urls')),
)
Código Python:
Ver originalimport os
import sys
path = '/usr/local/django/'
if path not in sys.path:
sys.path.append(path)
path = '/usr/local/django/paddington/'
if path not in sys.path:
sys.path.append(path)
os.environ['DJANGO_SETTINGS_MODULE'] = 'paddington.settings'
import django.core.handlers.wsgi
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