wardi / django-filebrowser-no-grappelli

django-filebrowser for default Django admin site. Based on https://github.com/sehmaschine/django-filebrowser v3.1 (before it was in git) Consider using https://github.com/smacker/django-filebrowser-no-grappelli which is based on a newer version
Other
150 stars 114 forks source link

Don't work in Django 1.5. #49

Open Nule opened 11 years ago

Nule commented 11 years ago

New sintax of {%url%} tag and adminmedia not supported anymore.

ralfzen commented 11 years ago

for that you can do:

gsed -i -r -e 's/% url ([^%]+) %/% url "\1" %/g' *.html
ralfzen commented 11 years ago

but that does only half the trick. then do:

gsed -i -r -e 's/% url ([^%]+) %/% url "\1" %/g' include/*.html
gsed -i -r -e 's/adminmedia/admin_static/g' *.html
gsed -i -r -e 's/adminmedia/admin_static/g' include/*.html
gsed -i -r -e 's/custom_admin_media_prefix %\}([a-z\/\.]+)/static "admin\/\1" %\}/g' *.html

done.