#30576: Code not working on Django Tutorial part 6
-------------------------------------+-------------------------------------
               Reporter:  javiercmh  |          Owner:  nobody
                   Type:  Bug        |         Status:  new
              Component:             |        Version:  2.2
  Documentation                      |       Keywords:  django, tutorial,
               Severity:  Normal     |  background, image
           Triage Stage:             |      Has patch:  1
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  1
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 In the section "Adding a background-image" (Part 6 of Django tutorial)
 teaches how to add a background image by editing style.css as follows:
 {{{#!css
   body {
     background: white url("images/background.gif") no-repeat;
   }
 }}}
 However, this won't work because it doesn't reference the actual location
 of the image file. The following change fixes the issue (add
 **''/static/''**):
 {{{#!css
   body {
     background: white url("/static/images/background.gif") no-repeat;
   }
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30576>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.edbf8b600595f946c94d5fb184ca9f2e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to