You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

apps.py 341B

5 years ago
1234567891011
  1. from django.apps import AppConfig
  2. from django.core import serializers
  3. from django.utils.translation import gettext_lazy as _
  4. class GISConfig(AppConfig):
  5. name = 'django.contrib.gis'
  6. verbose_name = _("GIS")
  7. def ready(self):
  8. serializers.BUILTIN_SERIALIZERS.setdefault('geojson', 'django.contrib.gis.serializers.geojson')