dcramer / django-uuidfield

A UUIDField for Django
BSD 3-Clause "New" or "Revised" License
262 stars 115 forks source link

Encounting syntax error when running Django 1.6 on Python 3.3 #24

Closed jeffself closed 9 years ago

jeffself commented 10 years ago

I set up a test app running Django 1.6. I created a class in models.py containing an attribute having UUIDField. Works fine. But when I run this with Python 3.3, I get the following error:

Validating models...

Unhandled exception in thread started by <function check_errors..wrapper at 0x10f9063b0> ...

from uuidfield import UUIDField File "/Users/jeff/Env/django16/lib/python3.3/site-packages/uuidfield/init.py", line 4 except Exception, e: ^ SyntaxError: invalid syntax

jleclanche commented 9 years ago

This was fixed by https://github.com/dcramer/django-uuidfield/commit/3f24b1d87a247904a849fc97e81ea9123fce2da9