Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% load tz %}{% load url from future %}
- <form action="/timezone/" method="POST">
- {% csrf_token %}
- <label for="timezone">Time zone:</label>
- <select name="timezone">
- {% for tz in timezones %}
- <option value="{{ tz }}"{% if tz == TIME_ZONE %} selected="selected"{% endif %}>{{ tz }}</option>
- {% endfor %}
- </select>
- <input type="submit" value="Set" />
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement