5

Django returns 502 error when user apps are added

view full story
linux-howto

http://serverfault.com – I've configured a Debian 6 server with nginx, Passenger, and MySQL to run Django, and was running through the Django tutorial with everything going swimmingly until I tried to turn on the admin interface. Now it returns a 502 bad gateway whenever I have admin.autodiscover() on and any user-created app included in INSTALLED_APPS under settings.py. However, when I run Django's test server (python manage.py runserver), everything works fine, I can get into and use the admin interface, and everything's great, so it appears the problem is in the server configs, not the app code I've written (whic (HowTos)