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
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…
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 …
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…
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
Travis Tay
  • 350
  • 2
  • 10
0
votes
1 answer

how to host static files with heroku, giving me an error

`python manage.py collectstatic Traceback (most recent call last): File "manage.py", line 21, in main() File "manage.py", line 17, in main execute_from_command_line(sys.argv) File…
0
votes
1 answer

How to manage collectstatic for Django app when deploying to multiple servers

My current setup: Multiple AWS Ec2 instances behind an elastic load balancer Django app source code in Github AWS S3 to host my static files CodeDeploy to clone repository onto new instances I am using Docker to actually build the app on the…
swaggy
  • 151
  • 1
  • 1
  • 4
0
votes
0 answers

Django Whitenoise not serving static files sometimes in ECS with debug False

My static files are not being served nicely in production with Whitenoise and Debug=False . Sometimes it serves, sometimes it doesn't find the static. I have the following settings: # Static / Media MEDIA_URL = os.environ.get('MEDIA_URL',…
Pablo Abdelhay
  • 988
  • 1
  • 10
  • 12
0
votes
1 answer

Why is collectstatic not copying all my directories?

Currently working on deployment for my django website. Im trying to get my static files working so obviously I used this command: python manage.py collectstatic. Once finished running it prints 119 files copied... I thought this was working until I…
alexholstv
  • 146
  • 1
  • 10
0
votes
0 answers

Django Suspicious File Operation joined path is located outside of the base path

When running python manage.py collectstatic i get the following exception: django.core.exceptions.SuspiciousFileOperation: The joined path (/Users/global_assets/images/backgrounds/seamless.png) is located outside of the base path component…