12👍
✅
You can provide a delimiter then split the string in django
ALLOWED_HOSTS = env('DJANGO_ALLOWED_HOSTS').split(',')
heroku config:set 'DJANGO_ALLOWED_HOSTS' = 'www.example.com,foo.com'
6👍
To define multiple values for allowed hosts in settings.py
file use like:
ALLOWED_HOSTS = [‘000.08.10.11′,’111.22.33.44′,’www.abcdefgh.com’]
- [Django]-How to use filter_horizontal on a ForeignKey between two apps using ContentTypes in Django admin?
- [Django]-PHP and Django: Nginx, FastCGI and Green Unicorn?
Source:stackexchange.com