1. Markus Zapke-Gründemann
  2. django-introduction

Commits

Markus Zapke-Gründemann  committed e025f09

Added .htaccess file with DirectoryIndex directive.

  • Participants
  • Parent commits aba469e
  • Branches default

Comments (0)

Files changed (4)

File Makefile

View file
 	@echo "  static   create static files"
 
 clean:
-	rm -rf $(STATICDIR)/*
+	rm -rf $(STATICDIR)
 
 static:
 	mkdir -p $(STATICDIR)/reveal.js
 	cp -R css img js index.*.html AUTHORS LICENSE README.rst static
+	cp _htaccess static/.htaccess
 	find ./reveal.js/* -maxdepth 1 ! -name ".*" -exec cp -R {} $(STATICDIR)/reveal.js \;
 	@echo
 	@echo "Created static files in directory '$(STATICDIR)'."

File README.rst

View file
 
 You can export it as PDF by using Chrome's print function.
 
-A demo is available at http://django-introduction.keimlink.de/index.de.html
+A demo is available at http://django-introduction.keimlink.de/
 
 .. _reveal.js: https://github.com/hakimel/reveal.js/
 .. _Raphaël: http://raphaeljs.com/

File _htaccess

View file
+DirectoryIndex index.html index.de.html

File fabfile.py

View file
         run('rm -rf %s' % remotepath)
     run('mkdir %s' % remotepath)
     put('static/*', remotepath)
+    put('static/.htaccess', remotepath)
     msg = 'Successfully deployed static files '
     msg += 'to %(host_string)s:%(remotepath)s.' % env
     fastprint(msg)