14π
After continuing to search for django and pytz, I found the 1.6 Django release notes, which mention that you must now install pytz to work with Sqlite3 if USE_TZ=True in your settings.py.
I donβt know what effect USE_TZ has on your application, but setting that value to False allows me to proceed in the tutorial. I would hope that the Django tutorial is updated to reflect this change.
17π
I was also getting the same error.
I installed pytz
$ pip install pytz
and then i restarted the server. The exception is no more now.
3π
The solution is very simple..
pip install pytz
and then stop and restart your server
2π
I had same error, then I installed pytz with pip install pytz
and again had same error until I restarted WSGI instance. (eg. touching wsig.py (touch wsgi.py
) or restarting apache (apache2ctl restart
)
- Apache2 and context path for virtual host with Django and AngularJS
- Django select_related in reverse
- Combining two forms in one Django view
- ValueError: "needs to have a value for field "id" before this many-to-many relationship can be used"
- Django β How to get the max_length of a field