Miserlou / django-easy-timezones

Easy timezones for Django based on GeoIP
http://gun.io/blog/django-easy-timezones/
Apache License 2.0
203 stars 44 forks source link

Why only process middleware? #16

Open studentIvan opened 8 years ago

studentIvan commented 8 years ago

We need more functions, for using it in code without django templates

Miserlou commented 8 years ago

Sure, example?

studentIvan commented 8 years ago

How I can detect a user timezone from my application code?

rlburb commented 8 years ago

The middleware sets a session variable so you can use request.session['django_timezone']