Opened 14 years ago

Closed 14 years ago

#14966 closed (invalid)

ValueError: Incorrect timezone setting: Amsterdam/Netherlands

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

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'

Change History (1)

comment:1 by rasca, 14 years ago

Resolution: invalid
Status: newclosed

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'

Note: See TracTickets for help on using tickets.
Back to Top