Blog Archive for October 2, 2010

nginx 413 Request Entity Too Large

October 2, 2010

One of my sites lets users upload photos using the Django admin site. It limits to four photos at once, but still gave the error 413 Request Entity Too Large whilst uploading four.

It turns out the default maximum limit for upload site is 1Mb in nginx.

To change this …

Book: Neuro Web Design - Susan M Weinshenk

October 2, 2010

Neuro Web Design: What Makes Them Click? is a different kind of web design book. It's all about what psychological factors drive people when they're using websites.

It suggests that there are three part of the brain, the old, new and mid brains. The old brain is concerned with our …

User Specific Data in Admin

October 2, 2010

Building on the last post (http://drumcoder.co.uk/blog/2010/oct/02/limiting-records-django-admin/), I wanted to allow some users to be able to see the full list of records for their SITE_ID, and others to be limited to just the records they had created.

Each model object had a owner field, so the select was …

Limiting Records in Django Admin

October 2, 2010

I had a situation where the Django admin would be deployed on multiple sites, all using the same source code. Each site had a unique settings.py and the SITE_ID was different for each. Each site had an admin site that was limited to that particular site's data.

models.py

Each model …