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

Heroku Django requests static files that don't exist

Using whitenoise for managing production static files. Django==2.1.4 whitenoise==4.1.2 My production server is requesting static files that look like mine (ie bootstrap.min.js) but have characters on the end (ie. bootstrap.min.xyz789.js). I…
Liam Hanninen
  • 1,525
  • 2
  • 19
  • 37
0
votes
1 answer

Heroku upload static folder not found

I was trying to reproduce the tutorial Django app and uploading it to Heroku server, but I can't resolve problems with static files. Here is a link to all files on github: https://github.com/Rufus90/poll.git When I try to run heroku run python…
0
votes
1 answer

Collectstatic referencing to wrong path to folder

When executing the command 'collectstatic', python looks into the wrong folder, Dev/staticfiles, when my staticfiles are saved in the folder: [..]/Dev/bidding_tool_project/project/staticfiles Would you have any idea how/why this happens?
Ben
  • 177
  • 1
  • 2
  • 9
0
votes
1 answer

Example for customizing the ignored pattern list in Django's collectstatic

Like other questions here, I want to ignore my .scss files when running collectstatic. But because I'm using Heroku, which runs a collectstatic automatically, I would rather customize collectstatic's ignore pattern list rather than change the…
Original BBQ Sauce
  • 527
  • 1
  • 11
  • 24
0
votes
1 answer

TypeError when I run collectatic to save the static in S3 bucket using django

I'm a bit new to django and I'm trying to run collectstatic from the terminal (python manage.py collectstatic) in order to collect the static files in the S3 bucket but I getting the following error: $ python manage.py…
Elena
  • 11
  • 1
0
votes
1 answer

The joined path is located outside of the base path component

There was a project on Django 1.9. I rewrote it on 1.11. But when I deploy to the server and collectstatic, I get an error django.core.exceptions.SuspiciousFileOperation: The joined path…
unknown
  • 252
  • 3
  • 12
  • 37
0
votes
0 answers

Collectstatic produces inexplicable %20 (space) in static directory urls, so CSS doesn't load

My static files aren't being served correctly because there's a strange space in my folder structure. development folder structure static >css >lots of css files >js >img When I run collecstatic to serve them properly, collect static puts…
phil0s0pher
  • 525
  • 10
  • 21
0
votes
0 answers

Styles missing after CollectStatic

So...It's the first time I have to edit a Django project. I edited some css and after updating my files in server I did: python manage.py collectstatic The problem is that now I have lost all the styles in the website. When inspecting I find there…
Sephy
  • 159
  • 1
  • 2
  • 15
0
votes
0 answers

Heroku/Django error on collectstatic : OSError: [Errno 2] No such file or directory

I'm beginning to fear I'll never get my site launched. I've launched an app on heroku, but I can't run heroku run python manage.py collectstatic without getting an OSError: Traceback: Running python manage.py collectstatic on ⬢ tallymusic... up,…
Danny
  • 470
  • 1
  • 4
  • 21
0
votes
0 answers

ModuleNotFoundError: No module named 'heroku'

I have searched a lot regarding uploading my django project on heroku but I'm unable to do that. Please check the following structure and let me know what is wrong and why I'm getting this error: File "/app/djangosample1/settings.py", line 17, in …
Gurjas Singh
  • 19
  • 1
  • 6
0
votes
1 answer

Django2.0 Collectstatic and Admin Issue

I'm deploying my Django web application into my new server in order to set production application. After 2 days in order to config Apache2 and wsgi, I'm getting a new issue according to static files and Administration static page. My Production…
Essex
  • 6,042
  • 11
  • 67
  • 139
0
votes
1 answer

manage.py collectstatic not working in macOS 10.13.1

I'm having issues while running collectstatic in macOS. The error is OSError: [Errno 45] Operation not supported: '/home/juan' ./manage.py collectstatic Copying…
user1532587
  • 993
  • 1
  • 14
  • 39
0
votes
1 answer

python manage.py collectstatic is loading the wrong (local) settings

I am using cookiecutter-django .env design to load different settings depending on environment. Running locally should use "local.py" settings and wunning in aws elatic beanstalk, it should load "dev.py". Both import from "common.py". Running the…
0
votes
1 answer

How to get collectstatic to collect the static files of an external App

I'm working on a project that requires an external fileupload package, which is a separate project. 'collectstatic' does not include the static files of that external package. Do I need to change the external package or can I use the settings.py of…
user42488
  • 1,140
  • 14
  • 26
0
votes
1 answer

module not detected django production

I'm trying to deploy my Django app onto a DigitalOcean VPS. I set everything up and was about to run python manage.py collectstatic when I hit this error: Traceback (most recent call last): File "manage.py", line 22, in
Brian Lee
  • 305
  • 4
  • 14