Code

Opened 3 years ago

Closed 3 years ago

#14966 closed (invalid)

ValueError: Incorrect timezone setting: Amsterdam/Netherlands

Reported by: duikboot Owned by: nobody
Component: Core (Management commands) Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

After doing a buildout which fetched the svn version django and running ./bin/django syncdb. I got the following error:

./bin/django syncdb
Traceback (most recent call last):

File "./bin/django", line 24, in <module>

djangorecipe.manage.main('LoopProject.development')

File "/home/arjend/scripts/own/Karin_django/eggs/djangorecipe-0.20-py2.6.egg/djangorecipe/manage.py", line 16, in main

management.execute_manager(mod)

File "/home/arjend/scripts/own/Karin_django/parts/django/django/core/management/init.py", line 438, in execute_manager

utility.execute()

File "/home/arjend/scripts/own/Karin_django/parts/django/django/core/management/init.py", line 379, in execute

self.fetch_command(subcommand).run_from_argv(self.argv)

File "/home/arjend/scripts/own/Karin_django/parts/django/django/core/management/init.py", line 252, in fetch_command

app_name = get_commands()[subcommand]

File "/home/arjend/scripts/own/Karin_django/parts/django/django/core/management/init.py", line 101, in get_commands

apps = settings.INSTALLED_APPS

File "/home/arjend/scripts/own/Karin_django/parts/django/django/utils/functional.py", line 276, in getattr

self._setup()

File "/home/arjend/scripts/own/Karin_django/parts/django/django/conf/init.py", line 41, in _setup

self._wrapped = Settings(settings_module)

File "/home/arjend/scripts/own/Karin_django/parts/django/django/conf/init.py", line 112, in init

raise ValueError("Incorrect timezone setting: %s" % self.TIME_ZONE)

ValueError: Incorrect timezone setting: Amsterdam/Netherlands

In settings.py:
TIME_ZONE = 'Amsterdam/Netherlands'

Attachments (0)

Change History (1)

comment:1 Changed 3 years ago by rasca

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

That's because there's no 'Amsterdam/Netherlands' time zone..

Theres a brief explanation in the settings.py template, that tells you to check http://en.wikipedia.org/wiki/List_of_tz_zones_by_name for the timezones.

You should be using 'Europe/Amsterdam'

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.