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
1
vote
0 answers

Geonode-project not assuming changes in css

I created a Geonode project following the instructions of geonode-project GitHub repo. After running the instance for development using the respective docker-compose files I tried to apply changes to site_index.html and site_base.css files. The…
Falcoa
  • 2,612
  • 1
  • 20
  • 30
1
vote
0 answers

Django not collecting static files to S3 bucket but local directory, what's wrong with the config?

So I have my settings.py set up as so: STATIC_ROOT = os.path.join(BASE_DIR, 'my_dir/static/') STATICFILES_FINDERS = [ 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', …
1
vote
1 answer

umap collectstatic gives "No such file or directory" error

As I have very little knowledge about Linux, pretty much all I can do is copy and paste things from a good tutorial and in most cases simply hope nothing goes wrong. I really tried finding a solution on my own and searching the internet but to no…
1
vote
1 answer

heroku deploy error with static root path django. static_root not set to file system path

my static files settings are improperly configured according to heroku when I attempt to deploy. I am without doubt this is false as I still lack understanding of the proper way to set up static files. I have ran collect static on my machine and it…
user9487981
1
vote
1 answer

Django Collectstatic Suspicious File operation

I am trying to run collectstatic on heroku. When I got this error: remote: 'component ({})'.format(final_path, base_path)) remote: django.core.exceptions.SuspiciousFileOperation: The joined path…
Malik A. Rumi
  • 1,855
  • 4
  • 25
  • 36
1
vote
0 answers

Django - collectstatic 'ImproperlyConfigured' traceback when deploying to Heroku

I'm learning to use Django and am trying to deploy a project on Heroku. When I try to deploy the project through the command window I get the following traceback when it runs python manage.py collectstatic Improperly Configured: You're using the…
1
vote
1 answer

Bad filename formed by collectstatic from jquery-ui-1.12.0.min.css?

I'm using Django 1.10 and am getting the following error message from collectstatic: ValueError: The file 'helpdesk/"images/ui-icons_555555_256x240.png"' could not be found with [...ManifestStaticFilesStorage]. I'm wondering if the problem is the…
Bezewy
  • 322
  • 4
  • 11
1
vote
1 answer

Django Collectstatic with AWS S3 not copying correct static and media files

I am trying to copy all of my static and media files to an S3 bucket. Unfortunately despite the fact that my media root and static root are provide in my settings.py file.... DEFAULT_FILE_STORAGE =…
Jeffrey Steven
  • 185
  • 1
  • 8
1
vote
1 answer

Django collectstatic command for specific file or folder

when I run this code python manage.py collectstatic --clear --noinput it remove all static files and folders in staticroot and colletc all files and folders again. But I want to collect just a specific file or a specific folder. How can i do that?
1
vote
1 answer

django collectstatic does not exclude external folder

I located my client project folder and django project folder under the root folder separately. I configured django settings.py to contain client's app folder to serve in development and dist folder to be gathered by collectstatic STATICFILES_DIRS =…
Jin. K
  • 141
  • 2
  • 10
1
vote
1 answer

Django collectstatic : change source of static files

I have a Django app, with a folder named static. When the app is deployed, python manage.py collecstatic is automatically ran and this folder is copied into public/static and everything works perfectly. However, I want to run a gulp task before,…
rocketer
  • 1,051
  • 3
  • 13
  • 40
1
vote
1 answer

How to set up collectfast for django on heroku?

How can I set up collectfast for django on heroku? This is assuming I've already successfully set up static files hosting and serving from Amazon S3.
Danra
  • 9,546
  • 5
  • 59
  • 117
1
vote
1 answer

Automatically remove source files after collectstatic with django-pipeline

With django-pipeline, is it possible to automatically remove source files after collectstatic ? for example : PIPELINE_JS = { 'stats': { 'source_filenames': ( 'js/jquery.js', 'js/d3.js', …
luc2
  • 547
  • 1
  • 4
  • 11
1
vote
1 answer

Django pipeline - How to serve static files after running collectstatic?

My project structure |- myProject |- manage.py |- myProject |- settings.py |- static // This is my STATIC_ROOT |- myApp |- static // This is where I edit and save my static files So I run the collectstatic…
gkpo
  • 2,623
  • 2
  • 28
  • 47
1
vote
1 answer

collectfiles failes for pipeline / yUglify: The system cannot find the path specified

I've been trying to get django-pipeline to work to combine and minify my css and js assets. I don't seem to be able to sort the following issue out. When I run: python manage.py collectstatic --noinput I get an…
Gabriël
  • 1,323
  • 2
  • 22
  • 34