Import Error: cannot import name timezone

864 views
Skip to first unread message

Patrick Larmann

unread,
Aug 24, 2013, 5:28:00 PM8/24/13
to django...@googlegroups.com
He Guys,
I am currently completing part 1 of the django tutorial and having trouble with getting on of the modules correctly set up.
I attached my output and my moduls.py file.
models.py
python output.png

Robin Lery

unread,
Aug 24, 2013, 5:45:47 PM8/24/13
to django...@googlegroups.com
It should be
'from django.utils import timezone'
and not 
'from django.db.utils import timezone'


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.

Patrick Larmann

unread,
Aug 24, 2013, 9:49:12 PM8/24/13
to django...@googlegroups.com
Thanks fixed it?

Robin Lery

unread,
Aug 25, 2013, 4:53:33 AM8/25/13
to django...@googlegroups.com
Good to hear that!
Reply all
Reply to author
Forward
0 new messages