On Sun, Mar 11, 2012 at 11:51 PM, Kevin Anthony
<kevin.s.anth...@gmail.com> wrote:
> i'm having a problem with south, i'm trying to migrate to USE_TZ
> However i get this error:
> (I'm using 1.4c1 and south 0.7.3)
>
> ./manage.py schemamigration main --auto
> Traceback (most recent call last):
>   File "./manage.py", line 9, in <module>
>     execute_from_command_line(sys.argv)
>   File
> "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py",
> line 443, in execute_from_command_line
>     utility.execute()
>   File
> "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py",
> line 382, in execute
>     self.fetch_command(subcommand).run_from_argv(self.argv)
>   File
> "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py",
> line 196, in run_from_argv
>     self.execute(*args, **options.__dict__)
>   File
> "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py",
> line 232, in execute
>     output = self.handle(*args, **options)
>   File
> "/usr/local/lib/python2.6/dist-packages/south/management/commands/schemamigration.py",
> line 97, in handle
>     old_orm = last_migration.orm(),
>   File "/usr/local/lib/python2.6/dist-packages/south/utils.py", line 62, in
> method
>     value = function(self)
>   File "/usr/local/lib/python2.6/dist-packages/south/migration/base.py",
> line 422, in orm
>     return FakeORM(self.migration_class(), self.app_label())
>   File "/usr/local/lib/python2.6/dist-packages/south/orm.py", line 46, in
> FakeORM
>     _orm_cache[args] = _FakeORM(*args)
>   File "/usr/local/lib/python2.6/dist-packages/south/orm.py", line 125, in
> __init__
>     self.models[name] = self.make_model(app_label, model_name, data)
>   File "/usr/local/lib/python2.6/dist-packages/south/orm.py", line 318, in
> make_model
>     field = self.eval_in_context(code, app, extra_imports)
>   File "/usr/local/lib/python2.6/dist-packages/south/orm.py", line 236, in
> eval_in_context
>     return eval(code, globals(), fake_locals)
>   File "<string>", line 1
>     SouthFieldClass(default=datetime.datetime(2012, 3, 12, 3, 41, 14,
> 974152, tzinfo=<UTC>))
>
>                                                ^
> SyntaxError: invalid syntax
>

According to the docs tzinfo doesn't look like it could have a value of <UTC>

http://docs.python.org/library/datetime.html#available-types



-- 
Joel Goldstick

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to