A question about using django compressor with CDN
Hello,
I have a question about the django_compressor[1] app. Sorry if
this violates the rules of the mailing list but after asking the
question on github issues section and not receiving any reply, I
think may be someone who is using django_compressor can help me
here.
I am trying out django_compressor to be used with one of our
django apps in production. We serve static files from a CDN. My
question is, if I compress the files offline and then upload them
to the CDN, the paths in manifest.json will have the STATIC_URL
of my local development settings as the prefix whereas it should
be the CDN url. How to set the base path in manifest file to CDN
path?
One way I can think of is, everytime after running the compress
command, generate another manifest.json file for production from
the original one using sed. Is there a better way or a better
workflow that I am missing?
Would appreciate any help. Thanks.
Regards,
Vineet
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home