django-wsgi

Debugging Apache/Django/WSGI Bad Request (400) Error

£可爱£侵袭症+ 提交于 2019-11-28 04:16:55
My simple Django app worked fine in debug mode ( manage.py runserver ), and works under WSGI+Apache on my dev box, but when I pushed to EC2 I began receiving intermittent (10-80% of the time) errors of Bad Request (400) for any URLs I try to view (whether in my app or in the Django admin. Where can I find debug information about this? Nothing appears in /var/log/apache2/error.log , even with LogLevel=info . I have checked versions, logged the Request environment (cf. ModWSGI Debugging Tips ) and see no major differences. The one remaining thought I had is, I'm using the mod_wsgi from Ubuntu 12

ImportError: No module named django.core.wsgi Apache + VirtualEnv + AWS + WSGI

邮差的信 提交于 2019-11-27 03:50:19
I am trying to publish my site on an Amazon's EC2 Instance, and I keep getting a 500 error. I really dunno why. //Log Files [Sun Feb 17 23:12:48.066802 2013] mod_wsgi (pid=2102): Target WSGI script '/srv/www/app/poka/apache/wsgi.py' cannot be loaded as Python module. [Sun Feb 17 23:12:48.066840 2013] mod_wsgi (pid=2102): Exception occurred processing WSGI script '/srv/www/app/poka/apache/wsgi.py'. [Sun Feb 17 23:12:48.066864 2013] Traceback (most recent call last): [Sun Feb 17 23:12:48.066889 2013] File "/srv/www/mysite/poka/apache/wsgi.py", line 26, in <module> [Sun Feb 17 23:12:48.066920

Django + mod_wsgi + apache: ImportError at / No module named djproj.urls

好久不见. 提交于 2019-11-27 02:14:38
问题 I'm trying to deploy my Django application on my linode server with apache and mod_wsgi. file: /srv/www/example.com/djproj/django.wsgi import os import sys sys.path.append('/srv/www/example.com/djproj') os.environ['PYTHON_EGG_CACHE'] = '/srv/www/example.com/.python-egg' os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler() file: /etc/apache2/sites-available/example.com /etc/apache2/sites-available/example.com

Debugging Apache/Django/WSGI Bad Request (400) Error

允我心安 提交于 2019-11-27 00:25:37
问题 My simple Django app worked fine in debug mode ( manage.py runserver ), and works under WSGI+Apache on my dev box, but when I pushed to EC2 I began receiving intermittent (10-80% of the time) errors of Bad Request (400) for any URLs I try to view (whether in my app or in the Django admin. Where can I find debug information about this? Nothing appears in /var/log/apache2/error.log , even with LogLevel=info . I have checked versions, logged the Request environment (cf. ModWSGI Debugging Tips)

Django stops working with RuntimeError: populate() isn&#39;t reentrant

谁说胖子不能爱 提交于 2019-11-26 15:23:35
I've been developing a Django web application deployed on an Apache server with WSGI, and everything has been going smoothly. Today, I made some minor changes to my app's admin.py in an attempt to customize the build-in Django Admin interface, and initially made a syntax error (an unclosed parenthesis). This meant that when I touched wsgi.py and loaded the code (I have WSGI running in daemon mode on my virtual host), my website was replaced with an Internal Server Error because WSGI stopped when it hit the syntax error. So I fixed the syntax error, checked that I didn't have any more with