Thomas Waldmann
f5c70b03b1
dnstools: use enhanced logger, gives remote addr and user agent automatically
2013-11-09 07:17:05 +01:00
Thomas Waldmann
a4a08075d4
remove misleading default of STATIC_ROOT
...
it is the destination directory of manage.py collectstatic action, NOT our main app's static dir
2013-11-08 04:11:14 +01:00
Thomas Waldmann
26fca4ffcc
try to read SECRET_KEY from environment (while allowing other methods for setting it later)
2013-11-08 04:01:18 +01:00
Thomas Waldmann
e924b054fe
fix the message tags (== css classes) so they are meaningful to bootstrap3
...
note: tags can have multiple classes inside, so better use full class names
2013-11-06 01:25:28 +01:00
Thomas Waldmann
51e5efbe8f
transform some views from function- to class-based
...
fixes some pep8 issues. use lowercase function name for the stuff we keep as function.
2013-11-05 00:24:02 +01:00
Thomas Waldmann
4509b0aa69
settings: more comments, reorder settings
2013-11-04 21:23:42 +01:00
Thomas Waldmann
9dcefda8d3
make home view customizable via includes
2013-11-03 22:57:37 +01:00
Thomas Waldmann
52c2916215
add docs about secure cookies
2013-11-03 10:19:05 +01:00
Thomas Waldmann
7a99935597
use json serializer for sessions, change timestamps' data type, more security docs
...
json serializer can't serialize datetime (but integers), but is more safe than the pickle serializer.
2013-11-03 09:52:11 +01:00
Thomas Waldmann
ebb7a6e1ee
new setting WE_HAVE_SSL to indicate whether the site also has https (not just http)
...
we will offer using the https site if we have ssl, otherwise we will just warn about insecure http usage.
2013-11-03 05:24:54 +01:00
Thomas Waldmann
2b0e70e59f
remove help view, move project info to docs, make about view use settings
...
help: there was only a link to the rtd documentation (now directly linked from a "Documentation" navbar entry)
and some duplicate router configuration that was also shown (even with the correct values) when adding a host.
the help page html was not valid due to the values inserted into the router configuration help.
help/documentation policy: add static help to the docs, add dynamic help directly at the places (in the views) where needed
2013-11-03 00:02:02 +01:00
Thomas Waldmann
029dc20be0
pep8 fixes
2013-11-02 10:02:51 +01:00
Thomas Waldmann
a91991bc5e
redirect to /account/profile when (de)associating accounts
2013-11-02 09:34:59 +01:00
Thomas Waldmann
25259dd353
add python-social-auth for disqus
2013-11-02 07:45:26 +01:00
Thomas Waldmann
972146ec87
add python-social-auth for amazon, bitbucket, dropbox, reddit, soundcloud, stackoverflow
2013-11-02 07:20:20 +01:00
Thomas Waldmann
49a466ef1e
fix some social-auth urls, remove twitter auth
...
twitter does not support ipv6 and our production server VM
has only v6. :-(
2013-11-02 06:14:51 +01:00
Thomas Waldmann
f357997f07
add python-social-auth for twitter, github, google
...
still incomplete, only login view
2013-11-02 05:15:06 +01:00
Thomas Waldmann
a15804429a
add sample email sender setting - needs to be valid so user registration activation mails get through
2013-11-02 02:03:37 +01:00
Thomas Waldmann
60f03b0472
fix typo in CSRF setting, fix pep8 issues
2013-11-01 04:22:53 +01:00
Thomas Waldmann
2529263a48
remove stale IPs from session, so we don't show outdated information
...
could happen if there once was a IPv6 connection, but now is not any more.
it now kills infos older than 3 minutes from the session.
it also shows the age of the infos now on the hosts overview view (but not on home view due to cosmetic reasons).
optimization: only request the fake images for ipv4/v6 detection if we don't have a fresh IP already.
added example settings for using detectip on (ip6-)localhost
2013-11-01 04:03:34 +01:00
Thomas Waldmann
22028c24b4
logging: make sure ERRORs also go to stderr for the request logging handler
...
otherwise tracebacks just vanish (if you do not see them in the browser or in your email)
2013-11-01 02:14:25 +01:00
Thomas Waldmann
823d21dcef
add more cookie settings (for now with defaults)
2013-11-01 01:36:09 +01:00
Thomas Waldmann
3a919c242d
more helpful CSRF failure view, add CSRF settings to settings.py
...
without this, users get a rather unhelpful/misleading response after clicking "Login" if they don't have cookies enabled.
2013-11-01 01:05:12 +01:00
Thomas Waldmann
252a7e5d0b
fix some stuff the pycharm code checker found
...
it also thought the db param of init_db is not needed, but it is, added a comment there
2013-10-27 13:34:56 +01:00
Thomas Waldmann
724f35225e
move test settings to test_settings.py, add FIXME for resolver search list
...
make SECRET_KEY obviously non-secret and non-random + document it should be secret/random
2013-10-27 07:20:43 +01:00
Thomas Waldmann
49693121ea
use zones/nameserver IPs/update keys from DB, logging (thanks to asmaps)
...
remove unneeded stuff from settings
(we still need some in conftest.py for the tests, though)
init DB for tests via conftest.py
more update algorithm choices
give origin zone (if we already know it) to dnstools functions
new views: DomainOverview, DeleteDomain
unify deletion templates using delete_object.html
add django-extensions
2013-10-18 15:30:17 -07:00
Bastian Blank
d2eab62ac4
Move all stuff into own top-level package
2013-10-17 23:59:07 +02:00