Azure website configuration issues for django app

I created a Django application (which works correctly locally), but I cannot deploy it to Azure Web Sites. I get an "Internal HTTP 500 Server Error".

Since the site works locally, I believe that I could do something wrong in the application configuration.

I have the following application settings:

DJANGO_SETTINGS_MODULE | chocolate.settings
PYTHONPATH | C:\Users\User\Dropbox\chocolate-chocolate\chocolate;C:\Users\User\Dropbox\chocolate-chocolate\site-packages 
WSGI_HANDLER | django.core.handlers.wsgi.WSGIHandler()

and this is for handlers:

* | C:\Python27\python.exe | C:\python27\Scripts\wfastcgi.py

This is the file hierarchy of my application:

chocolate-chocolate\
     chocolate\
       chocolate # this is the app
          chocolate\
            manage.py
            web.config
               chocolate\
                 __init__.py
                 settings.py
                 urls.py
                 wsgi  
                    ...
site-packages\
      django\
          ....
+4
source share
2 answers

If you set DEBUG=Falsein the settings, you must enter your website in the settings ALLOWES_HOSTS .

, , , .

0

. . . , html, .

0

All Articles