Commit Graph

892 Commits

Author SHA1 Message Date
da812e682b mimetype is now called content_type 2016-05-14 19:49:12 +02:00
cd780de8b6 Forms must now always specify include or exclude fields
So for those forms that should have everything in them (and we don't
have a lot of those), set exclude=() to remove the error.
2016-05-14 19:49:12 +02:00
350b936e58 Prefix cross-application imports with pgweb
As required by the new project layout.
2016-05-14 19:49:12 +02:00
856dbd31a2 Update for new transaction handling in newer django versions 2016-05-14 19:49:12 +02:00
f9924efb7b Fix URL namespace changes
1. Prefix all our local modules with "pgweb" as required by the new
   project layout.
2. Change the django core imports to match 1.8
3. redirect_to has been changed to RedirectView

In passing also tabify the urls file which used a horrible mix of tabs
and spaces. The python standard is spaces, but since the rest of the
pgweb projects uses tabs, make the urls.py files do that as well.
2016-05-14 19:49:12 +02:00
498e786c0e Move files and directories for new project layout
Move manage.py up one step, set up a new wsgi.py file, and adjust
relative paths that refer to other directories for the new project
layout that we need to use in django 1.8.
2016-05-14 19:49:12 +02:00
2f8bbc40dd Replace pgq with trivial local queue implementation
The queue used for varnish purges has so few entries that it's really
not worth paying the management overhead for skytools/pgq. Instead we
can use a very simple local deamon using LISTEN/NOTIFY to fire them off.

Now include a proper nagios plugin in this package, so we can get rid
of the not-very-nice munin plugin currently used in the deployment.
2016-05-14 19:49:12 +02:00
37a24af1e8 Fix link 2016-05-12 15:39:32 +01:00
66fcc82372 Fix versions per Erik Rijkers 2016-05-12 15:30:30 +01:00
45cdeb3031 PostgreSQL 9.6 Beta 1, 9.5.2, 9.4.7, 9.3.12, 9.2.16 and 9.1.21 2016-05-12 14:08:55 +01:00
3344997c30 Hide 8.0 by default from feature matrix
We're getting too many versions there, so from now on when we add
a new one, we have to remove an old one.
2016-04-27 14:33:15 +02:00
49114ea675 Make featurematrix use regular integer fields instead of custom field
The custom fields will give us pain when we upgrade to use django
migrations, and don't really add anything useful to us here.
2016-04-26 15:22:03 +02:00
d28d3f3bfc Consistently use standard date formats for news entries
This appears to have become dependent on a django setting that we no
longer set -- and it's best to have a predictable format regardless.

Most things on the frontpage used the standard format, but not news,
leading to an annoyingly inconsistent view.
2016-04-13 15:17:09 +02:00
5e03965e0b Fix headers on security archives page
Alvaro Herrera
2016-04-04 18:29:25 +02:00
484d8b7a3a add xenial (ubuntu 16.04) per Christoph Berg on -www 2016-03-31 20:25:35 +02:00
ba3601de7d Fix typo 2016-03-31 15:36:07 +02:00
2a313bd2b4 New minor releases 9.5.2 and friends 2016-03-31 13:45:28 +02:00
e0cf03904c Add texts about quarterly releases 2016-03-29 22:26:19 +02:00
b8dd050611 Fix typo 2016-03-15 09:58:38 +00:00
10656c603f Use difflib to show differences when an object is edited
This makes for a much easier-to-read output, especially when the
modified field is more than one line.
2016-03-07 22:02:24 +01:00
8058accee0 Get rid of PgModel, replacing it with simple signals
We were already using signals for everything except delete, and even
in our old version of django the delete signal exists (it didn't exist
when this code was first written).

Django doesn't really like models to be OOP like this, so keeping PgModel
would cause issues with upcoming changes in django 1.8. Using simple functions
is easier, and the actual functionality is replicated straight off.
2016-03-07 21:41:45 +01:00
d15fc715af Add PostgreSQL Up and Running (2nd Edition) 2016-03-07 11:39:15 +00:00
3eba9a734b Properly set encoding for archives search post 2016-03-03 15:53:10 +01:00
b777495f82 Remove link that no longer exists
Reported by Chanoch Wiggers
2016-03-02 13:10:05 +01:00
2784f5b035 add wily werewolf and deprecate utopic - per complaint from andres on IRC 2016-02-26 19:49:40 +01:00
5b38087553 Update Google Summer of Code page for 2016. 2016-02-22 09:27:13 +00:00
789c7e9385 Correct bug severity level. 2016-02-12 09:09:51 +00:00
8a62fcecca Correct security info, per Noah. 2016-02-12 08:55:39 +00:00
9abfe468c2 Add a couple of books. 2016-02-11 13:51:33 +00:00
d89507b3d8 Release 9.5.1, 9.4.6, 9.3.11, 9.2.15, and 9.1.20 2016-02-11 13:38:39 +00:00
b01793b735 Fix link to latest version per Daniel Cristian Cruz 2016-02-11 09:07:32 +00:00
87eb7e61e2 fix typo - per Daniel Gustafsson on -www 2016-02-09 21:08:39 +01:00
58cc8619cf Add the core team email address to the core page. 2016-01-29 18:47:57 +01:00
c1e2ce22d6 Go back to using direct psycopg2 for docs loading
This removes the dependency on django from docload, facilitating
incremental upgrades of the infrastructure.

This now requires a new docload.ini file in the tools/docs directory,
with a section "db" and a setting "dsn".
2016-01-29 12:45:48 +01:00
f9692bf3bd add russion presskit 2016-01-11 20:06:05 +01:00
de40e8007b the next release is not 9.5 any more - now that we have pushed that one out the door 2016-01-08 16:35:46 +01:00
d799047c41 Add the Italian press kit. 2016-01-07 14:21:31 +00:00
bff6b59325 Another URL fix 2016-01-07 14:06:24 +00:00
4e8a86a9fd Fix another link 2016-01-07 14:03:35 +00:00
18c92f3656 Fix URLs 2016-01-07 13:59:49 +00:00
df7a4651e7 Fix alpha page wording following release 2016-01-07 13:52:58 +00:00
0edff500af Update for 9.5 2016-01-07 10:45:04 +00:00
aaa9e14b61 Catch "unknown password hashing algoritm errors"
These errors typically happens when someone tries to log in before they
have completed the process by clicking the link in the received email,
so give them an error message showing this.
2015-12-26 18:51:00 +01:00
7d0e4aaf9b Fix announcement URL & make the title look nicer 2015-12-18 13:28:16 +00:00
ffb36c0080 9.5rc1 2015-12-18 13:26:02 +00:00
eaae8c25fe Update CVE-2015-5289 per Noah. 2015-12-18 09:00:19 +00:00
7de55adb97 Fix long standing bug in determining remote IP
The check was for is_behind_cache without the (), meaning it always
returned true, which in turn meant we trusted all x-forwarded-for
headers. It was pretty hard to get them into the system, and
we didn't actually use it for anything other than locking survey
submissions, so it's not a big problem.

However, the basic logic was also wrong, as it assumes that all
SSL connections terminate directly at the backend server, which is
not necessarily true anymore.

The new version of the function will trust an X-Forwarded-For as
long as it's set on one of our frontend servers, regardless of if
it's an encrypted connection or not.
2015-12-17 17:36:00 +01:00
9c8006364e Add a system_information view available through SSL 2015-12-17 17:34:31 +01:00
70726c8359 Remove dead code 2015-12-17 17:34:31 +01:00
1e885304b9 Fix typo 2015-12-17 15:39:26 +00:00