Python Django Web Role = 500 internal server error?

Copper Contributor

I created a fresh Python Cloud Service project with 1 Django Web Role (basically fresh VS 2017 installation)

After the initial project creation I got this error

also opening the "readme.html" gives me "Object reference not set to an instance of an object" error (I can't find even manually any readme.html in the project folder)

 

when I publish the freshly created django webrole to azure cloud service I get a 500 internal server error, I tried googling a little bit and changed ALLOWED_HOSTS in settings.py to 

ALLOWED_HOSTS = ["*"]

as suggested in several posts and I also changed DEBUG (just above the ALLOWED_HOSTS) to False, however I still am getting 500 internal server error...

 

I also tried changing the $defaultpython variable in ConfigureCloudService.ps1 to "python2" to use python 2.7, however I get the very same error with any "solution" I've found so far...

 

any suggestions? I've never worked with any python web framework before and still am just figuring out azure, so anything will be appreciated

0 Replies