Ver Mensaje Individual
  #4 (permalink)  
Antiguo 20/09/2011, 08:35
xogost
 
Fecha de Ingreso: mayo-2011
Mensajes: 4
Antigüedad: 13 años
Puntos: 1
Pregunta Respuesta: Archivos CSS en Django

Cita:
Iniciado por AlvaroG Ver Mensaje
¿definiste correctamente las variables MEDIA_* en tu settings.py?
¿estás usando Django 1.3? si es así, podés aplicar lo que menciona TMeister

Si no encuentra los archivos, es un problema de rutas. Si es un problema de rutas, probablemente no sea un problema de Django.

Es imposible ver el problema sin saber cómo están tus rutas y dónde colocaste los archivos.

Saludos.
Gracias por tu aporte soy nuevo en Django, coloque las rutas en settings.py pero por desgracia todos mis intentos fallaron .

Al final el settigns.py termino la estructura casi intacta.

Código:
# Absolute filesystem path to the directory that will hold user-uploaded files.
# Example: "/home/media/media.lawrence.com/media/"
MEDIA_ROOT = ''

# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash.
# Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
MEDIA_URL = ''

# Absolute path to the directory static files should be collected to.
# Don't put anything in this directory yourself; store your static files
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
# Example: "/home/media/media.lawrence.com/static/"
STATIC_ROOT = ''

# URL prefix for static files.
# Example: "http://media.lawrence.com/static/"
STATIC_URL = '/static/'

# URL prefix for admin static files -- CSS, JavaScript and images.
# Make sure to use a trailing slash.
# Examples: "http://foo.com/static/admin/", "/static/admin/".
ADMIN_MEDIA_PREFIX = '/static/admin/'

# Additional locations of static files
STATICFILES_DIRS = (
    # Put strings here, like "/home/html/static" or "C:/www/django/static".
    # Always use forward slashes, even on Windows.
    # Don't forget to use absolute paths, not relative paths.
    '/Django/Agenda/Tareas/templates/boilerplate-initializr-2.0/css/style.css',

)
Django 1.3

Saludos.