Hidden Z
6e3862d7ab
Convert tabs to spaces
9 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
f53aa53a6b
jumper: add stub index
14 years ago
Hidden Z
83928b6dad
jump/views.py: change behavior when trying to access an inactive hostname
...
Instead of displaying "host unknown" page, we're displaying a search
results page when hostname known to us bot not activated and don't
published in exported addressbook.
14 years ago
Hidden Z
7ce4500b9c
Fix "settings" import
14 years ago
Hidden Z
6fb4d60ce6
Rename web -> pyi2phosts
14 years ago
Hidden Z
f63768095d
Revert "web: avoid importing or accessing modules using "web.*""
...
This reverts commit d50bb7a66f
.
Conflicts:
web/settings.py
Do imports from pyi2phosts.*
14 years ago
Hidden Z
d50bb7a66f
web: avoid importing or accessing modules using "web.*"
14 years ago
Hidden Z
349cb809a2
web/jump/views.py: fix original GET params order
...
Before this requesting /jump/example.i2p/foo?a=b&c=d produced redirect
as http://example.i2p/?i2paddresshelper=key/foo?a=b&c=d
Now it http://example.i2p/foo?a=b&c=d&i2paddresshelper=key
14 years ago
Hidden Z
8bdae565a5
web/jump: use templates for "hostname unknown/error" errors
...
Drop associated separate views and render templates right in jumper()
14 years ago
Hidden Z
7b5af7124a
web/jump/views.py: render jump.html template when redirecting
...
Following "Jump service implementation hints" by zzz:
http://zzz.i2p/topics/740
14 years ago
Hidden Z
e0b9ad980c
web/jump/views.py: preserve GET variables when redirecting
14 years ago
Hidden Z
3230f07160
web/jump/views.py: fix redirects
...
Accessing invalid or unknown hostnames always caused a redirect loop.
14 years ago
Hidden Z
d7dce40818
Add jumpservice implementation
14 years ago