fix endblock tag
fix LOCALE_PATHS, MEDIA_ROOT and TEMPLATE_DIRS

configs