Skip to content

Commit 898b5b6

Browse files
authored
Hygiene PR (#2114)
* Add .python-version file * Switch to psycopg2-binary to avoid compiling from source * Document Postgres 10.x usage * Add unapplied automigration for sponsors/ * Add Heroku and gunicorn
1 parent fe78dcf commit 898b5b6

File tree

5 files changed

+23
-4
lines changed

5 files changed

+23
-4
lines changed

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.9.6

base-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ docutils==0.12
66
Markdown==3.3.4
77
cmarkgfm==0.6.0
88
Pillow==8.3.1
9-
psycopg2==2.8.6
9+
psycopg2-binary==2.8.6
1010
python3-openid==3.2.0
1111
python-decouple==3.4
1212
# lxml used by BeautifulSoup.

docs/source/install.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ Installing
33

44
Manual setup
55
------------
6-
First, install PostgreSQL_ on your machine and run it.
6+
First, install PostgreSQL_ on your machine and run it. *pythondotorg* currently
7+
uses Postgres 10.21.
78

89
.. _PostgreSQL: https://www.postgresql.org/download/
910

@@ -85,7 +86,7 @@ To create initial data for the most used applications, run::
8586

8687
$ ./manage.py create_initial_data
8788

88-
See :ref:`command-create-initial-data` for the command options to specify
89+
See :ref:`command-create-initial-data` for the command options to specify
8990
while creating initial data.
9091

9192
Finally, start the development server::
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Generated by Django 2.2.24 on 2022-08-09 16:55
2+
3+
from django.db import migrations
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('sponsors', '0085_auto_20220730_0945'),
10+
]
11+
12+
operations = [
13+
migrations.AlterModelOptions(
14+
name='sponsorshippackage',
15+
options={'ordering': ('-year', 'order')},
16+
),
17+
]

templates/humans.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@
5959
Core: Python 3 and Django 1.7
6060
Components: Modernizr, jQuery, Susy (susy.oddbird.net)
6161
Software: SASS and Compass, Coda, Sublime Text, Terminal, Adobe CS, Made on Macs
62-
Hardware Stack: Ubuntu 14.04, Postgresql 9.x, Nginx, uwsgi
62+
Hardware Stack: Heroku, Ubuntu 14.04, Postgresql 10.x, Nginx, gunicorn
6363
Helpers: Haystack, Pipeline

0 commit comments

Comments
 (0)