collectstatic Questions

4

Solved

I've been moving around some settings to make more defined local and production environments, and I must have messed something up. Below are the majority of relevant settings. If I move the produc...
Perichondrium asked 3/1, 2020 at 3:7

4

Solved

After deploying on a server on digital ocean using nginx, gunicorn, django, and virtualenv, I try to use collectstatic: python manage.py collectstatic --settings=config.settings.production As yo...
Towhead asked 10/1, 2018 at 20:41

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

21

I'm trying to deploy a Django app to Heroku, it starts to build, download and installs everything, but that's what I get when it comes to collecting static files $ python manage.py collectstatic -...
Diplomatics asked 16/4, 2016 at 15:14

10

Solved

I currently have two kind of files static files and media files.The static files contain my css,js and other static content. The media files contain stuff that the user uploads.The static fol...
Sneer asked 14/6, 2017 at 21:41

4

Solved

In django 1.7 collectstatic throws an exception for me: OSError: [Errno 2] No such file or directory: '/static' I've performed a lot of collectstatic-calls and everything worked fine, but today ...
Heins asked 23/9, 2014 at 8:59

3

I am using django in my local machine. In order to serve the static files I used WhiteNoise along with it. When DEBUG = True all static files are correctly served. But when I changed DEBUG = False ...

1

Solved

EDIT: I have found that removing import django_heroku from my settings.py file allows me to push my static files to my AWS bucket. When I uncomment import django_heroku, collectstatic then pushes ...
Ferguson asked 9/4, 2018 at 22:39

4

Solved

I'm using boto with S3 to store my Django site's static files. When using the collectstatic command, it uploads a good chunk of the files perfectly before stopping at a file and throwing "Error 32:...
Melyndamem asked 10/4, 2015 at 2:16

4

Solved

In Django, the convention is to put all of your static files (i.e css, js) specific to your app into a folder called static. So the structure would look like this: mysite/ manage.py mysite/ --&gt...

1

How do I put a background image on the body in css with django using static? Is it something like this? I can't find any information on this. Thanks. {% load static %} body { padding: 0 20px; b...
Yeld asked 24/11, 2014 at 18:51
1

© 2022 - 2024 — McMap. All rights reserved.