1
0
mirror of https://github.com/r4sas/py-i2phosts synced 2025-01-22 20:44:55 +00:00

28 Commits

Author SHA1 Message Date
Hidden Z
6e3862d7ab Convert tabs to spaces 2015-10-27 19:41:44 +00:00
Hidden Z
3880aa9f0f Implement basic api export of all active hosts
Done by zzz request. Export all seen hosts in json format { b32: last_seen }.
2013-10-09 15:43:38 +00:00
Hidden Z
33216703d1 Create separate page for contact information 2013-10-08 17:15:15 +00:00
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 *
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
76ee7dbd0e Migrate all function-based generic views to a class-based views 2011-12-23 18:56:47 +00:00
Hidden Z
a15bfb9cfa Replace direct_to_template generic view with class-based TemplateView
This is done as a part of migration to django 1.3. See
https://docs.djangoproject.com/en/1.3/topics/generic-views-migration/
for additional info.
2011-12-20 19:17:33 +00:00
Hidden Z
918570cf9e Enable i18n 2011-02-18 19:44:56 +00:00
Hidden Z
12f33be276 Add names for rss urls 2011-02-17 17:29:52 +00:00
Hidden Z
2582283863 pyi2phosts/urls.py: fix including of /latest/ 2011-02-16 19:00:28 +00:00
Hidden Z
dc919135cc Implement RSS export for all active hosts
KwukDuck asked me for RSS for using it with LiveBookmarks firefox
plugin in his portable I2P package.
2011-02-15 19:57:00 +00:00
Hidden Z
d7d032d940 Move latest generic view to separate view
This should fix problem with datetime.datetime.utcnow() evaluation
caching in queryset.
2010-11-26 19:24:02 +00:00
Hidden Z
efa9397a9c Revert "pyi2phosts/urls.py: use separate functions to get dates"
This reverts commit 3c193bcdc3b7cfbf5f4b855d7cdd9931ef565ba1.

This patch doesn't solves the problem. We need django 1.3 or workaround
like described here:
http://pascut.com/2008/08/16/django-generic-views-cache-behavior/
2010-11-26 19:06:40 +00:00
Hidden Z
3c193bcdc3 pyi2phosts/urls.py: use separate functions to get dates
We need to get current date and start date every time when /latest/
requested. Before this dates were evaluated only at webserver startup so
newly added and activated hosts weren't can be appeared in /latest/.
2010-11-20 17:49:14 +00:00
Hidden Z
48ce4ba473 Move {days,hosts}_count from urls to settings 2010-11-20 13:04:37 +00:00
Hidden Z
0117ec7014 Add initial search app 2010-11-12 19:53:31 +00:00
Hidden Z
e4f7bdd104 pyi2phosts/urls.py: add FIXME note 2010-11-12 16:14:15 +00:00
Hidden Z
e346df0481 pyi2phosts/urls.py: add generic view for browsing latest hosts 2010-11-11 19:26:26 +00:00
Hidden Z
0806c2ffb0 pyi2phosts/urls.py: pass title to "browse" page 2010-11-07 07:58:25 +00:00
Hidden Z
92098bf0c7 Enable pagination in hosts browsing 2010-11-06 21:14:39 +00:00
Hidden Z
ad77aebe4f pyi2phosts/urls.py: add ordering for hosts browsing 2010-11-06 19:28:19 +00:00
Hidden Z
e3025b02e9 webinterface: add hosts browsing page 2010-11-06 19:11:08 +00:00
Hidden Z
30a856fdf9 pyi2phosts/urls.py: use list_detail.object_list for /faq/ url
It is more suitable for this case.
2010-11-06 19:02:22 +00:00
Hidden Z
82b77b8b51 pyi2phosts/urls.py: use callable to get external sources
Needed for prevent queryset caching.
http://docs.djangoproject.com/en/1.2/topics/generic-views/#adding-extra-context
2010-11-06 16:06:23 +00:00
Hidden Z
bd7417f900 Implement index view throught django generic views 2010-11-05 21:21:16 +00:00
Hidden Z
12bedec93e pyi2phosts/urls.py: add faq pattern using django generic views 2010-11-05 21:13:21 +00:00
Hidden Z
2e5ba8d88d pyi2phosts/urls.py: allow django to serve static files when debug enabled 2010-11-05 11:57:47 +00:00
Hidden Z
6fb4d60ce6 Rename web -> pyi2phosts 2010-11-04 12:41:42 +00:00