Fixed ALLOWED_HOSTS handling

I realized this mistake on another project with its Django config
based on this one.