getting the object with max value

2010-01-24 Thread Kenneth Gonsalves
hi, I have a model 'Player' and a Model 'Handicap'. Handicap will have several fields, one of which is a foreign key to player. Now I need to get the Handicap instance when the player had the highest handicap. I can use Max to find the highest handicap and do a query to identify the instance

Re: Remove items from queryset?

2010-01-24 Thread derek
Carl You may be better off starting a new thread for this, rather than posting in the middle of someone else's (even if related). I too have a similar issue; trying to filter records for a user based on which "group/s" (a separate table) they belong to. Was about to start a thread when I saw

Re:login failure

2010-01-24 Thread harryos
On Jan 24, 10:45 pm, Daniel Roseman wrote: > You put them in your project's settings.py (which, through some magic, > is imported via django.conf). You should not be editing any of the > code inside Django itself, unless you know what you're doing. Thanks for the reply..I

Re: Looking for Lead Django Developer in LA please call 310 571 JOBS

2010-01-24 Thread Jeffrey Johnson
5 years of python is certainly not unreasonable. On Jan 25, 2010, at 0:20, Sam Walters wrote: Is it just me or is asking for 5+ years for django unlikely. http://en.wikipedia.org/wiki/Django_%28web_framework%29 "released publicly under a BSD license in July 2005" On

Re: Looking for Lead Django Developer in LA please call 310 571 JOBS

2010-01-24 Thread Kenneth Gonsalves
On Monday 25 Jan 2010 10:50:27 am Sam Walters wrote: > Is it just me or is asking for 5+ years for django unlikely. > Adrianh and a few others have 5+ years of django - but most of the other lead devels are well under 5 -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS

Re: Looking for Lead Django Developer in LA please call 310 571 JOBS

2010-01-24 Thread Sam Walters
Is it just me or is asking for 5+ years for django unlikely. http://en.wikipedia.org/wiki/Django_%28web_framework%29 "released publicly under a BSD license in July 2005" On Mon, Jan 25, 2010 at 2:13 PM, James Matthews wrote: > People should research before posting.

Re: HTTP 500 error in apache but not in test server

2010-01-24 Thread Mark Underwood
wow. thats totally my bad. Sorry graham that ive lead you on a chase on whats going wrong. I pretty much knew it was something I had done. Just not experienced enough to work it out. As it turned out, once i got past that little hurdle (which im pretty sure i introduced at some point) i got to

[App Idea] Django-CDN

2010-01-24 Thread Dj Gilcrease
Ok so today while randomly surfing the web (StumbleUpon) I came across 4 blog posts in a row about CDNs and scripts people had written for managing them. This gave me the idea to write an automated CDN management tool for django that will automatically optimize and upload new versions of a file to

Re: Looking for Lead Django Developer in LA please call 310 571 JOBS

2010-01-24 Thread James Matthews
People should research before posting. But I always enjoy these posts. On Fri, Jan 22, 2010 at 7:09 PM, James Bennett wrote: > On Fri, Jan 22, 2010 at 6:48 PM, CerenGuven wrote: > > 3-5+ years Django/Python development experience > > If you

Re: How to pass the username into a parameter in the views.py

2010-01-24 Thread min
Thank you! On Jan 25, 11:51 am, Sam Lai wrote: > 2010/1/25 min : > > > Hi, everyone. > > > In the first place, I will login to access a web page by my "usename" > > When I signed in, how to send my "username" into a parmaeter in the > > views.py > >

Re: HTTP 500 error in apache but not in test server

2010-01-24 Thread Graham Dumpleton
On Jan 25, 12:54 pm, Mark Underwood wrote: > Hi all, > > Ive already posted a lot of information > herehttp://serverfault.com/questions/103480/http-500-error-from-post-reuq... > all the logs etc. so i figure i wont post it all again. But its come > down to ive got a view

HTTP 500 error in apache but not in test server

2010-01-24 Thread Mark Underwood
Hi all, Ive already posted a lot of information here http://serverfault.com/questions/103480/http-500-error-from-post-reuqest-to-django-vai-wsgi-and-apache all the logs etc. so i figure i wont post it all again. But its come down to ive got a view that takes a POST request, with a username and

Re: what is this error.

2010-01-24 Thread Russell Keith-Magee
On Sat, Jan 23, 2010 at 7:54 PM, Atamert Ölçgen wrote: > On Saturday 23 January 2010 13:24:44 chiranjeevi.muttoju wrote: >> please reply if anybody know what it is.. >> >> thank you.. >> > It would be helpful if you send the code for the models you are trying to > syncdb. Indeed

Model Field Subclass

2010-01-24 Thread Igor
Hi all, I'm subclassing ImageField to add another function/property to the standard one (probably will add more later): from django.db import models class RemoteImageField(models.ImageField): def thumbnail_url(self, name): self.storage.thumbnail_url(name) ...and then I

Re: How to pass the username into a parameter in the views.py

2010-01-24 Thread Sam Lai
2010/1/25 min : > Hi, everyone. > > In the first place, I will login to access a web page by my "usename" > When I signed in, how to send my "username" into a parmaeter in the > views.py Look here

How to pass the username into a parameter in the views.py

2010-01-24 Thread min
Hi, everyone. In the first place, I will login to access a web page by my "usename" When I signed in, how to send my "username" into a parmaeter in the views.py @login_required def new_page(request): #how to get the username? form = newForm() variables = RequestContext(request,

Re: cache large files

2010-01-24 Thread Russell Keith-Magee
On Mon, Jan 25, 2010 at 1:27 AM, Henrik Genssen wrote: > Hi, > > I am using memcached for caching my sites. The documentation says when > not to use it: > http://code.google.com/p/memcached/wiki/WhyNotMemcached > > one point is output larger 1 MB Ok - please stop. This is

Django Messaging for AJAX Calls Using Jquery

2010-01-24 Thread Hunter Ford
Hey Guys, I'm really excited about the new messaging framework included in Django 1.2 Alpha. I do a mix of AJAX and traditional HTTP GET requests on my site, but I wanted an easy way to interact with the messaging API for either methods. Please check it out and let me know your thoughts!

Re: search db & if sequences

2010-01-24 Thread mehdi0016
yes, that helps much. but in my dynamic field searching issue, exact field name used by filter method. even dictionary of fields not help there. tables = {"Author": Author, "Book": Book,} fields = {"Author":Author().first_name, "Book":Book().title} if requst.GET['table'] in tables: f =

Re: Scammer / Job fraud rehash - Do NOT perform any business with Eike Post

2010-01-24 Thread Shawn Milochik
Stop replying to the list e-mail and start replying to each other. If you meant how to remove it from the list history, you can't. So please stop adding to it. Shawn Sent from my iPhone On Jan 24, 2010, at 4:20 PM, Eike wrote: Shawn: Sorry to ask! Could you tell me

Re: Scammer / Job fraud rehash - Do NOT perform any business with Eike Post

2010-01-24 Thread Eike
Shawn: Sorry to ask! Could you tell me how to take this conversation off the list? Thanks! Eike On Jan 24, 9:22 pm, Shawn Milochik wrote: > Please take this conversation off-list. -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Scammer / Job fraud rehash - Do NOT perform any business with Eike Post

2010-01-24 Thread Eike
David: It is true, I contacted many people on Djangopeople and Djangogigs in 2008. Also, I hired a programmers to help me find Django programmers for me. I know he send out messages in my name. Maybe you could check if the messages you are complaining are from Argentina? But the real point is

Re: authentication and an http POST from a java applet

2010-01-24 Thread stephendwolff
Thanks for that, I found a quick and easy way in the end - passing the cookie data with javascript (as you suggested with document.cookie) to the applet, and from there, adding the cookie to my POST, ie: connection = url.openConnection(); connection.setDoOutput(true);

Re: Scammer / Job fraud rehash - Do NOT perform any business with Eike Post

2010-01-24 Thread David Ross @ Wolfeon
- I don't solicit Django on my website nor have I ever. - I don't give out this email address to people who I perform work - I give my fur name to people, not this one. - This email address is only for contact for automation with websites - Everything else is spam - I've only emailed the django

Re: Scammer / Job fraud rehash - Do NOT perform any business with Eike Post

2010-01-24 Thread Shawn Milochik
Please take this conversation off-list. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to

Re: Converting Django testclient code to run as black-box tests

2010-01-24 Thread Malcolm Box
Hi, On Sat, Jan 23, 2010 at 11:55 AM, Russell Keith-Magee < freakboy3...@gmail.com> wrote: > On Sat, Jan 23, 2010 at 6:40 PM, Malcolm Box > wrote: > > Hi, > > > > I've got an existing unit test suite using the django.test.TestCase class > > that exercises the HTTP

Re: Scammer / Job fraud rehash - Do NOT perform any business with Eike Post

2010-01-24 Thread Eike
Tim: Maybe you are right that I contacted him about working together with me on Django Project! But it seems that David is saying that my profile is fake and that I ask for money! The business proposal that I did send to many potential Django programmers, was about working together on a project

Re: Django Admin interface and filter by value

2010-01-24 Thread Peter Bengtsson
Sounds like something you'd have to do with javascript by extending the admin interface's templates. Any other default values are best done by settings up signals for your User class. On a more general, yet important note, I would strongly advice against making your own User model unless you

Re: Setting a user to have particular permission group when registering with django-registration?

2010-01-24 Thread Peter Bengtsson
Use signals. django-registration will create a new User so you can do something like this: from django.db.models.signals import post_save def give_permission(sender, user, created, **__): if created: user.groups.add(u"My group") post_save.connect(give_permission, sender=User) If you

Re: Best Practice for developing djangoapp in a repository

2010-01-24 Thread Peter Bengtsson
Just install django-tagging as normal so that it's on the system path and included in your settings.py INSTALLED_APPS. Then you can run its tests. Leave it like that. Then to make it work exactly like you want it to work, subclass it. Your other apps shouldn't pretend to depend on tagging but

Re: newline in GET data

2010-01-24 Thread Peter Bengtsson
It's not stripped by Django. You must just have forgotten to urlencode the parameters before it goes back into the app. On Jan 22, 12:00 am, Sumanth wrote: > Hi , > > I am having newlines in GET data , but when the data comes to server > newline chars are removed. Is that

Re: cache large files

2010-01-24 Thread Peter Bengtsson
Keep it simple. Use nginx or apache and in your Django app you simply write to the filesystem. "Invalidation" can be done by simply deleting the file which is easy. Something like nginx for serving static file is faster than anything else. I'm sure you already know how to deploy static files such

Re: Email field - Memory exception - object at 0xa3c9e8c

2010-01-24 Thread Daniel Roseman
On Jan 24, 1:32 am, Bhaskar Gara wrote: > I am getting error for only emailfield remaining string fields are > working fine the Error is > > DEBUG:root: > That's not the error. The error page usefully comes with a complete traceback, plus a link to 'switch to copy and paste

Re: search db & if sequences

2010-01-24 Thread Doug Blank
On Sun, Jan 24, 2010 at 1:05 PM, mehdi0016 wrote: > hi > i'm new with python and django and i work on search page of my site. > in my html search form, user can choose table(or field) which want to > search. in server-side i use sequences of 'if' to find chosen table(or >

Re: Scammer / Job fraud rehash - Do NOT perform any business with Eike Post

2010-01-24 Thread Tim Miller
So this might be a reaspon why you got confused. Maybe you wanted to write about somebody else, while you read the advice I had given to other people: „ Never pay in advance unless you know the programmer. Always fix milestones and pay after the milestones“. I don't think he's confusing you

search db & if sequences

2010-01-24 Thread mehdi0016
hi i'm new with python and django and i work on search page of my site. in my html search form, user can choose table(or field) which want to search. in server-side i use sequences of 'if' to find chosen table(or field) and related django model. ... #here i assume searched fields have the same

Re: where to put the username password data

2010-01-24 Thread andreas schmid
in your projects settings.py harryos wrote: > hi > I was going thru bennet's practical django book..In the weblog app it > mentions that the DELICIOUS_USER ,DELICIOUS_PASSWORD values should be > set in settings file.The book mentions an import like > from django.conf import settings > When I

Re: django and webcams

2010-01-24 Thread H . İbrahim Yılmaz
Thanks Atamert, This is! :) http://docs.pyamf.org/dev/tutorials/actionscript/bytearray.html I visited your home page and read your articles. You're bokmarked! ;) Thanks! 2010/1/24 Atamert Ölçgen : > Hi İbrahim, > > On Saturday 23 January 2010 23:59:23 H.İbrahim Yılmaz wrote: >>

Re: where to put the username password data

2010-01-24 Thread Daniel Roseman
On Jan 24, 5:39 pm, harryos wrote: > hi > I was going thru bennet's practical django book..In the weblog app it > mentions that the DELICIOUS_USER  ,DELICIOUS_PASSWORD values should be > set in settings file.The book mentions an import like > from django.conf import

where to put the username password data

2010-01-24 Thread harryos
hi I was going thru bennet's practical django book..In the weblog app it mentions that the DELICIOUS_USER ,DELICIOUS_PASSWORD values should be set in settings file.The book mentions an import like from django.conf import settings When I looked thru the directory in django/conf I could not find a

cache large files

2010-01-24 Thread Henrik Genssen
Hi, I am using memcached for caching my sites. The documentation says when not to use it: http://code.google.com/p/memcached/wiki/WhyNotMemcached one point is output larger 1 MB I have a site producing pdf files only, where size can easily go over 1 MB. As the docs above mention mogilefs as an

Re: MySQL-python 1.2.3 and OS X 10.5: 64- or 32-bit?

2010-01-24 Thread Dave E
Update: removed 64-bit MySQL, installed 32-bit version from package, re-installed MySQL-python after removing with easy_install -m (which now also removes the line in easy-install.pth). >>>import MySQLbd is okay. Got warning so will see if okay. -- You received this message because you are

Re: django and webcams

2010-01-24 Thread Atamert Ölçgen
Hi İbrahim, On Saturday 23 January 2010 23:59:23 H.İbrahim Yılmaz wrote: > Hi, > I'm looking for a method to use my webcam for take a photo in my > project. What is the best solution for that? > Thanks This is not Django related. You probably need to do that via Flash. This might help;

Re: django and webcams

2010-01-24 Thread Tran Cao Thai
opencv ? On Sun, Jan 24, 2010 at 5:59 AM, H.İbrahim Yılmaz wrote: > Hi, > I'm looking for a method to use my webcam for take a photo in my > project. What is the best solution for that? > Thanks > > -- > http://www.arkeoloji.web.tr > > -- > You received this message