fixed core/views.py 500 errors
add ENVIRONMENT setting
fix for runserver command