I'm curious, why would you put your static web app files on Github Pages? This is not just inconvenient (due to the way it works, lack of cache control etc), but is also quite a blatant abuse of their service.
If you're looking for a CDN, why not just put Cloudflare in front of your sites? Cal On Thu, Jul 17, 2014 at 4:09 PM, <cmawebs...@gmail.com> wrote: > I had an idea today that I wanted to share, if anyone finds it helpful or > has feedback. > > ./manage.py collectstatic > cd $STATIC_ROOT > rm -rf .git/ # optionally don't keep history > git init . > git add . > git commit -m"static files" > git push -f g...@github.com:username/yourrepo master:gh-pages > > then set STATIC_URL = '//username.github.io/yourrepo/' > > It works just fine, even on private repositories. > > -- > 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+unsubscr...@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. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/d1abc065-3658-4528-a3da-b835bfc8a440%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- 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+unsubscr...@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. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHKQagFyic1-eLj_pHLtM4vcL9VgGP%3DG38qLT_BytBdPFJqW5Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.