django-staticfiles Questions

17

Solved

I'm getting a ValueError when running python manage.py test. My project is named fellow_go, and I'm currently working on an App called pickup. Please note that this error is added in a relatively ...
Unprintable asked 24/5, 2017 at 14:1

2

This error occurs when running Django 4.2.The Default: django.contrib.staticfiles.storage.StaticFilesStorage has been deprecated.
Barbarism asked 6/6, 2023 at 3:39

10

Solved

I am new to Django. When I use the command python manage.py collectstatic, I get this error django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the STAT...
Ame asked 22/4, 2014 at 9:27

23

I just want to drop the favicon.ico in my staticfiles directory and then have it show up in my app. How can I accomplish this? I have placed the favicon.ico file in my staticfiles directory, but ...
Cutwater asked 21/2, 2014 at 15:9

3

Solved

There are many article describing the pros of using whitenoise instead of other configuration for serving static files. But the information about it's cons is kind of hard to find Is there any con...
Pneumonoultramicroscopicsilicovolcanoconiosis asked 13/5, 2018 at 16:26

12

Solved

Is there an easy way to turn off caching of static files in Django's development server? I'm starting the server with the standard command: python manage.py runserver I've got settings.py configur...
Ludendorff asked 10/8, 2011 at 15:47

1

I cant seem to find how to refresh the whitenoise static files cache. It has been giving me a problem. Which has persisted even when I removed the specific file causing the problem. The Manifest is...
Depolarize asked 20/2, 2018 at 19:5

3

Solved

I used this template to create a home page in a django project, however I can't have the background image displayed correctly (bg.jpg) The background image is used as foollows in the css file : ...
Chamberlin asked 7/2, 2018 at 13:55

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

6

Solved

I'm working on a project and following the documentation. I didn't succeed to include javascript. Here is my settings: STATIC_URL = '/static/' STATICFILES_DIRS = ( os.path.join(BASE_DIR, "st...

3

Solved

My config is as follows: STATIC_URL = '/static/' MEDIA_URL = '/static/media/' And since I upgraded django 2.1 to 2.2 I get: "runserver can't serve media if MEDIA_URL is within STATIC_URL." djan...
Antitoxic asked 24/12, 2019 at 13:32

5

Solved

I'm trying to deploy my Django application to the web, but I get the following error: You're using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path However,...
Penny asked 21/4, 2016 at 5:39

21

Solved

Am building an app using Django as my workhorse. All has been well so far - specified db settings, configured static directories, urls, views etc. But trouble started sneaking in the moment I wante...
Rambler asked 29/4, 2011 at 19:46

3

Solved

My django site user-end is running good with the static files but don't know why all the admin panel static files is not working. While it's working normally but not with linux any idea ?? nginx ....
Stacystadholder asked 10/11, 2017 at 15:4

1

having completed a django project on local development on my system, i followed the Digital Ocean tutorial to deploy a django app here Digital Ocean Django ASGI setup Tutorial. i configured gunicor...
Bitty asked 6/6, 2022 at 11:9

2

Solved

I have a heavily customized Django admin where it's very simple to load a custom JS file for each of my ModelAdmins: class MyModelAdmin(admin.ModelAdmin): class Media: js = ('js/admin/mymodel.js'...
Prostatitis asked 11/11, 2013 at 15:51

9

I want to change certain css in admin django like base.css. Is it better to change directly in the django library? How can I override it in the best way?
Metatarsal asked 9/9, 2011 at 4:6

11

Solved

I have a problem. I did everything as described in this Django tutorial (EDIT: dead link, here's a working link), and everything is running fine, but CSS and images are not showing up/being applied...
Irrespective asked 18/9, 2014 at 13:20

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

4

ok so My Index.html is <!DOCTYPE html> <html> <head> <title>Kodeworms</title> <link rel="stylesheet" href="{{ STATIC_URL }}css/style.css" /> </head&gt...
Brenna asked 19/3, 2014 at 20:18

6

Solved

I'm currently migrating all the static files references in my project to the new {% static %} tag that django 1.5 introduced, but I'm having a problem, in some places I use variables to get the con...
Slippage asked 20/5, 2013 at 18:24

18

Solved

I have a JavaScript file referenced on a django template: <script src="{% static 'js/login.js' %} "></script> I made some changes to that js file. Then, I refresh the page a...
Mancino asked 12/1, 2015 at 21:30

4

I have gone through every other answer and cannot seem to get anything to work for me. I am following a tutorial and trying to push my master branch to heroku and get the error You're using the sta...
Roo asked 26/1, 2018 at 3:38

4

Solved

I've finish my first app in Django and works perfectly, but still have pre-deployment problems since I set DEGUG=False ... Here is just to display an image in a template... T_T I was using this, b...
Starlet asked 15/5, 2016 at 18:9

2

I have already set up a Django Python application in my server with CPanel. The wsgi is correctly configured, the index.html (which doesn't have any css) runs properly but the admin panel doesn't l...
Cookstove asked 6/2, 2020 at 14:15

© 2022 - 2024 — McMap. All rights reserved.