Hidden Z
34d3243fcc
Use RequestContext in all render_to_response()
...
We have {% csrf_token %} in a templates, but the context in
render_to_response() does not provide the value.
https://docs.djangoproject.com/en/1.5/ref/contrib/csrf/
2013-09-27 18:19:49 +00:00
Hidden Z
43bcfec7ed
Fix settings import
...
According to django 1.5 documentation, settings should be imported as
>>> from django.conf import settings
2013-09-27 18:19:49 +00:00
Hidden Z
5a61315d67
pyi2phosts/postkey/views.py: add i18n for SubdomainVerifyForm
2011-02-19 15:30:34 +00:00
Hidden Z
65759c762f
pyi2phosts/postkey/views.py: add i18n
2011-02-19 14:58:51 +00:00
Hidden Z
0007450844
Implement 2nd-level domain verification when adding a subdomain
...
If user wants to register a subdomain, he must prove he is owner of
2nd-level domain. He must create a file with random name generated by us
in webserver's document root in 2nd-level domain. Then we trying to
fetch this file. If it success, registration gets accepted.
2011-01-17 18:09:53 +00:00
Hidden Z
764e2e3f33
pyi2phosts/postkey/views.py: redefine is_valid() and log validation errors
2010-12-30 20:06:40 +00:00
Hidden Z
1a734f5af5
postkey/views.py: fill date_added field with UTC date
2010-11-15 19:02:56 +00:00
Hidden Z
a0bba86169
pyi2phosts/postkey/views.py: remove excessive import
2010-11-07 20:58:14 +00:00
Hidden Z
16c142a5c1
pyi2phosts/postkey/views.py: check for hostname presence in success()
2010-11-05 06:32:25 +00:00
Hidden Z
37994951c1
pyi2phosts/postkey/views.py: use redirect() instead of HttpResponseRedirect()
2010-11-05 06:31:47 +00:00
Hidden Z
dc02bc951c
Revert "web/postkey/views.py: remove unneeded import"
...
This reverts commit 01964a33f8
.
Whoops, this import is not unneeded!
2010-11-04 21:49:38 +00:00
Hidden Z
7ce4500b9c
Fix "settings" import
2010-11-04 12:43:53 +00:00
Hidden Z
6fb4d60ce6
Rename web -> pyi2phosts
2010-11-04 12:41:42 +00:00