Skip to content

Commit

Permalink
Hygiene PR (#2114)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
di committed Aug 11, 2022
1 parent fe78dcf commit 898b5b6
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 4 deletions.
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.9.6
2 changes: 1 addition & 1 deletion base-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ docutils==0.12
Markdown==3.3.4
cmarkgfm==0.6.0
Pillow==8.3.1
psycopg2==2.8.6
psycopg2-binary==2.8.6
python3-openid==3.2.0
python-decouple==3.4
# lxml used by BeautifulSoup.
Expand Down
5 changes: 3 additions & 2 deletions docs/source/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ Installing

Manual setup
------------
First, install PostgreSQL_ on your machine and run it.
First, install PostgreSQL_ on your machine and run it. *pythondotorg* currently
uses Postgres 10.21.

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

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

$ ./manage.py create_initial_data

See :ref:`command-create-initial-data` for the command options to specify
See :ref:`command-create-initial-data` for the command options to specify
while creating initial data.

Finally, start the development server::
Expand Down
17 changes: 17 additions & 0 deletions sponsors/migrations/0086_auto_20220809_1655.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 2.2.24 on 2022-08-09 16:55

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('sponsors', '0085_auto_20220730_0945'),
]

operations = [
migrations.AlterModelOptions(
name='sponsorshippackage',
options={'ordering': ('-year', 'order')},
),
]
2 changes: 1 addition & 1 deletion templates/humans.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@
Core: Python 3 and Django 1.7
Components: Modernizr, jQuery, Susy (susy.oddbird.net)
Software: SASS and Compass, Coda, Sublime Text, Terminal, Adobe CS, Made on Macs
Hardware Stack: Ubuntu 14.04, Postgresql 9.x, Nginx, uwsgi
Hardware Stack: Heroku, Ubuntu 14.04, Postgresql 10.x, Nginx, gunicorn
Helpers: Haystack, Pipeline

0 comments on commit 898b5b6

Please sign in to comment.