django-static Questions
10
Solved
I'm using Django 1.7. When deploying my site to a Production server and running collectstatic, I get following error message:
django.core.exceptions.ImproperlyConfigured: The STATICFILES_DIRS sett...
Evildoer asked 30/11, 2014 at 13:29
10
Solved
Server returned
TemplateSyntaxError at /
Invalid block tag: 'static'
on this line: <img src="{% static 'icon/logo.png' %}">.
The whold html file is like this (it's an html file {% include %...
Anglicanism asked 11/1, 2015 at 11:23
9
Solved
I have a reference inside my CSS file that refers to a static image:
#logo
{
background: url('/static/logo.png')
}
This works just fine on my dev machine but not on my production environment s...
Loferski asked 5/5, 2011 at 13:48
1
I wish to use date-fns in my django project but not entirely sure how to proceed - I cannot rely on a CDN and need to somehow get it installed. I have run npm init in my root folder followed by npm...
Congest asked 23/8, 2020 at 21:33
4
Solved
What are the differences of these three static url?
I am not sure if I am right, I am using the MEDIA_ROOT to store my uploaded photos (via models.ImageField())
However, I created a JS script t...
Spake asked 3/6, 2014 at 18:39
1
Solved
I am doing the django tutorial on realpython https://realpython.com/get-started-with-django-1/
In one of the templates they add {% load static %} to load the static files for an app. In the same te...
Splenetic asked 12/12, 2019 at 15:53
2
Solved
I'm not sure what the difference is, it seems like both of them are working. I googled around, and seems like they are pretty much same thing.
Just out of curiosity, which one do people use in the...
Bolanos asked 22/12, 2015 at 19:19
1
Solved
I'm trying to make django compress work but I believe it does not work because of my {% static %} use.
My template is (I'm using pyjade but doesn't matter):
- load staticfiles
- load compress
| ...
Internuncio asked 2/11, 2013 at 23:19
3
Solved
i'm a Django newbie working on my first project and having a problem with static files.
I have created a simple auth system using django.contrib.auth consisting of two templates: mysite/templates/...
Doubloon asked 18/4, 2012 at 19:45
2
Solved
I'm creating a Django project. I just tried taking the project out of debug, DEBUG = False and for some reason all my static files do not show up. They give an error code of 500. How do i fix...
Intensifier asked 19/6, 2011 at 21:17
1
Solved
I am using Django 1.3 with built-in static app.
My static folder structure is like this:
static/
css/
main.css
img/
js/
So I tried to reference images under static/css/img/ folder from CSS ...
Haleakala asked 12/6, 2011 at 5:53
1
© 2022 - 2025 — McMap. All rights reserved.