Re: [ver. 1.5] Specifying custom User model (extends AbstractUser) doesn't work

2013-03-21 Thread Lewis Taylor
And this is why I learnt the names of many of those major in the Django community! Now if I post after them, it's mostly to say. Yes I agree. Like I'm doing now :-) On Wednesday, 24 October 2012 05:02:02 UTC+1, Surya Mukherjee wrote: > > Django's standard User class isn't sufficient for my n

Re: en vs. en_US (was 'Problems creating a new locale')

2009-09-27 Thread Lewis Taylor
Hi michael, the language code should always be in the form xx or xx-xx and the locale folders should be in the form xx or xx_XX. If you look through the translation code you can see that what django does is given a language xx-xx, it will check for xx_XX locale then xx. given xx (en for example),

URL resolving of patterns including 0 or 1 operator fails.......

2009-09-25 Thread Lewis Taylor
Here it goes: I wanted a clean url structure so i tried to abstract as much as i could in one url pattern. it looks something like this: url(r'^approved/((?P[a-zA-Z ,-]+)?)(/?)((?P[0-9]+)?) (/?) $', get_approved_images, name='approved_images') this in theory should allow the return of 1) all im

Django scalability with files

2009-08-27 Thread Lewis Taylor
Question: I have an imagefield that i want to create a thumbnail for on approval of the image. The problem is (setup is 2 django instances, load balancer and DB) if the image is stored on one machine it's not the cleanest solution to have to get the image from the other server and process it. Is

Re: JSON Serialization with ImageField

2009-08-24 Thread Lewis Taylor
The reason I'm trying it is due to a requirement, the data rather than being sent using a normal post request in a multienc form has to be sent over in a json string in the post request containing the base64 encoded image. On Mon, 2009-08-24 at 18:38 +0200, Maksymus007 wrote: > On Tue, Aug 4, 200

Re: JSON Serialization with ImageField

2009-08-24 Thread Lewis Taylor
Did you find a way to do this? I'm having the same problem. Lewis On Aug 4, 9:58 pm, scuzz wrote: > Hi, > > I'm trying to receive a file encoded in a json string and store it in > an ImageField. I was hoping to use the standard Django deserialisation > like: > > serializers.deserialize("json",