Last active
August 23, 2019 04:03
-
-
Save ryu22e/7570b79bf774b7f2f3d688c7e6bfa469 to your computer and use it in GitHub Desktop.
Djangoの脆弱性CVE-2019-14232・CVE-2019-14233・CVE-2019-14234・CVE-2019-14235について解説(1)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# example/models.py | |
from django.db import models | |
from django.contrib.postgres.fields import JSONField | |
class Example(models.Model): | |
value = JSONField(verbose_name="値") | |
enabled = models.BooleanField(verbose_name="有効") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 既存の値を以下に書き換える。 | |
DATABASES = { | |
'default': { | |
'ENGINE': 'django.db.backends.postgresql', | |
'NAME': 'django223', | |
'HOST': 'localhost', | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment