You don't need special rules in the URL config to serve static files in
development as far as I know

so you have a route to "/static/public/css/bootstrap.min.css" and I assume
that when you try to access

http://localhost:8000/static/public/css/bootstrap.min.css

you get a 404 error

Where is bootstrap.min.css located in your project directory?

On Fri, Mar 20, 2015 at 11:19 AM, Frank Bieniek <
frank.bien...@googlemail.com> wrote:

> HI
> check your main urls.py for something like this:
>
> if settings.DEBUG:
>     urlpatterns += patterns('',
>         #(r'^media/(?P<path>.*)', 'django.views.static.serve',
> {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
>         (r'^static/(?P<path>.*)', 'django.views.static.serve',
> {'document_root': settings.STATIC_ROOT, 'show_indexes': True}),
>     )
>
> This allows static file serving from the runserver - only for local
> development!!
>
> thanks
> Frank
> Am Freitag, 20. März 2015 01:59:08 UTC+1 schrieb Fellipe Henrique:
>>
>> Hi,
>>
>> In my template, when I made a reference to my Static folder.. what's the
>> correct usage?
>>
>> {{STATIC_URL }} or {% static "...." %}
>>
>> Django 1.7 and Python 3
>>
>> Thanks!
>>
>> T.·.F.·.A.·.     S+F
>> *Fellipe Henrique P. Soares*
>>
>> e-mail: > echo "lkrrovknFmsgor4ius" | perl -pe \
>> 's/(.)/chr(ord($1)-2*3)/ge'
>> *Blog: http://fhbash.wordpress.com/ <http://fhbash.wordpress.com/>*
>> *GitHub: https://github.com/fellipeh <https://github.com/fellipeh>*
>> *Twitter: @fh_bash*
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/ebff8c7f-b839-40e1-89d9-2365c45520d0%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/ebff8c7f-b839-40e1-89d9-2365c45520d0%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALn3ei0FvvB0fwcKhsNBcnfJgACTtLu8vnY94m%2BEV7nNAtR22w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to