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