#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.