Magnus Hagander 48410d04fa Enable cache-busting URLs for CSS and JS
This will allow us to increase the cache times in the browser for our
CSS, which almost never changes.

Enables a new value to be used in templates, {{gitrev}}, which can be
used to bust pretty much any URL. We could do this for all the images
in the templates as well, but since most of them almost never change,
we'll just enable it manually for each individual image as it becomes
necessray - or just use a ?1, ?2 etc for those.

Enabled by default for CSS and JavaScript links, since those are much
more likely to be changed without having the URL changed.

Cache times aren't increased yet - we'll do that later one we're sure
that all existing caches are expired first.
2014-01-01 15:24:51 +01:00
2012-01-14 18:58:30 +01:00

The PostgreSQL website
======================

The code in this repository is what backs the website at www.postgresql.org.

The authoritative repository for this code is on git.postgresql.org, but it's
free to be mirrored anywhere.

Technology
----------
The website code is written in `Python <http://www.python.org>`_ using
the `Django <http://www.djangoproject.com/>`_ framework. Not surprisingly,
`PostgreSQL <http://www.postgresql.org>`_ is used as the database. Further details
about the code and technology can be found in the different documents in the
docs directory.

Content
-------
A fair amount of the content pages of the website are just static HTML templates.
If you wish to edit these, you only need to look at the templates/pages/
subdirectory. The content in here is simple HTML, and can be edited as such.

Contributing
------------
We appreciate all (most?) contributions to this project. If you wish to
contribute, be sure to sign up to the `pgsql-www <http://www.postgresql.org/community/lists/>`_
mailinglist for any discussions, and post any suggested patches there. If you
want to make any major changes, be sure to have discussed those on the list first.

Licence
-------
The code for the website is licensed under
`The PostgreSQL Licence <http://www.opensource.org/licenses/postgresql>`_, which is
closely related to the BSD licence.
Description
Mirror of the code behind www.postgresql.org
Readme 11 MiB
Languages
HTML 85.3%
Python 12.5%
CSS 1.3%
JavaScript 0.4%
PLpgSQL 0.2%
Other 0.1%