Category: Python

Django REST Framework: ‘module’ object is not callable

This post is more of a note to myself, but, I’m throwing it up here as a benefit to myself and my brethren who end up making the same mistake. If you ever encounter an error that reads: ‘module’ object is not callable, while using the reverse() function, you are using the wrong import! Wrong: […]

Continue Reading

Serving Django Admin over HTTPS behind a Nginx Proxy

I was deploying my first Django application today on a production server. Nginx is the proxy server and gunicorn is the WSGI web server. Supervisor is being used to ensure the gunicorn workers are always re-spawned if they die. The firewall is setup to only allow HTTPS connections. After a lot of tweaking the settings, […]

Continue Reading