mercredi 29 avril 2015

With DEBUG=False django in EC2 in AWS, domain, stage.example.com is not reachable

I have setup a Django server to serve my stage environment like http://ift.tt/1J9wKf5. I entered CNAME for the 'stage' to be like ec2-xxx-xxx-xxx.compute.amazonaws.com in my dns setup. This worked fine until I flipped DEBUG = False in setting.

With DEBUG=False, stage.example.com is not reachable and ended up with DNS Lookup failure.

BTW, I added stage.example.com in ALLOWED_HOST. How do I make stage.example.com work under production mode in Django?




Aucun commentaire:

Enregistrer un commentaire