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
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
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,
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
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:
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
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
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
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
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',
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
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
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 ...
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
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
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/
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
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'
18 matches
Mail list logo