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.
Questions tagged [collectstatic]
118 questions
0
votes
1 answer
Django Heroku Collectstatic error only on deploy
I've looked through a bunch of other StackOverflow and forum pages with very similar issues, but none of their solutions worked.
The error is caused during the python manage.py collectstatic --noinput test command when you deploy to heroku. Running…

Eli Front
- 695
- 1
- 8
- 28
0
votes
1 answer
django-compressor writing new files in collect_static/CACHE on every request
I've a django website set up using django-compressor + memcached.
Not sure when it started, but I'm finding new css and js files in .../collect_static/CACHE/css and .../collect_static/CACHE/js every minute, like output.2fde5b60eff0.css.
I use…

manisar
- 103
- 1
- 7
0
votes
2 answers
Error while running the collectstatic on django FileNotFoundError:
So I am running the command
python manage.py collectstatic
and I am getting an error, I am pretty sure it is because I have some setting off inside my settings.py.
First I will attach a picture, so everyone can see the tree of my documents and then…

leni lunderman
- 11
- 1
- 4
0
votes
0 answers
"GET /static/bootstrap.min.css HTTP/1.1" 404 68
Im getting this error "GET /static/bootstrap.min.css.css HTTP/1.1" 404 68 in my terminal whenever I update my page with prod.py I build. I think it's my code in my settings.py that is wrong and with the static files also.
there are my codes
1. B_F1 …

newbieeee
- 1
- 1
- 2
0
votes
1 answer
How can I call collectstatic routine inside a django app?
My Django app works with css/html themes and I can upload new themes from the user interface, that is, a regular user can upload a new theme without asking for a IT guy. I usually call a os.run('python manage.py collectstatic') but I would like to…

Josir
- 1,282
- 22
- 35
0
votes
0 answers
Django - How to change the location of admin static files?
I recently discovered that it's quite easy to check if a site is running on Django as its not possible to change the location of DJANGO Admin styles located at /static/admin/css/base.css
The only thing I can change at the path shown above is /static…
user14389292
0
votes
1 answer
collectstatic whitenoise can't see my existing file on deployment to heroku
I've been workingon my app making multiple pushes to deploy on heroku and everything was fine but when I added settings for my django app to use cloudinary to store uploaded files in production whitenoise acted up failing to see files that are…

Jordan Rob
- 322
- 2
- 16
0
votes
0 answers
wagtail collectstatic is failing
I'm using python 3.7 , wagtail 2.10
After:
python manage.py collectstatic
I have the errors below.
My insite about the issue is that there is a Django related problem about
STATICFILES_STORAGE =…

mike
- 323
- 3
- 11
0
votes
1 answer
Static Files Pythonanywhere
When I run python manage.py collectstatic in the bash console I keep getting "python: can't open file 'manage.py': [Errno 2] No such file or directory". But I can clearly see my manage.py file in my code editor, I am a beginner in django and its…

Dennis Osei
- 5
- 2
0
votes
1 answer
How do i control static directory resources
Currently my html file points to this. What static variable django setting.py do I declare to make the HTML point to