EarthSystemCoG / COG

COG source code
BSD 3-Clause "New" or "Revised" License
8 stars 16 forks source link

Print out startup errors #1353

Closed LucaCinquini closed 7 years ago

LucaCinquini commented 7 years ago

Who: Alan

Incidentally, the traceback in the error log accompanying the above error message was a bit cryptic ("populate() isn't reentrant"). The suggested extra code for wsgi.py shown in the first answer at the stackoverflow URL below proved to be helpful (exception handling for if get_wsgi_application() fails), and might be worth adding into the standard wsgi.py in the CoG installation for sake of more helpful messages in case of problems. http://stackoverflow.com/questions/30954398/django-populate-isnt-reentrant

LucaCinquini commented 7 years ago

The code for catching and displaying the error has been inserted, thanks to Alan for suggesting the improvement.