Soo.... when you open your webpage, look at its source code, click on the "/static/public/css/bootstrap.min.css" path it shows the file in Firefox?
On Fri, Mar 20, 2015 at 11:37 AM, Néstor <rot...@gmail.com> wrote: > Is it OK to have this syntax? > href="{% static "public/css/bootstrap.min.css" %}"> > > Should you not do something like this: > href="{% static 'public/css/bootstrap.min.css' %}"> > > > > On Fri, Mar 20, 2015 at 7:13 AM, Fellipe Henrique <felli...@gmail.com> > wrote: > >> So, answer the questions: >> >> - I in Debug mode: DEBUG = True >> - Here is my settings.py: >> https://gist.github.com/fellipeh/4eb8143f6ac362dff9e0 >> - Yes, all my folder has the correct permission, I can edit any files >> there. >> >> - I my HTML I have: >> >> <link rel="stylesheet" href="{% static "public/css/bootstrap.min.css" >> %}"> >> >> and in source code, in browser show these: >> >> <link rel="stylesheet" href="/static/public/css/bootstrap.min.css"> >> >> >> - When I try to go: localhost:8000/static show these: >> >> Page not found (404) Request Method: GET Request URL: >> http://localhost:8000/static/ >> >> Directory indexes are not allowed here. >> >> You're seeing this error because you have DEBUG = True in your Django >> settings file. Change that to False, and Django will display a standard >> 404 page. >> >> >> >> Any thoughts? >> >> 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* >> >> On Fri, Mar 20, 2015 at 9:36 AM, Ilya Kazakevich < >> kazakevichi...@gmail.com> wrote: >> >>> This one "{% static "...." %}" is MUCH better than {{STATIC_URL }}. >>> It is recommended way. >>> >>> You almost never need to use {{STATIC_URL }}. >>> >>> >>> On Friday, March 20, 2015 at 3:59:08 AM UTC+3, Fellipe Henrique wrote: >>>> >>>> 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/06ea6d9c-a224-49c9-93b5-4733ceab5111%40googlegroups.com >>> <https://groups.google.com/d/msgid/django-users/06ea6d9c-a224-49c9-93b5-4733ceab5111%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/CAF1jwZHfddQLPvxA%3D0thjDEP8Nb6OLD4yQPOR60feoDdR7Q67A%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-users/CAF1jwZHfddQLPvxA%3D0thjDEP8Nb6OLD4yQPOR60feoDdR7Q67A%40mail.gmail.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/CAON-vCP%3Dsp%2BMt-F2w7sCp_5i5yFYeGJxTP9dTOiM4Sef7-wchQ%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAON-vCP%3Dsp%2BMt-F2w7sCp_5i5yFYeGJxTP9dTOiM4Sef7-wchQ%40mail.gmail.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/CALn3ei1eDD1qDuH0Wi9RnzUwa%3DAQiwDYWfAPoMdk8A9a25%2BvKw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.