108๐
You can bypass the cache using ctrl + F5
for detailed reference: https://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache
18๐
You have to click on Ctrl + f5 every time to update your CSS, which isnโt dope.
You can actually do something like this:
<link rel="stylesheet" href="/static/css/mycss.css?{% now "U" %}"/>
The {% now โUโ %} will generate a random timestamp which updates your CSS every time you reload the page. I hope this works.
For better understanding check out: click here
- [Django]-Django template: check for empty query set
- [Django]-Django: Force select related?
- [Django]-Django form fails validation on a unique field
6๐
If you are on mac and using safari, you can press shift
then press the reload key.
- [Django]-Django 1.7 โ "No migrations to apply" when run migrate after makemigrations
- [Django]-The STATICFILES_DIRS setting should not contain the STATIC_ROOT setting
- [Django]-How can I get the full/absolute URL (with domain) in Django?
- [Django]-Can't compare naive and aware datetime.now() <= challenge.datetime_end
- [Django]-AttributeError: 'ManyRelatedManager' object has no attribute 'add'? I do like in django website but got this error
- [Django]-The QuerySet value for an exact lookup must be limited to one result using slicing. Filter error
2๐
Bypass your cache โ Simple instructions
In most Windows and Linux browsers:
Hold down Ctrl and press F5.
In Apple Safari:
Hold down โง Shift and click the Reload toolbar button.
In Chrome and Firefox for Mac:
Hold down both โ Cmd+โง Shift and press R.
- [Django]-Django bulk_create with ignore rows that cause IntegrityError?
- [Django]-How should I write tests for Forms in Django?
- [Django]-Django "Remember Me" with built-in login view and authentication form
2๐
It happens during development (when DEBUG is set to True in settings.py) if you change the static files under the directory set STATIC_ROOT, instead of the static directories under the particular app.
In other words, when working locally (on localhost) and DEBUG is set to True, do not forget to change the static files served under your app directory.
- [Django]-Serving Media files during deployment in django 1.8
- [Django]-Django fix Admin plural
- [Django]-How to subquery in queryset in django?
1๐
In addition to the answer of Xamuel San, if you are using Jinja to link your stylesheet, then you can try the following:
<link rel="stylesheet" type="text/css" href='{% static '/css/main.css' %}?{% now "U" %}'>
It perfectly worked on Chrome and Firefox. You can also use crtl+f5 to do the same but manually.
- [Django]-How should I write tests for Forms in Django?
- [Django]-Gunicorn autoreload on source change
- [Django]-The view didn't return an HttpResponse object. It returned None instead
- [Django]-Load a Django template tag library for all views by default
- [Django]-How to remove all of the data in a table using Django
- [Django]-Django โ Rotating File Handler stuck when file is equal to maxBytes
0๐
i prefer to temporarily disable the browser cache.
right click => inspect => network
[]Disable cache
- [Django]-How do you set DEBUG to True when running a Django test?
- [Django]-Django: using <select multiple> and POST
- [Django]-ValueError: Related model u'app.model' cannot be resolved
0๐
You can try this:
specify type
attribute in the link
tag/field.
<link rel="stylesheet" type="text/css" href="{% static '/css/Style.css' %}"/>
- [Django]-How to auto insert the current user when creating an object in django admin?
- [Django]-Django admin โ how to make "inlines" collapsible?
- [Django]-STATIC_ROOT vs STATIC_URL in Django
0๐
Most browsers allow you to disable http caching to some degree. In Mozilla, if youโre using the Web Developer tools, thereโs a setting to do this.
- [Django]-Detect whether Celery is Available/Running
- [Django]-How to change a django QueryDict to Python Dict?
- [Django]-Django 1.5 custom User model error. "Manager isn't available; User has been swapped"