pgweb.git
12 years agoUpdate community authentication to pass an arbitrary datablock instead of url
Magnus Hagander [Thu, 20 Jun 2013 13:16:47 +0000 (15:16 +0200)]
Update community authentication to pass an arbitrary datablock instead of url

This makes it possible to pass URLs that will fail when they end up being double
escaped in some cases, since they contain non-url-safe characters. Instead, they'd
be base64-encoded, and thus safe.

Also update the django community auth provider to do just this, including encrypting
the data with the site secret key to make sure it can't be changed/injected by
tricking the user to go directly to the wrong URL.

12 years agoFix creation of new objects with notifications that have ManyToMany relationships
Magnus Hagander [Thu, 20 Jun 2013 10:29:27 +0000 (12:29 +0200)]
Fix creation of new objects with notifications that have ManyToMany relationships

This broke in django 1.4 since it fires based on the contents of an error message,
and the message changed. Most visible due to the fact that it completely broke
creation of new organsation objects.

12 years agoRevert to SHA1 hashing for stored passwords
Magnus Hagander [Thu, 20 Jun 2013 09:40:13 +0000 (11:40 +0200)]
Revert to SHA1 hashing for stored passwords

This is required for the old style community auth system that is still
in use by the commitfest app. Once that has been retired or upgraded,
this patch should be reverted.

Existing passwords are automatically converted once the user logs in to
the main website once.

12 years agoUpdate for new version of feedparser library
Magnus Hagander [Sun, 16 Jun 2013 19:54:09 +0000 (21:54 +0200)]
Update for new version of feedparser library

12 years agoExclude the ftp info upload page from CSRF checks
Magnus Hagander [Sun, 16 Jun 2013 16:32:06 +0000 (18:32 +0200)]
Exclude the ftp info upload page from CSRF checks

This is a pure PUT from a trusted IP, so it fails with 403 with the
CSRF middleware.

12 years agoRemove safe tag for markdown
Magnus Hagander [Sun, 16 Jun 2013 15:05:16 +0000 (17:05 +0200)]
Remove safe tag for markdown

Broken in newer versions of django, and since all our content is moderated anyway,
it isn't strictly necessariy for us anyway.

12 years agoUpdate docs
Magnus Hagander [Sat, 25 May 2013 18:34:29 +0000 (14:34 -0400)]
Update docs

12 years agoAdd a pip requirements file for virtualenv deployments
Magnus Hagander [Sat, 25 May 2013 18:32:53 +0000 (14:32 -0400)]
Add a pip requirements file for virtualenv deployments

12 years agoFix parameters to inherited change_view function
Magnus Hagander [Sat, 25 May 2013 18:17:22 +0000 (14:17 -0400)]
Fix parameters to inherited change_view function

Must be the same as in in the inherited-from class, or we ended up
passing a python dict as a string, and render the contents of it as
the "action" attribute on the form.

12 years agoSync up the admin index template with the one from django 1.4
Magnus Hagander [Sat, 25 May 2013 18:17:09 +0000 (14:17 -0400)]
Sync up the admin index template with the one from django 1.4

12 years agoUpdate contexts and processors for django 1.4
Magnus Hagander [Sat, 25 May 2013 18:16:38 +0000 (14:16 -0400)]
Update contexts and processors for django 1.4

Some requirements from the admin interface are also mandatory now,
so include those.

12 years agoSwitch to using staticfiles app for serving, well, static files
Magnus Hagander [Sat, 25 May 2013 18:16:07 +0000 (14:16 -0400)]
Switch to using staticfiles app for serving, well, static files

This is required by the new admin interface

12 years agoUpdate db settings for new database config format
Magnus Hagander [Sat, 25 May 2013 18:11:55 +0000 (14:11 -0400)]
Update db settings for new database config format

12 years agoSwitch to using the new feeds framework
Magnus Hagander [Sat, 25 May 2013 18:10:39 +0000 (14:10 -0400)]
Switch to using the new feeds framework

12 years agoRemove mention of news server, since it doesn't exist anymore
Magnus Hagander [Sat, 15 Jun 2013 09:20:17 +0000 (11:20 +0200)]
Remove mention of news server, since it doesn't exist anymore

12 years agoDon't crash when valid enddate and invalid startdate is entered for event
Magnus Hagander [Sun, 9 Jun 2013 18:22:31 +0000 (20:22 +0200)]
Don't crash when valid enddate and invalid startdate is entered for event

When startdate is cleaned and invalid it's removed from cleaned_data, so
we cannot test it in clean_enddate.

12 years agoAdd Homebrew to the Mac OS X download page.
Peter Eisentraut [Wed, 5 Jun 2013 07:19:10 +0000 (08:19 +0100)]
Add Homebrew to the Mac OS X download page.

12 years agofix a minor typo
Stefan Kaltenbrunner [Sun, 26 May 2013 23:59:03 +0000 (19:59 -0400)]
fix a minor typo

12 years agochange example rewrite rules to something that also catches the "nocache"
Stefan Kaltenbrunner [Sun, 26 May 2013 23:58:09 +0000 (19:58 -0400)]
change example rewrite rules to something that also catches the "nocache"
versions of the mw pages

12 years agoremove the code to add default user_options for the upcoming MW 1.19 upgrade
Stefan Kaltenbrunner [Sun, 26 May 2013 17:31:00 +0000 (13:31 -0400)]
remove the code to add default user_options for the upcoming MW 1.19 upgrade
user preferences in MW pos 1.18 got moved to a seperate table and only stuff
that is _NOT_ default should be stored there. Despite what the documentation
says actually having data left in user_options is harmful and will break
random functionality like preference handling

12 years agoadd 9.3 to the feature matrix so that thom can start updating it
Stefan Kaltenbrunner [Sun, 26 May 2013 16:34:47 +0000 (12:34 -0400)]
add 9.3 to the feature matrix so that thom can start updating it

12 years agoPrevent event swith enddate before startdate
Magnus Hagander [Tue, 21 May 2013 18:07:01 +0000 (14:07 -0400)]
Prevent event swith enddate before startdate

12 years agoPrevent changing of dates on already approved news and events
Magnus Hagander [Tue, 21 May 2013 18:05:06 +0000 (14:05 -0400)]
Prevent changing of dates on already approved news and events

Since this can be used to bypass moderator approval and move items
to the frontpage of the site, they're blocked. We still allow the user
to make corrections in the text and other such fields.

12 years agoAdd new books from Packt
Dave Page [Wed, 15 May 2013 14:43:38 +0000 (15:43 +0100)]
Add new books from Packt

12 years agoAnnounce 9.3b1
Dave Page [Mon, 13 May 2013 11:04:48 +0000 (12:04 +0100)]
Announce 9.3b1

12 years agoRelease, but don't announce 9.3 beta 1
Dave Page [Fri, 10 May 2013 08:27:00 +0000 (09:27 +0100)]
Release, but don't announce 9.3 beta 1

12 years agoProper appending of pug list
Jonathan S. Katz [Wed, 8 May 2013 20:37:06 +0000 (16:37 -0400)]
Proper appending of pug list

12 years agoFixed indentation on pugs/views
Jonathan S. Katz [Wed, 8 May 2013 20:25:24 +0000 (16:25 -0400)]
Fixed indentation on pugs/views

12 years agoFix indentation
Magnus Hagander [Wed, 8 May 2013 20:13:12 +0000 (22:13 +0200)]
Fix indentation

12 years agoProperly purge pugs list from cache when objects are edited
Magnus Hagander [Wed, 8 May 2013 20:10:51 +0000 (22:10 +0200)]
Properly purge pugs list from cache when objects are edited

12 years agoAdd usergroup listing module
Magnus Hagander [Wed, 8 May 2013 20:07:30 +0000 (22:07 +0200)]
Add usergroup listing module

Jonathan Katz

12 years agoUpdate GSoC to reflect the fact that we have now been accepted for 2013.
Thom Brown [Tue, 9 Apr 2013 12:53:35 +0000 (13:53 +0100)]
Update GSoC to reflect the fact that we have now been accepted for 2013.

12 years agoSpecify that Fedora 18 has PostgreSQL 9.2
Magnus Hagander [Mon, 8 Apr 2013 18:00:06 +0000 (20:00 +0200)]
Specify that Fedora 18 has PostgreSQL 9.2

Per Devrim

12 years agoChange reference to release time to be past tense
Magnus Hagander [Sun, 7 Apr 2013 19:56:39 +0000 (21:56 +0200)]
Change reference to release time to be past tense

12 years agoUpdate PDF sizes for 8.4.17, 9.0.13, 9.1.9 and 9.2.4.
Dave Page [Thu, 4 Apr 2013 17:22:25 +0000 (18:22 +0100)]
Update PDF sizes for 8.4.17, 9.0.13, 9.1.9 and 9.2.4.

12 years agoInclude the version numbers in the release, on the FAQ.
Dave Page [Thu, 4 Apr 2013 15:30:10 +0000 (16:30 +0100)]
Include the version numbers in the release, on the FAQ.

12 years agoWording tweak for clarity and to reduce sentence length
Selena Deckelmann [Thu, 4 Apr 2013 14:02:57 +0000 (07:02 -0700)]
Wording tweak for clarity and to reduce sentence length

12 years agoPostgreSQL releases 8.4.17, 9.0.13, 9.1.9, 9.2.4.
Dave Page [Thu, 4 Apr 2013 13:20:00 +0000 (14:20 +0100)]
PostgreSQL releases 8.4.17, 9.0.13, 9.1.9, 9.2.4.

12 years agoFix title as well, missed in previous commit
Magnus Hagander [Wed, 3 Apr 2013 20:19:33 +0000 (22:19 +0200)]
Fix title as well, missed in previous commit

12 years agoRemove release notes and download link to wrong version
Magnus Hagander [Wed, 3 Apr 2013 16:08:40 +0000 (18:08 +0200)]
Remove release notes and download link to wrong version

When the page was changed to show the announcement instead of the latest
version, the links belonging to the old "shoutbox" was left around, pointing
to the past release.

12 years agoUpdate the descriptions for the installers. Remove references to
Dave Page [Wed, 3 Apr 2013 14:35:29 +0000 (15:35 +0100)]
Update the descriptions for the installers. Remove references to
"one click".

12 years agoUpdate the callout to pre-announce the updates coming tomorrow.
Stephen Frost [Wed, 3 Apr 2013 14:19:40 +0000 (15:19 +0100)]
Update the callout to pre-announce the updates coming tomorrow.

12 years agoRemove mention of pgInstaller, deprecated with 8.3
Selena Deckelmann [Tue, 2 Apr 2013 21:12:58 +0000 (14:12 -0700)]
Remove mention of pgInstaller, deprecated with 8.3

12 years agoAdd the date to the callout box.
Dave Page [Tue, 2 Apr 2013 08:30:12 +0000 (09:30 +0100)]
Add the date to the callout box.

12 years agoDissallow non-standard characters in username
Magnus Hagander [Tue, 26 Mar 2013 20:15:02 +0000 (21:15 +0100)]
Dissallow non-standard characters in username

Specifically, only allow alphabetical, numbers, _@- and period.

The website it self handles "advanced" characters just fine, but all
systems integrated through community authentication does not.

12 years agoShow both start and end date for events in admin view
Magnus Hagander [Tue, 19 Mar 2013 15:05:53 +0000 (16:05 +0100)]
Show both start and end date for events in admin view

Makes it easier to spot those that register events for a whole year...

12 years agoUpdate GSoC admins
Thom Brown [Sun, 10 Mar 2013 00:18:51 +0000 (00:18 +0000)]
Update GSoC admins

12 years agoArchive 2012 GSoC page and replace with new one for 2013.
Thom Brown [Sat, 9 Mar 2013 17:37:21 +0000 (17:37 +0000)]
Archive 2012 GSoC page and replace with new one for 2013.

12 years agoAdd header as required by the w3c validator these days
Magnus Hagander [Thu, 7 Mar 2013 20:43:06 +0000 (21:43 +0100)]
Add header as required by the w3c validator these days

12 years agoSimplify debian/ubuntu download instructions
Magnus Hagander [Thu, 7 Mar 2013 20:42:41 +0000 (21:42 +0100)]
Simplify debian/ubuntu download instructions

Mainly by Christoph Berg, with some cleanups from me.

12 years agoAdjust CSS on nav menu for large text layout so that wrapping doesn't result in invis...
Thom Brown [Mon, 4 Mar 2013 18:11:09 +0000 (18:11 +0000)]
Adjust CSS on nav menu for large text layout so that wrapping doesn't result in invisible menu items.

12 years agoFix incorrect CVE number in title (link was correct)
Magnus Hagander [Sat, 23 Feb 2013 10:09:01 +0000 (11:09 +0100)]
Fix incorrect CVE number in title (link was correct)

Reported by Thomas Hart

12 years agoOverride some CSS classes from django-admin in the markdown previews
Magnus Hagander [Tue, 12 Feb 2013 16:57:34 +0000 (17:57 +0100)]
Override some CSS classes from django-admin in the markdown previews

We don't want to use django style headlines and margins in the preview,
we want something that looks a bit more like the main site. It's not
going to be exact (e.g. the colors will still be wrong), but it will
be a lot closer than without this.

12 years agoDrop windows CHM file for documentation
Magnus Hagander [Thu, 7 Feb 2013 12:50:38 +0000 (13:50 +0100)]
Drop windows CHM file for documentation

These files haven't been updated for years (8.3.0 and 8.4.0 respectively),
and are hard/impossible to automate the build of. And clearly not many people
are actually using them, since we've had no complaints about the versions
that are there being old.

12 years ago8.3 is no longer supported, so move the documentation links to the archive
Magnus Hagander [Thu, 7 Feb 2013 12:36:33 +0000 (13:36 +0100)]
8.3 is no longer supported, so move the documentation links to the archive

We keep them around like all other old documentation versions of course, but we
move them away from the main page.

12 years agoUpdate size of PDF files
Magnus Hagander [Thu, 7 Feb 2013 11:44:36 +0000 (12:44 +0100)]
Update size of PDF files

12 years agoNew minor releases
Magnus Hagander [Thu, 7 Feb 2013 10:33:45 +0000 (11:33 +0100)]
New minor releases

12 years agoReplace references to old archives URLs with new counterparts
Magnus Hagander [Wed, 6 Feb 2013 14:43:29 +0000 (15:43 +0100)]
Replace references to old archives URLs with new counterparts

12 years agoRemove extra comma on frontpage.
Magnus Hagander [Tue, 5 Feb 2013 10:32:41 +0000 (11:32 +0100)]
Remove extra comma on frontpage.

Strange that nobody noticed this before...

12 years agoEvents are upcoming, not current
Magnus Hagander [Wed, 30 Jan 2013 14:21:04 +0000 (15:21 +0100)]
Events are upcoming, not current

12 years agoAdd language property to events
Magnus Hagander [Wed, 30 Jan 2013 14:17:12 +0000 (15:17 +0100)]
Add language property to events

Enter the primary language for any event. In the future we will likely want
to filter events bsaed on this, but for now we just show it in the listing
and on the details page.

Requires SQL (after syncdb has run):
ALTER TABLE events_event ADD COLUMN language_id varchar(7) REFERENCES core_language(alpha3) DEFERRABLE INITIALLY DEFERRED;

Also requires loading of fixture:
./manage.py loaddata core/fixtures/language.yaml

Fixes #125

12 years agoAdd a Language model to core
Magnus Hagander [Wed, 30 Jan 2013 14:11:10 +0000 (15:11 +0100)]
Add a Language model to core

This lists all ISO-639-2 languages, and can be used in foreign keys
from other models.

12 years agoActually implement a way to look at older events (events archive)
Magnus Hagander [Wed, 30 Jan 2013 13:28:16 +0000 (14:28 +0100)]
Actually implement a way to look at older events (events archive)

This also changes the main URL to look at events to be /about/events/
instead of /about/eventsarchive/, and reuses /about/eventsarchive/ to
be the actual achive. Also separates out the training archive to it's
own page at /about/eventsarchive/training/, for easier browsing.

12 years agoAdd checkbox for "is online" on events
Magnus Hagander [Wed, 30 Jan 2013 13:07:48 +0000 (14:07 +0100)]
Add checkbox for "is online" on events

This gets rid of the annoying requirement to specify things like
"online, United States" for events that are online.

This requires some SQL to run on existing installations:
ALTER TABLE events_event ADD COLUMN isonline boolean NOT NULL DEFAULT 'f';
ALTER TABLE events_event ALTER COLUMN isonline DROP DEFAULT;
ALTER TABLE events_event ALTER COLUMN country_id DROP NOT NULL;

Fixes #166

12 years agoAdd ability to toggle fields in forms
Magnus Hagander [Wed, 30 Jan 2013 13:01:25 +0000 (14:01 +0100)]
Add ability to toggle fields in forms

This uses jQuery to make it possible to enable and disable fields in the
default forms, by specifying an attribute on the form class. The form
class still has to implement proper validators, so it does not rely on
client side validations.

12 years agoAllow doc comment filtering by approval status
Magnus Hagander [Wed, 30 Jan 2013 10:45:31 +0000 (11:45 +0100)]
Allow doc comment filtering by approval status

12 years agoAllow batch approval of doc comments
Magnus Hagander [Wed, 30 Jan 2013 10:45:11 +0000 (11:45 +0100)]
Allow batch approval of doc comments

12 years agoMake filters in admin be sticky, according to:
Magnus Hagander [Wed, 30 Jan 2013 10:41:14 +0000 (11:41 +0100)]
Make filters in admin be sticky, according to:
http://code.djangoproject.com/ticket/3777

12 years agoEncode list search queries with UTF-8
Magnus Hagander [Tue, 15 Jan 2013 07:46:36 +0000 (08:46 +0100)]
Encode list search queries with UTF-8

Should fix exception when searching for non-ascii characters

12 years agoFixed typo in templates/500.html
Jonathan S. Katz [Sat, 12 Jan 2013 18:24:42 +0000 (13:24 -0500)]
Fixed typo in templates/500.html

12 years agoShow a nicer error on timeout of searches
Magnus Hagander [Sat, 12 Jan 2013 18:23:00 +0000 (19:23 +0100)]
Show a nicer error on timeout of searches

12 years agoList id is not used in the template, so remove it
Magnus Hagander [Sat, 12 Jan 2013 18:07:36 +0000 (19:07 +0100)]
List id is not used in the template, so remove it

Since messages are no longer tied directly to lists, it makes no sense to
show which list a message belongs to.

12 years agoSupport redirect when we get a messageid hit in archives search
Magnus Hagander [Sat, 12 Jan 2013 18:03:48 +0000 (19:03 +0100)]
Support redirect when we get a messageid hit in archives search

12 years agoGenerate search hits using new URL scheme
Magnus Hagander [Sat, 12 Jan 2013 17:49:00 +0000 (18:49 +0100)]
Generate search hits using new URL scheme

12 years agoDon't use pylibmc behaviours, not supported in the version used in production
Magnus Hagander [Sat, 12 Jan 2013 17:41:18 +0000 (18:41 +0100)]
Don't use pylibmc behaviours, not supported in the version used in production

12 years agoAttempt to set a 20 second timeout on searches
Magnus Hagander [Sat, 12 Jan 2013 17:11:38 +0000 (18:11 +0100)]
Attempt to set a 20 second timeout on searches

12 years agoReimplement list searching on top of http API
Magnus Hagander [Sat, 12 Jan 2013 16:48:09 +0000 (17:48 +0100)]
Reimplement list searching on top of http API

The new archives has a http api - use that one for searching instead
of directly talking to the database.

With the new API, we always fetch the complete search results (still
capped server-side at 1000 items), and store them locally in memcached
for 10 minutes. That way, paging will only hit the local memcached and
not the remote http api *or* the SQL api.

12 years agoOrganizations with >1 manager is always "new style"
Magnus Hagander [Tue, 8 Jan 2013 09:22:54 +0000 (10:22 +0100)]
Organizations with >1 manager is always "new style"

Missing code branch when detecting if an event was migrated - it worked
as long as the org had a single new manager, but if it had more than
one it fell through to the same codepath.

This should fix a number of events showing as migrated even though they
were obviously much newer than that.

12 years agoImprove size of book cover.
Dave Page [Wed, 2 Jan 2013 16:33:58 +0000 (16:33 +0000)]
Improve size of book cover.

12 years agoCorrect alt text
Dave Page [Wed, 2 Jan 2013 16:16:12 +0000 (16:16 +0000)]
Correct alt text

12 years agoAdd PostgreSQL Server Programming book
Dave Page [Wed, 2 Jan 2013 16:14:24 +0000 (16:14 +0000)]
Add PostgreSQL Server Programming book

12 years agoAdd new book "PostgreSQL: Up and Running"
Magnus Hagander [Tue, 1 Jan 2013 17:38:02 +0000 (18:38 +0100)]
Add new book "PostgreSQL: Up and Running"

12 years agoFix broken markup
Magnus Hagander [Sat, 29 Dec 2012 11:33:32 +0000 (12:33 +0100)]
Fix broken markup

12 years agoFix link to professional services
Magnus Hagander [Wed, 26 Dec 2012 18:40:59 +0000 (19:40 +0100)]
Fix link to professional services

Noted by Peter Rowell

12 years agoFix typo in URLs
Magnus Hagander [Tue, 18 Dec 2012 19:58:31 +0000 (20:58 +0100)]
Fix typo in URLs

12 years agoAdd apt.postgresql.org to debian and ubuntu download instructions
Magnus Hagander [Sat, 15 Dec 2012 17:47:20 +0000 (18:47 +0100)]
Add apt.postgresql.org to debian and ubuntu download instructions

12 years agoUpdate privacy policy to list what happens when you post to the mailinglists
Magnus Hagander [Mon, 10 Dec 2012 17:26:12 +0000 (18:26 +0100)]
Update privacy policy to list what happens when you post to the mailinglists

The archives policy was already on the wiki, but for completeness list it here
as well.

12 years agoUpdate PDF sizes.
Dave Page [Thu, 6 Dec 2012 18:52:59 +0000 (18:52 +0000)]
Update PDF sizes.

12 years agoFix URL to latest release notes.
Dave Page [Thu, 6 Dec 2012 18:44:01 +0000 (18:44 +0000)]
Fix URL to latest release notes.

12 years agoAdd ability to approve events by batch
Magnus Hagander [Thu, 6 Dec 2012 18:40:47 +0000 (19:40 +0100)]
Add ability to approve events by batch

12 years agoSupport UTF8 encoded URLs in community authentication
Magnus Hagander [Thu, 6 Dec 2012 18:14:38 +0000 (19:14 +0100)]
Support UTF8 encoded URLs in community authentication

Commit 8b3726b7d866d614c842ca90593187e726a6cf3e fixed this for all
login fields except the URL redirect field (such as the users name).
But the wiki in particular uses UTF8 in the URLs, so we need to deal
with them in the URL as well.

12 years agoUpdate releases
Dave Page [Thu, 6 Dec 2012 14:07:16 +0000 (14:07 +0000)]
Update releases

12 years agoShow purge type in list of recent varnish purges
Magnus Hagander [Fri, 30 Nov 2012 07:23:54 +0000 (16:23 +0900)]
Show purge type in list of recent varnish purges

12 years agoClarify that ^ is added to all varnish purge expressions automatically
Magnus Hagander [Fri, 30 Nov 2012 07:11:13 +0000 (16:11 +0900)]
Clarify that ^ is added to all varnish purge expressions automatically

12 years agoAdd sponsor logos for Google and Garden Grove
Dave Page [Tue, 27 Nov 2012 07:50:49 +0000 (13:20 +0530)]
Add sponsor logos for Google and Garden Grove

12 years agoMake the mailinglist subscription form csrf exempt, so it works again
Magnus Hagander [Sun, 11 Nov 2012 15:12:09 +0000 (16:12 +0100)]
Make the mailinglist subscription form csrf exempt, so it works again

12 years agoCSRF verification failure now returns HTTP 403 Forbidden, not 200 OK
Marti Raudsepp [Wed, 7 Nov 2012 21:20:09 +0000 (23:20 +0200)]
CSRF verification failure now returns HTTP 403 Forbidden, not 200 OK

12 years agoFix small bug in api_varnish_purge error path
Marti Raudsepp [Wed, 7 Nov 2012 21:14:21 +0000 (23:14 +0200)]
Fix small bug in api_varnish_purge error path

HttpServerError is a function that returns HttpResponse, not an
exception.

12 years agoUpdate @ssl_required decorator to play nice with other decorators
Marti Raudsepp [Wed, 7 Nov 2012 21:11:21 +0000 (23:11 +0200)]
Update @ssl_required decorator to play nice with other decorators

The decorator now retains all attributes of the original view and adds a
new 'view.ssl_required = True' attribute.

12 years agoFix CSRF verification in /admin/mergeorg/ and /admin/purge/
Marti Raudsepp [Wed, 7 Nov 2012 20:01:33 +0000 (22:01 +0200)]
Fix CSRF verification in /admin/mergeorg/ and /admin/purge/

All templates using {% csrf_token %} need to be rendered with a
RequestContext.

This reverts most of commit 58a08f25901079c309d0713223e12c223b413d2c

Also permit POST requests to /search/ -- these aren't relevant to the
site itself, but this used to be allowed before.