Questions tagged [collectstatic]

CollectStatic is a Django Command that collects the static files into STATIC_ROOT directory as per specified in the base.py config files for your django applications.

118 questions
2
votes
1 answer

What similar on Django-collectstatic for Pyramid?

I need collect statics for different moduls in one place. Then to give this static to nginx from one place. Maybe it has already been implemented?
Greg Eremeev
  • 1,760
  • 5
  • 23
  • 33
1
vote
0 answers

Django Collect Static says 0 static files copied

I want to get run python manage.py collectstatic To collectstatic files but it not working But it says 0 static files copied to.... Here in my setting.py looks like that. I have static folder in my root folder and still not working evertime it…
Panda
  • 175
  • 8
1
vote
1 answer

Disable collectstatic and paver when javascript or css changes in Openedx

Can we disable collectstatic and paver when javascript or css changes in Openedx? Because as a developer, we frequently change the javascript or css and would like to view the outcome directly from openedx platform. Currently if any javascript or…
JW Zhu
  • 21
  • 3
1
vote
2 answers

Django 3.2.8: 0 static files copied to '/static'

This error occurs when performing command python manage.py collectstatic: 0 static files copied to '/home/project'. That means there is no changes and my static files already exist in the destination but in this folder only one file: static/ …
Saeed
  • 3,294
  • 5
  • 35
  • 52
1
vote
1 answer

django collectstatic picking files from wrong location

I am beginner in Python and Django. I am using Windows10 and I have installed Python 3.10.0 and pip 21.3.1. I installed Django using following commands pip install virtualenvwrapper-win mkvirtualenv firstdjango pip install django django-admin…
Jass
  • 3,345
  • 3
  • 24
  • 41
1
vote
1 answer

How is AWS_DEFAULT_ACL supposed to be used in django-storages?

I'm a bit of a newbie to django-storages and I'm confused about the purpose of its AWS_DEFAULT_ACL settings variable. I gather that when it's set to None, the bucket policy on my AWS S3 bucket will be honored. That seems to indeed be true. I've…
Dylan
  • 2,315
  • 2
  • 20
  • 33
1
vote
1 answer

Django FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Users\\ivan\\Desktop\\Python\\static'

I'm trying to install django debug toolbar to track ORM queries to the database. Got this erorr WARNINGS: ?: (debug_toolbar.staticfiles.W001) debug_toolbar requires the STATICFILES_DIRS directories to exist. HINT: Running manage.py…
1
vote
1 answer

Django on Heroku: KeyError: 'collectstatic'

I'm trying to deploy my simple Django web app on Heroku, but the build fails with the following error: Successfully installed asgiref-3.3.4 dj-database-url-0.5.0 django-3.2 django-heroku-0.3.1 gunicorn-20.1.0 numpy-1.20.2 pillow-8.2.0…
stefanbschneider
  • 5,460
  • 8
  • 50
  • 88
1
vote
2 answers

Django collectstatic is not pushing to AWS S3

I have searched and reconfigured my project so many times. I have created new AWS accounts but am still having the same issue. python manage.py collectstatic keeps reverting to an old folder I used while using whitenoise. i have commented out the…
femiir
  • 190
  • 1
  • 2
  • 15
1
vote
1 answer

Running collectstatic command from Dockerfile

My goal is to run collectstatic command inside Dockerfile, but when trying to rebuild and run the container by running docker-compose up -d --build I run into KeyError messages coming from settings.py file on lines where environmental variables are…
Edgar Navasardyan
  • 4,261
  • 8
  • 58
  • 121
1
vote
1 answer

Server error 500 on Django when deployed on Heroku when debug is set to False

Website is fine when debug is true, but when set to false it gives me a server error 500 evertime on every page. When i go into heroku logs --tail it tells me there is a status 500 issue. I have set up my allowed host so that is not an issue. Does…
ethan678
  • 11
  • 1
1
vote
1 answer

Collectstatic failing - botocore.exceptions.ClientError: An error occurred (404) when calling the HeadObject operation: Not Found

I'm attempting to run collectstatic on a stage deploy to AWS. I'm getting the following error, and no files are being placed in the bucket: Traceback (most recent call last): File…
kbdev
  • 1,225
  • 1
  • 13
  • 33
1
vote
1 answer

Django static files are not loading with NGINX

Im trying to publish my first Django App on production Server with NGINX. project --app1 --app2 --config settings.py wsgi.py urls.py --venv manage.py nginx configuration server { listen 80; server_name my_IP_adress; location =…
Icy Bix
  • 15
  • 6
1
vote
0 answers

python ../manage.py collectstatic - RuntimeError: Max post-process passes exceeded

I have a Django app with a React frontend deployed on Heroku. When I try to make changes then run python ../manage.py collectstatic it seems to be post-processing an infinite amount of files. It just goes on forever until it finally times out.…
1
vote
0 answers

Django has exception while "collectstatic" django.core.exceptions.SuspiciousFileOperation after adding STYLESHEETS in PIPELINE

As soon as I defined 'STYLESHEET' in my PIPELINE and did run python3 manage.py collectstatic, I got the django.core.exceptions.SuspiciousFileOperation: The joined path (/) is located outside of the base path component…