Re: {{STATIC_URL }} or {% static "...." %} What`s the correct to use?

2015-03-20 Thread Fellipe Henrique
Man!!! You don't believe what's the problem is!!?! The problem is my Firefox!! For some reason, firefox make a huge cache.. and it's using very old version of CSS and JS... I clean All my data, and work!!! Thanks Again! T.·.F.·.A.·. S+F *Fellipe Henrique P. Soares* e-mail: > echo

Re: {{STATIC_URL }} or {% static "...." %} What`s the correct to use?

2015-03-20 Thread Tom Lockhart
On Mar 20, 2015, at 9:59 AM, Fellipe Henrique wrote: > > On Fri, Mar 20, 2015 at 11:43 AM, Vijay Khemlani wrote: > 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

Re: {{STATIC_URL }} or {% static "...." %} What`s the correct to use?

2015-03-20 Thread Vijay Khemlani
OK, this is officially no longer a Django problem xD Try adding the type="text/css" attribute to the link tag, also remember to close it just in case Other than that you may have problems in your HTML On Fri, Mar 20, 2015 at 1:59 PM, Fellipe Henrique wrote: > > On Fri,

Re: {{STATIC_URL }} or {% static "...." %} What`s the correct to use?

2015-03-20 Thread Fellipe Henrique
On Fri, Mar 20, 2015 at 11:43 AM, Vijay Khemlani wrote: > 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? > Yes.. when I open source code in firefox, click them.. show me

Re: {{STATIC_URL }} or {% static "...." %} What`s the correct to use?

2015-03-20 Thread Tom Lockhart
On Mar 20, 2015, at 7:37 AM, Néstor wrote: > Is it OK to have this syntax? > href=“{% static "public/css/bootstrap.min.css" %}"> fwiw yes it is OK to have that syntax with double quotes inside another set of double quotes. - Tom > > Should you not do something like this:

Re: {{STATIC_URL }} or {% static "...." %} What`s the correct to use?

2015-03-20 Thread Vijay Khemlani
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 wrote: > Is it OK to have this syntax? > href="{% static

Re: {{STATIC_URL }} or {% static "...." %} What`s the correct to use?

2015-03-20 Thread Néstor
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 wrote: > So, answer the questions: > > - I in

Re: {{STATIC_URL }} or {% static "...." %} What`s the correct to use?

2015-03-20 Thread Fellipe Henrique
On Fri, Mar 20, 2015 at 11:24 AM, Vijay Khemlani wrote: > http://localhost:8000/static/public/css/bootstrap.min.css In fact, if I type these in firefox, show me the file... :) but nothing in my HTML.. here is my html, {% load staticfiles %} Test!! I really

Re: {{STATIC_URL }} or {% static "...." %} What`s the correct to use?

2015-03-20 Thread Vijay Khemlani
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

Re: {{STATIC_URL }} or {% static "...." %} What`s the correct to use?

2015-03-20 Thread Frank Bieniek
HI check your main urls.py for something like this: if settings.DEBUG: urlpatterns += patterns('', #(r'^media/(?P.*)', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}), (r'^static/(?P.*)', 'django.views.static.serve',

Re: {{STATIC_URL }} or {% static "...." %} What`s the correct to use?

2015-03-20 Thread Fellipe Henrique
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: and in source code, in browser show these: - When

Re: {{STATIC_URL }} or {% static "...." %} What`s the correct to use?

2015-03-20 Thread Ilya Kazakevich
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

Re: {{STATIC_URL }} or {% static "...." %} What`s the correct to use?

2015-03-19 Thread Mike Dewhirst
On 20/03/2015 12:19 PM, Fellipe Henrique wrote: Here is a fairly typical static file template line ... href="{{STATIC_URL}}css/styles.css" media="screen"/> ... and to see where that fits, insert something like this in your local settings. You will discover any bludners fairly quickly ...

Re: {{STATIC_URL }} or {% static "...." %} What`s the correct to use?

2015-03-19 Thread Stephen J. Butler
Some questions you need to answer then: 1. Does the URL to the static resource appear properly in your rendered HTML? 2. Did you configure your web server properly so that the STATIC_ROOT appears at the right location? 3. After running collectstatic does the STATIC_ROOT directory have the

Re: {{STATIC_URL }} or {% static "...." %} What`s the correct to use?

2015-03-19 Thread Vijay Khemlani
What URL is being generated in the final HTML?, and does that path match the one you have in the static folder in your app? Also, if your are on debug mode, you don't need to run collectstatic On Thu, Mar 19, 2015 at 10:19 PM, Fellipe Henrique wrote: > Thanks, but I already

Re: {{STATIC_URL }} or {% static "...." %} What`s the correct to use?

2015-03-19 Thread Fellipe Henrique
Thanks, but I already try the docs, but my static files doesn't show! Show me 404 error.. even when I run manage.py collectstatic 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/

Re: {{STATIC_URL }} or {% static "...." %} What`s the correct to use?

2015-03-19 Thread Stephen J. Butler
It says right in the docs what to do: https://docs.djangoproject.com/en/1.7/howto/static-files/ On Thu, Mar 19, 2015 at 7:57 PM, 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_URL }} or {% static "...." %} What`s the correct to use?

2015-03-19 Thread 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'