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 User.obje
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:
>
>
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
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 ca
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
&
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
able to find 1 Directive for Apache, and 4 parameters with manage.py.
My question is, are th
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
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:
>
> > > On Aug 20, 3:01
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
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 fil
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
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 pre-fork
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 W3Schools...
On Aug 19, 12:43 am, "Placid Publishing, LLC"
<[EMAIL PROTECTED]> wrote:
> Sadly there is not much to trace back, the dev server runs fine with
> memcache, but mod_python/apache doesn't. Mod_python/apache work with the
> file system cache as does the dev server, with memcache as the cache
> stor
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 respe
I'm sorry this is the method I've been trying to use
def previous(request, picture_id):
artist_id =
Picture.objects.select_related().get(id=picture_id).artist_id
try:
previous_picture_id =
Picture.objects.filter(artist__id__exact=artist_id).filter(id__lt=picture_id
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 t
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 be
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 t
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 djang
hey damian,
thanks for replying. i'd like to save the thumbnail into a separate
field. i just found the save_fieldname_file() method using the shell.
so my model looks like this:
class Picture(models.Model):
image = models.ImageField(upload_to="uploads", blank=True)
thumbnail = m
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
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 [EMA
nning 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 u
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
25 matches
Mail list logo