-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
43 lines (33 loc) · 1.34 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Django timezone-detect will grab the current timezone of the user viewing the site and store it in the session.
Authors:
Bryan Hurst (Newline Technical Innovations)
Includes:
jsTimezoneDetect script posted by pellepim (https://bitbucket.org/pellepim/jstimezonedetect)
How to Install:
-Copy "timezone-detect" application into your Django site, or put in your python "site-packages".
-Add "timezone-detect" to your INSTALLED_APPS:
INSTALLED_APPS = (
'timezone-detect',
)
-Update your urls.py file:
urlpatterns = patterns('',
url(r'^timezone-detect/', include('timezone-detect.urls')),
)
-Add the timezone_detect template tag to your site, probably in a base.html file:
{% load timezone_detect %}
{% timezone_detect %}
-Add TimezoneMiddleware to MIDDLEWARE_CLASSES:
MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'timezone-detect.middleware.TimezoneMiddleware',
)
In the Future:
-Use jQuery to post back to the set timezone view instead of XMLHttpRequest
-Get timezone to be set on first page view
-Will store timezone against user
-Allow users to modify and lock their timezone settings
-Create setup/easy-install script
Update:
-We added Redmine issue tracking
-GitHub Hook Plugins is now installed in Redmine