Created
September 11, 2018 02:21
-
-
Save kalda341/7e980837ca7a0de64c71810bf8dd380f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def url(self, *args, **kwargs): # pylint: disable=arguments-differ | |
| # Use CloudFront domain instead of S3 | |
| url = urlparse(super().url(*args, **kwargs)) | |
| url.netloc = settings.SLIDE_CONVERTED_CLOUDFRONT_DOMAIN | |
| return url.geturl() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment