Filter users by email in a test

2010-03-28 Thread sasha
Hi, In one of my tests I set up a couple of users with usernames, emails, passwords, User.objects.create_user("johndoe", "j...@example.org", "passwd"). But when I try to look them up later they don't appear to have the email addresses, i.e. >>> User.objects.all() [] >>>[n.email for n in

Re: Django Flatpages With Memcache as storage location

2007-09-10 Thread Sasha Weberov
On Sep 9, 8:52 pm, Brian Morton <[EMAIL PROTECTED]> wrote: > What happens if you use a simple or dummy cache? > > On Sep 9, 2:51 pm, Sasha Weberov <[EMAIL PROTECTED]> wrote: > > > > > On Sep 9, 6:15 am, Thomas Badran <[EMAIL PROTECTED]> wrote: > >

Re: Django Flatpages With Memcache as storage location

2007-09-09 Thread Sasha Weberov
On Sep 9, 6:15 am, Thomas Badran <[EMAIL PROTECTED]> wrote: > My best guess would be that you are missing the / at the start and end > of the url > > Tom > > > > On Sat, 2007-09-08 at 21:00 -0700, Sasha Weberov wrote: > > All of my flatpage pages t

Django Flatpages With Memcache as storage location

2007-09-08 Thread Sasha Weberov
All of my flatpage pages throw a 404. If I turn debug on which disabled cacheing they re-appear. I've tried restarting memcached and my SCGI server as well as Apache and it did nothing. I've also svn'd the latest Django trunk; the problem still persists. Anyone got any idea what can possibly be

Re: SCGI

2007-08-25 Thread Sasha Weberov
On Aug 23, 9:32 pm, Sasha Weberov <[EMAIL PROTECTED]> wrote: > I recently setup mod_scgi and found some configuration examples on a > RoR site to get it working. It seems pretty nice so far, much easier > to setup then FastCGI, but the configuration is non existant. I was &

Re: Mod_Python and Apache

2007-08-21 Thread Sasha Weberov
u to see the same problem. > > Graham > > On Aug 22, 3:25 am, Sasha Weberov <[EMAIL PROTECTED]> wrote: > > > > > On Aug 20, 6:38 am, Graham Dumpleton <[EMAIL PROTECTED]> > > wrote: > > > > On Aug 20, 5:13 pm, Sasha Weberov <[EMAIL PROTECTED

Re: Mod_Python and Apache

2007-08-21 Thread Sasha Weberov
On Aug 20, 6:38 am, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Aug 20, 5:13 pm, Sasha Weberov <[EMAIL PROTECTED]> wrote: > > > > > > > On Aug 20, 12:13 am, Graham Dumpleton <[EMAIL PROTECTED]> > > wrote: > > > >

Re: Django with cmemcache extension issues

2007-08-20 Thread Sasha Weberov
On Aug 19, 12:18 am, Sasha Weberov <[EMAIL PROTECTED]> wrote: > On Aug 18, 10:01 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > > > On 8/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > ... > > > > however, upon enabled the mid

Re: Ajax Form Submission Trouble

2007-08-20 Thread Sasha Weberov
On Aug 19, 3:11 am, Thejaswi Puthraya <[EMAIL PROTECTED]> wrote: > > Thanks a bunch, but would that go into the markup or into the > > comments.js file? I'm a js newb (really bad one). I'm guessing into > > the js file, the submit button doesn't have an id. Here is my current > > comments.js

Re: Mod_Python and Apache

2007-08-20 Thread Sasha Weberov
On Aug 20, 12:13 am, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Aug 20, 3:01 pm, Sasha Weberov <[EMAIL PROTECTED]> wrote: > > > Is it normal to experience a sudden sharp spike in cpu and memory > > usage for about a minute or so after a start/stop and restart

Mod_Python and Apache

2007-08-19 Thread Sasha Weberov
Is it normal to experience a sudden sharp spike in cpu and memory usage for about a minute or so after a start/stop and restart? I'm running the pre-fork mpm, FreeBSD 6.2, and latest mod_python. I've tried disableing mod_python and it went away, so it's clearly mod python. I know that the

Re: Ajax Form Submission Trouble

2007-08-19 Thread Sasha Weberov
On Aug 19, 1:29 am, Thejaswi Puthraya <[EMAIL PROTECTED]> wrote: > > I'm using mochikit > > Try, > > onclick="$('button_id').disabled=true;" > > It is 'disabled' and not 'disable'. > Check out button properties > athttp://www.w3schools.com/htmldom/dom_obj_button.asp > According the

Re: Django with cmemcache extension issues

2007-08-18 Thread Sasha Weberov
On Aug 18, 10:01 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > On 8/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > ... > > > however, upon enabled the middlwear with memcached using > > cmemcached... I've tried > > cacheing with the file system as the source and its fine. > > With

Re: QuerySet

2006-07-18 Thread sasha
I have a gallery of images. I've written two views, one pulls the next image, one the previous. i'd like the views to loop, returning the the first image when the next method reaches the end an d the last when the previous method does. The next method loops fine, but the previous doesn't. Here's

Re: QuerySet

2006-07-17 Thread sasha
i'm trying to access the last record to loop over the query set. however somehow when i call on Something.objects.order_by("-id")[0] the set is truncated and it starts to loop over just the first and last objects. --~--~-~--~~~---~--~~ You received this message

QuerySet

2006-07-17 Thread sasha
Hi, I must be missing something really obvious - QuerySets don't support negative notation, so what is then the right way of getting at the last item in the set? Thanks, Sasha --~--~-~--~~~---~--~~ You received this message because you are subscribed

Admin interface

2006-06-25 Thread Sasha
How do I disable change input field on ImageField? so that an image can only be uploaded once. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

manipulating images

2006-06-20 Thread Sasha
Hello, I'd like to create a thumbnail for an image after it has been uploaded. I have seen two possible approaches descibed here - subclassing ImageField and overriding the save() method of the model. Although the former seems more elegant, the latter seems like less work and I'm inclined to try

Re: physical path of an uploaded image

2006-03-17 Thread Sasha
Thank you! That work great. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to

physical path of an uploaded image

2006-03-17 Thread Sasha
mod_python under apache. i'm serving media files from the same apache instance, but i have a separate location for the media. thanks, sasha --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&q

physical path appear in uploaded image

2006-03-17 Thread Sasha
i have an that allows images to be uploaded. when i try to reference an image in a template by calling object.get_image_url or object.get_image_filename i get the full physical path including the filename in response. can anyone recommend an approach to troubleshoot this? thanks, sasha