fix some undefined variables causing problems with editing users
change from using ADMIN_MEDIA_PREFIX to STATIC_URL for newer version of Django
Make messages work again for the admin section