I believe the best way of doing this is to have your image(s) in
static/images and your css in static/css.  Then you can use a relative URL
to set the background image like so:

background-image : url("../images/PAE.jpg")

It's better not to have any CSS mixed in with your HTML anyway.
On Oct 11, 2012 7:49 AM, "luca72" <[email protected]> wrote:

> hello my project is lacated here:
>
> /home/
>   /luca72
>     /Scrivania
>       /Quintas_Disegno_definitivo
>         /quintas/ here i have the file manage.py ,
>
> than i have the file settings,py here:
> /home
>    /luca72
>       /Scrivania
>          /Quintas_Disegno_definitivo
>             /quintas
>                /quintas, here i have add a folder "static" with and image
> called PAE.jpg.
>
> How i have to configure the file setting.py in a way that in my template
> when i write via CSS background-image : url("PAE.jpg") the image is load
>
> I have try a lot of thing but i get that the image is not found.
>
> I use apache in localhost.
>
> Thaks
>
> Luca
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/VXS19g9Ie7MJ.
> 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?hl=en.
>

-- 
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?hl=en.

Reply via email to