Custom Login Url Django Admin Site

2010-03-12 Thread d3f3nd3r
Hi, is there a nice way to redirect the user to a custom login page when accessing a django admin site? I'm thinking about something like LOGIN_URL in settings.py. regards -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: ImageFiled Uploads

2008-07-17 Thread d3f3nd3r
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yeah thank you, had an outdated django version. but I have another fundamental question about ImageField. If I use ImageFields in a Form, does to form handle the storage for me or have I to save the image specially? Because I cant figure out how Im

Re: ImageFiled Uploads

2008-07-16 Thread d3f3nd3r
_userpic(request.FILES['userpic']) def handle_userpic(f): destination = open('/home/d3f3nd3r/hackerspace-os/mos/media/tmp', 'wb+') for chunk in f.chunks() : -> ERROR : 'FileDict' object has no attribute 'chunks' d