A server error occurred. Please contact the administrator.

preface
Regarding the site management of Django, the login site admin encountered A server error “A Server error occurred. Please contact the Administrator.”
why
Localization, letter case didn’t pay attention to, the right is LANGUAGE_CODE = 'useful - Hans and TIME_ZONE =' Asia/Shanghai , then analysis is setting up the contents of the file is changed after cannot be interpreter identification, so later met the same problem can according to this train of thought analysis (then if new create a project to try again, or if the original error, before the project could be open). Without the model migration, the project's data tables will not be generated, and the login site is a data table operation. Without the migration, how can you log into the site if there are no tables?

Read More: