Browse Source

Django 3.0

pull/313/head
Pēteris Caune 5 years ago
parent
commit
2a8e7ee766
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
6 changed files with 10 additions and 9 deletions
  1. +0
    -1
      .travis.yml
  2. +1
    -0
      CHANGELOG.md
  3. +1
    -1
      README.md
  4. +2
    -2
      hc/accounts/tests/test_project.py
  5. +5
    -4
      hc/settings.py
  6. +1
    -1
      requirements.txt

+ 0
- 1
.travis.yml View File

@ -1,7 +1,6 @@
dist: xenial
language: python
python:
- "3.5"
- "3.6"
- "3.7"
- "3.8"


+ 1
- 0
CHANGELOG.md View File

@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file.
- "Filtering Rules" dialog, an option to require HTTP POST (#297)
- Show Healthchecks version in Django admin header (#306)
- Added JSON endpoint for Shields.io (#304)
- Django 3.0
### Bug Fixes
- Don't set CSRF cookie on first visit. Signup is exempt from CSRF protection


+ 1
- 1
README.md View File

@ -21,7 +21,7 @@ It is live here: [http://healthchecks.io/](http://healthchecks.io/)
The building blocks are:
* Python 3
* Django 2
* Django 3
* PostgreSQL or MySQL
## Setting Up for Development


+ 2
- 2
hc/accounts/tests/test_project.py View File

@ -84,9 +84,9 @@ class ProjectTestCase(BaseTestCase):
# And an email should have been sent
subj = (
"You have been invited to join"
" Alice's Project on %s" % settings.SITE_NAME
" Alice's Project on %s" % settings.SITE_NAME
)
self.assertEqual(mail.outbox[0].subject, subj)
self.assertHTMLEqual(mail.outbox[0].subject, subj)
@override_settings(SECRET_KEY="test-secret")
def test_it_rate_limits_invites(self):


+ 5
- 4
hc/settings.py View File

@ -35,10 +35,11 @@ SUPPORT_EMAIL = os.getenv("SUPPORT_EMAIL")
USE_PAYMENTS = envbool("USE_PAYMENTS", "False")
REGISTRATION_OPEN = envbool("REGISTRATION_OPEN", "True")
VERSION = ""
for line in open(os.path.join(BASE_DIR, "CHANGELOG.md")).readlines():
if line.startswith("## v"):
VERSION = line.split()[1]
break
with open(os.path.join(BASE_DIR, "CHANGELOG.md")) as f:
for line in f.readlines():
if line.startswith("## v"):
VERSION = line.split()[1]
break
INSTALLED_APPS = (


+ 1
- 1
requirements.txt View File

@ -1,5 +1,5 @@
croniter==0.3.30
Django==2.2.8
Django==3.0
django_compressor==2.3
psycopg2==2.8.3
pytz==2019.1


Loading…
Cancel
Save