Settings¶
Django-XenForo has a number of settings that control its behavior. They’ve been given defaults that match a standard XenForo install. If you’ve altered your XenForo config, then you’ll want to modify these as appropriate in your project’s settings.py.
-
django.conf.settings.
COOKIE_PREFIX
¶ Default: 'xf_'
Type: String The prefix of the XenForo cookie.
This is used by
middleware.XFSessionMiddleware
to fetch the user’s session cookie.
-
django.conf.settings.
DATABASE
¶ Default: 'default'
Type: String The
DATABASES
connection to use for querying the XenForo database.
-
django.conf.settings.
IP_ADDRESS_KEY
¶ Default: 'HTTP_X_REAL_IP'
Type: String The HTTP Header is looked at for IP address comparison in
middleware.XFAuthenticationMiddleware
.
-
django.conf.settings.
TABLE_PREFIX
¶ Default: 'xf_'
Type: String The prefix for tables in the XenForo database.
Used throughout the app for querying against the XenForo database.