Providing browse from uploads button for ImageField

2013-10-13 Thread Burak Emre Kabakcı
Is it possible to change field type when saving a model to database? I have an ImageField and I want to put a button for choosing an image already uploaded. I know that ImageField acts like CharField when saving data to database but it uses multipart/form-data so it doesn't see POST data when c

Duplicating production data for specific TestCase

2013-10-27 Thread Burak Emre Kabakcı
I need an actual data created by users in my special TestCase class. Django automatically create another database and execute syndb command which loads data into multiple tables (contenttypes, auth_permissions etc.) and fixtures and when I try to import my dump in setUp() method, it conflicts w