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.

Reply via email to