config mysql and template_dir in setting.py