Settings¶
django-geoip
has some public configuration:
-
class
django_geoip.settings.geoip_settings.
GeoIpConfig
(**kwargs)¶ GeoIP configuration
-
COOKIE_DOMAIN
= ''¶ Cookie domain for LocationCookieStorage class.
-
COOKIE_EXPIRES
= 31622400¶ Cookie lifetime in seconds (1 year by default) for LocationCookieStorage class.
-
COOKIE_NAME
= 'geoip_location_id'¶ Cookie name for LocationCookieStorage class (stores custom location’s primary key).
-
LOCATION_EMPTY_VALUE
= 0¶ Empty value for location, if location not found in ranges. This value must be returned in a custom location model in get_default_location class method if necessary.
-
LOCATION_MODEL
= 'django_geoip.models.GeoLocationFacade'¶ A reference to a model that stores custom geography, specific to application.
-
STORAGE_CLASS
= 'django_geoip.storage.LocationCookieStorage'¶ Persistent storage class for user location
-