Hidden Z
93fa07301c
Make i2phostAdminForm compatible with django 1.8
...
django.core.exceptions.ImproperlyConfigured: Creating a ModelForm
without either the 'fields' attribute or the 'exclude' attribute is
prohibited; form i2phostAdminForm needs updating.
9 years ago
Hidden Z
6045b31350
Fix bug in subdomain verification
...
When there is verification error and "reason" is present, no reply was
returned to client causing django exception:
ValueError: The view pyi2phosts.postkey.views.subdomain didn't return an
HttpResponse object.
10 years ago
Hidden Z
6ac3284396
Fix undefined variable
10 years ago
Hidden Z
154eb7f7c2
Replace deprecated imports with actual
...
django.conf.urls.defaults is deprecated since django 1.5
old: from django.conf.urls.defaults import *
new: from django.conf.urls import *
11 years ago
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/
11 years ago
Hidden Z
43bcfec7ed
Fix settings import
...
According to django 1.5 documentation, settings should be imported as
>>> from django.conf import settings
11 years ago
Hidden Z
5a61315d67
pyi2phosts/postkey/views.py: add i18n for SubdomainVerifyForm
14 years ago
Hidden Z
65759c762f
pyi2phosts/postkey/views.py: add i18n
14 years ago
Hidden Z
f81e9664f3
pyi2phosts/postkey/models.py: add i18n
14 years ago
Hidden Z
49e084189d
pyi2phosts/postkey/admin.py: add admin action "Approve selected"
14 years ago
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.
14 years ago
Hidden Z
764e2e3f33
pyi2phosts/postkey/views.py: redefine is_valid() and log validation errors
14 years ago
Hidden Z
6321482047
postkey/admin.py: search by base64 hash also
14 years ago
Hidden Z
1a734f5af5
postkey/views.py: fill date_added field with UTC date
14 years ago
Hidden Z
fa93084df3
postkey/models.py: do not fill date_added automatically
...
Django uses localtime when using auto_add_now=True, but we wants an UTC
time. So, we will fill this field manually.
14 years ago
Hidden Z
da92902739
postkey/admin.py: don't require unique hash when changing host
...
This check makes editing completely impossible.
14 years ago
Hidden Z
a0bba86169
pyi2phosts/postkey/views.py: remove excessive import
14 years ago
Hidden Z
08fa9c1ae7
pyi2phosts/postkey/admin.py: add name/key validation
14 years ago
Hidden Z
5308d0b9f5
Add cool pagination templatetag
...
http://www.tummy.com/Community/Articles/django-pagination/
14 years ago
Hidden Z
6200a466ff
pyi2phosts/postkey/admin.py: order by descending
14 years ago
Hidden Z
b268a3157d
pyi2phosts/postkey/admin.py: provide b32-link for preview
14 years ago
Hidden Z
16c142a5c1
pyi2phosts/postkey/views.py: check for hostname presence in success()
14 years ago
Hidden Z
37994951c1
pyi2phosts/postkey/views.py: use redirect() instead of HttpResponseRedirect()
14 years ago
Hidden Z
dc02bc951c
Revert "web/postkey/views.py: remove unneeded import"
...
This reverts commit 01964a33f8
.
Whoops, this import is not unneeded!
14 years ago
Hidden Z
f1f54e61ed
Fix imports in admin.py
14 years ago
Hidden Z
7ce4500b9c
Fix "settings" import
14 years ago
Hidden Z
6fb4d60ce6
Rename web -> pyi2phosts
14 years ago