Not able to serve my website on apache

I had served my website on Apache server and it is Django based project. I was able to run my website from one month. Now when i have pulled my repository from github and now it is showing 500 error. When i am activating my virtual environment and i am running python runserver my_ip_address then it is showing everything proper in terminal but when i am trying to excess in my web browser then it is showing nothing. Then i have tried python runserver my_ip_address:8080 then it is working properly. When i have checked my apache server error.log|tail then it is showing some error which i am attaching error low below. I am using postgres and when i was pulling my repository for the last time then after python makemigrations it asked me to give one default time for one of my field and i have provided In last git pull i have changed many things but if there could have error then my python runserver my_ip_address:8080 in virtual host should not work but it is working properly. I have also restarted the apache server service apache2 restart and i have also used with sudo.

[Sun Aug 05 19:06:20.530154 2018] [wsgi:error] [pid 31141:tid 140598172460800] [remote]   File "/usr/local/lib/python2.7/dist-packages/django/core/", line 13, in get_wsgi_application
[Sun Aug 05 19:06:20.530173 2018] [wsgi:error] [pid 31141:tid 140598172460800] [remote]     django.setup(set_prefix=False)
[Sun Aug 05 19:06:20.530182 2018] [wsgi:error] [pid 31141:tid 140598172460800] [remote]   File "/usr/local/lib/python2.7/dist-packages/django/", line 27, in setup
[Sun Aug 05 19:06:20.530196 2018] [wsgi:error] [pid 31141:tid 140598172460800] [remote]     apps.populate(settings.INSTALLED_APPS)
[Sun Aug 05 19:06:20.530204 2018] [wsgi:error] [pid 31141:tid 140598172460800] [remote]   File "/usr/local/lib/python2.7/dist-packages/django/apps/", line 78, in populate
[Sun Aug 05 19:06:20.530218 2018] [wsgi:error] [pid 31141:tid 140598172460800] [remote]     raise RuntimeError("populate() isn't reentrant")
[Sun Aug 05 19:06:20.530236 2018] [wsgi:error] [pid 31141:tid 140598172460800] [remote] RuntimeError: populate() isn't reentrant


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.


I could suggest following the steps here on how to serve Django applications with Apache:

Also for some more information about the problem, I would suggest following the steps here on how to troubleshoot common Apache problems:

Regards, Bobby