Commit Graph

898 Commits

Author SHA1 Message Date
c97ea7cf4d Fix default value for language
Needs to be a static value for it to work properly once we enable
migrations.
2016-05-14 19:49:12 +02:00
217f9ef62a Fix model warnings and deprecations
1. ForeignKey with unique -> OneToOneField
2. IPAddressField -> GenericIPAddressField
3. Fix fields with default=datetime.now() which gives server start time,
   not the insert time (clearly this default was never used, and the
   field was always explicitly set, but it should still not be incorrectly
   defined)
2016-05-14 19:49:12 +02:00
0e2a47cf25 Fix incorrect use of {% url
Since we don't use it anywhere else, we'll just replace it with a
hardcoded string for now.
2016-05-14 19:49:12 +02:00
fd689e01c9 module_name has been renamed to model_name 2016-05-14 19:49:12 +02:00
6eafeb769a Django no longer ships with buildin markdown
Instead, use django_markwhat, the same as we've done for other
postgreslq.org django projects.
2016-05-14 19:49:12 +02:00
63d920ab5f Fix long-standing incorrect select_related parameter
This was broken before, but older django versions didn't notice it was
wrong and just ignored it. 1.8 throws an error, so now is a good time to
fix it.
2016-05-14 19:49:12 +02:00
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