Comments (11)
@cdriehuys you need to define your own storage class and define the base_url for your s3 configuration. Something like....
In your yourapp/settings.py set your static files storage:
STATICFILES_STORAGE = 'yourapp.storage.YourStorage'
Then define it in yourapp/storage.py
from storages.backends.s3boto import S3BotoStorage
class YourStorage(S3BotoStorage):
base_url = 'yourbucket.s3.amazonaws.com'
from django-sass-processor.
@cdriehuys Please provide a pull request fixing this. Otherwise, please contact me on my private email address.
from django-sass-processor.
Sorry for the delayed response. Unfortunately I don't have the time to make a pull request for this currently, but I appreciate you taking the time to look at this issue.
from django-sass-processor.
@cdriehuys If you can fund this feature, I can do it for you. Currently I have no plans to use AWS with S3, so it's not on my personal "to do" list.
from django-sass-processor.
@dgourley I haven't been aware of this. Could you please add this to the README and open a pull request.
from django-sass-processor.
@jrief will do. I just ran into this issue last night and found this as a workaround. Seems S3BotoStorage doesn't have base_url defined... easy enough to add the configuration. If you are using s3 you probably are defining a storage anyway to enable caching, manifest files, etc.
from django-sass-processor.
@dgourley Thanks for the workaround. I avoided the issue by switching to a different build process, but I'll definitely use that solution on future projects.
from django-sass-processor.
@cdriehuys Can this issue be closed then?
from django-sass-processor.
Yes. I think the provided solution is easy enough to follow that this doesn't need to be fixed in the package itself.
from django-sass-processor.
Actually the issue is: django-sass-processor
is trying to read the base_url
of each django apps storage classes.
But base_url
is an attribute of FileStorage
, so django-sass-processor
assumes we must use a FileStorage
and block us from using some other storage classes like one provided by django-storages
which override Storage
class (which is FileStorage
superclass)
I really think a quick fix could help a lot of people. I'll try to take some time during this week to push a pull request. For the moment, i'll take the workaround above. Thank you!
from django-sass-processor.
@AlBlanc if you can fix this, it would be great. Currently I have no use-case for this, hence that's not on my priority list.
from django-sass-processor.
Related Issues (20)
- Auto-compile stops for unknown reason HOT 2
- FILE_CHARSET is removed in Django 3.1 HOT 3
- LibSass is deprecated HOT 3
- Remove note about Django 3.0 compatibility from the readme HOT 1
- Q: Compile to media storage instead of static? HOT 11
- sass_inline HOT 7
- Invalid setting 'base_url' for S3StaticStorage (from django-storages) HOT 4
- import statement in SCSS file not working with v1.0.1 HOT 1
- Compilescss failed with a lot of "non sense" errors HOT 8
- CSS not updating when DEBUG=True until I erase existing css files in Docker container HOT 1
- sequence item 1: expected str instance, WindowsPath found HOT 4
- Regression: Use of custom storages broken HOT 11
- Why does compilescss create two files HOT 1
- TypeError when using Google backend from django-storages HOT 1
- Web Page Rendering After Installation & Installation is Messed Up HOT 2
- Import-only files are not monitored for changes HOT 7
- Deprecation of STATICFILES_STORAGE in django 4.2 HOT 1
- Third party documentation no longer available HOT 7
- Error sometimes occurs when trying to compile scss
- Broken in Django 5.1 alpha due to get_storage_class HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-sass-processor.