After 2 weeks I was able to setup django under CentOS 3 ;)
Now, I'm so close... I can see the login screen of admin but the admin
media files and my media and the templates are not loading :(
This is under lighttpd with the lastest svn code with the new fastcgi:
lighttp:
server.document-root = "/root/vulcano/jhonWeb/data/files/"
#### fastcgi module
fastcgi.server = (
"/main.fcgi" => (
"main" => (
"host" => "127.0.0.1",
"port" => 3033,
"check-local" => "disable"
)
),
"/admin.fcgi" => (
"admin" => (
"socket" => "/tmp/admin.socket",
"check-local" => "disable"
)
)
)
alias.url = (
"/media/" => "/root/django_src/django/contrib/admin/media/",
)
url.rewrite-once = (
"^(/media.*)$" => "$1",
"^/favicon\.ico$" => "/media/favicon.ico",
"^(/.*)$" => "/main.fcgi$1",
"^(/admin.*)$" => "/admin.fcgi$1",
)
* Settings file:
#Determinar si esta en el servidor de desarrollo o de produccion...
if os.name=='nt':
BASE_DIR = 'E:\\Proyectos\\Python\\jhonWeb\\'
else:
BASE_DIR = '/root/vulcano/jhonWeb/'
SITE_ID = 1
# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
if os.name=='nt':
MEDIA_ROOT = BASE_DIR + 'data\\files\\'
else:
MEDIA_ROOT = BASE_DIR + 'data/files/'
# URL prefix for admin media -- CSS, JavaScript and images. Make sure
to use a
# trailing slash.
# Examples: "http://foo.com/media/", "/media/".
ADMIN_MEDIA_PREFIX = '/media/'
TEMPLATE_DIRS = (
# Put strings here, like "/home/html/django_templates".
# Always use forward slashes, even on Windows.
'plantillas',
'/root/vulcano/jhonWeb/plantillas',
)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---