Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed #21629 -- Added instructions for loading MySQL time zone defini…


Thanks Aymeric for the suggestion.
  • Loading branch information...
commit d8d83777ebbe15af7587a24698435555ba3bb842 1 parent 8779aa8
@timgraham timgraham authored
Showing with 17 additions and 0 deletions.
  1. +11 −0 docs/ref/databases.txt
  2. +6 −0 docs/topics/i18n/timezones.txt
11 docs/ref/databases.txt
@@ -305,6 +305,17 @@ The Django adapter is currently only available in the Dev branch.
.. _release branches:
+.. _mysql-time-zone-definitions:
+Time zone definitions
+If you plan on using Django's :doc:`timezone support </topics/i18n/timezones>`,
+use `mysql_tzinfo_to_sql`_ to load time zone tables into the MySQL database.
+This needs to be done just once for your MySQL server, not per database.
+.. _mysql_tzinfo_to_sql:
Creating your database
6 docs/topics/i18n/timezones.txt
@@ -649,6 +649,12 @@ Troubleshooting
>>>, 3, 3)
+4. **I get an error** "``Are time zone definitions for your database and pytz
+ installed?``" **pytz is installed, so I guess the problem is my database?**
+ If you are using MySQL, see the :ref:`mysql-time-zone-definitions` section
+ of the MySQL notes for instructions on loading time zone definitions.
Please sign in to comment.
Something went wrong with that request. Please try again.