#26631: Tutorial Part 6: Lacking import static for static files
-------------------------------+----------------------
     Reporter:  donkeyDau      |      Owner:  nobody
         Type:  Bug            |     Status:  new
    Component:  Documentation  |    Version:  1.9
     Severity:  Normal         |   Keywords:  tutorial
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+----------------------
 In the tutorial in step 6
 (https://docs.djangoproject.com/en/1.9/intro/tutorial06/) the following
 code is used:
 {{{
 {% load staticfiles %}

 <link rel="stylesheet" type="text/css" href="{% static 'polls/style.css'
 %}" />
 }}}
 It wouldn't work when I tried. I figured out that I have to import

 {{{
 from django.conf.urls.static import static
 }}}
 to get it work properly.

--
Ticket URL: <https://code.djangoproject.com/ticket/26631>
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.838beaf5f0833262a10f7be3c351473c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to