From: Andreas Scherbaum Date: Tue, 25 Jan 2022 17:01:46 +0000 (+0100) Subject: Update README and development requirements X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=b271a05673f5e0dbf0895712592ba594689e129a;p=pgcommitfest2.git Update README and development requirements --- diff --git a/README.md b/README.md index 0debed2..7dd48bc 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ A commitfest is a collection of patches and reviews for a project and is part of ## The Application -This is a Django 1.8 application backed by PostgreSQL and running on Python 2.7. +This is a Django 3.2 application backed by PostgreSQL and running on Python 3.x. ## Getting Started @@ -15,7 +15,7 @@ This is a Django 1.8 application backed by PostgreSQL and running on Python 2.7. First, prepare your development environment by installing pip, virtualenv, and postgresql-server-dev-X.Y. ``` -$ sudo apt install python-pip postgresql-server-dev-9.6 +$ sudo apt install python-pip postgresql-server-dev-14 $ pip install virtualenv ``` @@ -57,7 +57,7 @@ AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend'] ``` Provided that you created a database matching the above settings, you can -now create the required tables. +now create the required tables. Note that a password must be provided. ``` $ python manage.py migrate @@ -79,7 +79,8 @@ To authenticate you'll first have to remove the customized login template. Remember not to commit this modification. ``` -$ rm -rf global_templates/admin/login.html +$ find . -type f -name login.html +$ rm -f global_templates/admin/login.html ``` Then open http://localhost:8000/admin to log in. Once redirected to the Django diff --git a/requirements.txt b/requirements.txt index d4d8e3c..5d6adef 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,7 @@ -django>1.8,<1.9 +django>=3.2,<4.0 psycopg2 simplejson pycrypto +requests +pycryptodome +pycryptodomex