Earn with Gooooooooooooogle 5000 $ Per Month

2007-12-09 Thread maria_usa
http://www.DMDigitalMusic.com/money Visit the site and post ur comments thanks http://www.DMDigitalMusic.com/money --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send em

Re: Django Book Shipping!

2007-12-09 Thread Pablo Ruiz Múzquiz
Same here! At last! Pablo El s�b, 08-12-2007 a las 18:34 -0800, gordyt escribi�: > Greetings All, > > Just got an email from Amazon saying they have shipped the Django > book. Congrats to the team!!! > > --gordy > > > > --~--~-~--~~~---~--~~ You received

Re: get choice value in Form

2007-12-09 Thread F7
Hi Chris, get_SOMETHING_display() method is in model but not in Form. And I'm asking about Forms... But thanks anyway. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Dynamic Choicefield

2007-12-09 Thread pinco
Hi, I'm trying to populate dynamically at runtime a choicefield and subsequently validate the user choice, but without results. The goal is to permit the user, in an e-commerce application, to choose the number of products to buy through a choicefield, with a list of integer from 1 to a maximum n

Ordering by function

2007-12-09 Thread Eric Abrahamsen
Previous threads (http://groups.google.com/group/django-users/ browse_thread/thread/e2e7ae0ad9938d3/977e893021da52ef) have discussed the issue of ordering query sets by model method, instead of a database field. I've got a blog entry model with a pubDate, set to auto_now_add, and an option dispDat

Re: Ordering by function

2007-12-09 Thread Julien
Hi Eric, I was discussing similar issues in the developers forum: http://groups.google.com/group/django-developers/browse_thread/thread/93342d67c787e8a7# I don't know if that's exactly about what your asking, but apparently it's a bit difficult to implement. That'd be a great feature to have tho

Would you stop for a moment?!

2007-12-09 Thread عاصم عبد اللطيف
Excuse me!! Would you stop for a moment?! O...man...Haven't you thought-one day- about yourself ? Who has made it? Have you seen a design which hasn't a designer ?! Have you seen a wonderful,delicate work without a worker ?! It's you and the whole universe!.. Who has made them all ?!! You know who

Noob question: Which Linux distribution is "best" for Django?

2007-12-09 Thread Andreas Pfrengle
Hello, till now I've been experimenting with Django (development version) under Win2k. But Windows sucks. So I dare to make my first steps with Linux. Most of you will surely say I won't regret this decision ;-). But since I haven't any experience with Linux yet, I want to choose a distribution t

Re: Noob question: Which Linux distribution is "best" for Django?

2007-12-09 Thread hutuworm
Since Python's a OS dependless language, and Django's based on Python, so every popular Linux distro's suitable for Django developement. Acctually I'm using RHEL, Fedora, Ubuntu as Django development environment, or you may want to check http://distrowatch.com/ . hutuworm On Dec 9, 10:57 pm, An

Re: Noob question: Which Linux distribution is "best" for Django?

2007-12-09 Thread Horst Gutmann
IMO the differences between the distributions out there shouldn't really matter when it comes to GNU/Linux as a development environment. You should always have the option to install whatever you want from source. You might face some problems with some distros that use for example very old version

Re: Fwd: Break with Django SVN r6718

2007-12-09 Thread Todd O'Bryan
Crapola. r6718 was a patch I wrote. Without the patch you only get app-defined commands if you use manage.py. With django-admin.py, you don't get app-defined commands, even if you specify a --settings=path module. I just tried the steps you mentioned and everything works fine, both in Python 2.4

Re: Django Book Shipping!

2007-12-09 Thread hutuworm
The book is due to be published in December 2007 by Apress, but in the meantime you can read the "beta" book online. The final book will be posted when the print version ships. Since it's hard to get the latest book in our country which amazon don't ship books to, so I wonder if the statement abo

Re: Dynamic Choicefield

2007-12-09 Thread Karen Tracey
On Dec 9, 2007 7:31 AM, pinco <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm trying to populate dynamically at runtime a choicefield and > subsequently validate the user choice, but without results. > The goal is to permit the user, in an e-commerce application, to > choose the number of products to b

Re: Noob question: Which Linux distribution is "best" for Django?

2007-12-09 Thread Todd O'Bryan
If you decide to use Ubuntu, here's a link to how to set it up for developing Django using PyDev on Eclipse. The steps have been tested by several high school students, so they're fairly straightforward. (That doesn't mean you won't find a problem, however.) https://www.dupontmanual.org/wikis/spe

Re: Dynamic Choicefield

2007-12-09 Thread pk
This is a pretty common problem. Each form object gets instantiated as you need them. So in your POST handling, you need to instantiate the form with the same product field so that it can populate the choice field setting correct. i.e. FormForOptionQuantity(product,request) P.K. On Dec 9, 7:31

Understanding per view cache

2007-12-09 Thread Antoni Aloy
Hello all! I'm tryingn to use a the per view cache decorator cache_page, but I have a multi-languaje site so the cache engine must generate its key based on the page language. Using cache_page as is, doesn't work so my idea is to use the vary headers decorator. I have added patch_vary_headers(re

parameters getting modified

2007-12-09 Thread annacoder
Hi, hi, i have a problem where in the parameter matched by urls.py gets modified. i have the following pattern, '^post/(?P.*)', 'post' and, my url is post/http://google.com but, I get it as http:/google.com irrespective of the no. if ///, only one / comes out. any ideas? but, the regex seems

Re: Understanding per view cache

2007-12-09 Thread Antoni Aloy
I have one solution (patching the cache) so the cache key is generated using the current language. What I can't see is that the key generation takes into account the vary headers to generate the cache, so perhaps I have not undesrtood the documentation. -- Antoni Aloy López Binissalem - Mallorc

Re: Noob question: Which Linux distribution is "best" for Django?

2007-12-09 Thread Jarek Śmiejczak
> But since I haven't any experience with Linux yet, I want to choose a > distribution that is best suited for someone coming from the Windows- > world AND suited to establish a Django development environment. As far as I know Fedora, Ubuntu and Suse have LiveCD . I suggest to download ISO, burn I

[ يؤ يؤ | قصــه الخدامــه مع الولــد الو سيم | سفن إل ]

2007-12-09 Thread البليهي
[ يؤ يؤ | قصــه الخدامــه مع الولــد الو سيم | سفن إل ] سجادة تصلي للهـ لكن بعد ماجو الناس قامت ترقصـ ! http://www.77l7.com/vb/forum51/thread615.html قصــه الخدامــه مع الولــد الو سيم http://www.77l7.com/vb/forum17/thread541.html ماهو الشيْ الذي لا يعلمه الله ؟؟؟!!! http://www.77l7.com/vb/forum7

Re: static on separate what?

2007-12-09 Thread andy baxter
James Bennett wrote: > On Dec 8, 2007 10:57 PM, Carl Karsten <[EMAIL PROTECTED]> wrote: > >> I this text, does "separate Web server" contingent on a 2nd box? If it is >> only >> one box, the same Apache instance would be preferred, right? >> > > No, and no. > > You don't have to have sep

How Much Do You Know About PayDay Loans?

2007-12-09 Thread Naeem
How Much Do You Know About PayDay Loans? Most people have heard of payday loans. They are well spread over the internet in a plethora of small ads on blogs and websites everywhere. However not everyone is aware of exactly what payday loans are. http://doiop.com/ga31b1 Does the Truth Help or H

Re: static on separate what?

2007-12-09 Thread Jeremy Dunck
On Dec 9, 2007 3:07 PM, andy baxter <[EMAIL PROTECTED]> wrote: > Does this mean running the django server on a different port to the > static files, or is there a way to do it through virtual hosts? > If you only have one IP, you could run media off a non-standard port. If you have multiple IPs,

Re: static on separate what?

2007-12-09 Thread Joseph Heck
running the media off a non-standard port without a front-end proxy to make it "look" like it's coming from somewhere on Port 80 may get you some trouble. In particular, we found that a lot of folks behind firewalls and in corporate environments simply didn't get anything on the media server *unle

Re: Prevent SQL-injection

2007-12-09 Thread Nianbig
Thanks for your reply. I´m building an advanced search/filter page and it got too messy doing it with the standard Django ORM... so I decided to go with my own SQL- string... Therefore I need a function that can make input strings SQL-safe.. /Nianbig On Dec 9, 1:39 am, Ned Batchelder <[EMAIL P

Checking if in query set...

2007-12-09 Thread radioflyer
I have a m2m relationship between users (guardians) and students. I want to check if the currently logged in user has permission to edit a particular student. parents = students.parents.all() And then check if logged in user.id matches against any of the parent ids. Is there a query set method

Check if in query set...

2007-12-09 Thread radioflyer
I have a m2m relationship between users (guardians) and students. I want to check if the currently logged in user has permission to edit a particular student. s = Student.objects.get(pk=student_id) parents = s.parents.all() And then check if logged in user.id matches against any of the parent i

Re: Check if in query set...

2007-12-09 Thread Todd O'Bryan
s = Student.objects.get(pk=student_id) if user in s.parents.all(): // the user is legit else: // user is not s's guardian On Dec 9, 2007 6:11 PM, radioflyer <[EMAIL PROTECTED]> wrote: > > I have a m2m relationship between users (guardians) and students. > > I want to check if the curren

Re: Check if in query set...

2007-12-09 Thread Tim Chase
> I want to check if the currently logged in user has permission to edit > a particular student. > > s = Student.objects.get(pk=student_id) > parents = s.parents.all() > > And then check if logged in user.id matches against any of the parent > ids. Looks like you're interested in something like

Re: Django Book Shipping!

2007-12-09 Thread gordyt
hutuworm not to worry... you can purchase a PDF version of the book here: http://www.apress.com/book/view/1590597257 I have done so. It's on my computer now and I can assure you it is available. --g --~--~-~--~~~---~--~~ You received this message because you a

my way of how to be an ebay power seller in 90 days?

2007-12-09 Thread business one way
www.ecshop365.com Right from the start, I want you to understand something... Did you notice I have already revealed my eBay ID? How many so called 'eBay Guru's' are prepared to do that? If that does not tell you I am genuine nothing will. So please understand this. You can make hundreds per day f

Re: Noob question: Which Linux distribution is "best" for Django?

2007-12-09 Thread Kenneth Gonsalves
On 09-Dec-07, at 8:27 PM, Andreas Pfrengle wrote: > But since I haven't any experience with Linux yet, I want to choose a > distribution that is best suited for someone coming from the Windows- > world AND suited to establish a Django development environment. mandriva -- regards kg http://la

Re: Ordering by function

2007-12-09 Thread Eric Abrahamsen
On Dec 9, 9:13 pm, Julien <[EMAIL PROTECTED]> wrote: > Hi Eric, > > I was discussing similar issues in the developers > forum:http://groups.google.com/group/django-developers/browse_thread/thread... > > I don't know if that's exactly about what your asking, but apparently > it's a bit difficult t

Re: Checking if in query set...

2007-12-09 Thread Jeremy Dunck
On Dec 9, 2007 5:06 PM, radioflyer <[EMAIL PROTECTED]> wrote: > > parents = students.parents.all() > > And then check if logged in user.id matches against any of the parent > ids. It'd help if you shared your model definitions; any answers given will be guesses as it is. > Is there a query set m

Re: Checking if in query set...

2007-12-09 Thread radioflyer
On Dec 9, 8:52 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > On Dec 9, 2007 5:06 PM, radioflyer <[EMAIL PROTECTED]> wrote: > > > > > parents = students.parents.all() > > > And then check if logged in user.id matches against any of the parent > > ids. > > It'd help if you shared your model defini

Re: Checking if in query set...

2007-12-09 Thread radioflyer
On Dec 9, 9:43 pm, radioflyer <[EMAIL PROTECTED]> wrote: > On Dec 9, 8:52 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > > > > > On Dec 9, 2007 5:06 PM, radioflyer <[EMAIL PROTECTED]> wrote: > > > > parents = students.parents.all() > > > > And then check if logged in user.id matches against any

Re: Check if in query set...

2007-12-09 Thread radioflyer
Thanks Todd. That's what I needed. Thought it might be that simple. On Dec 9, 7:01 pm, "Todd O'Bryan" <[EMAIL PROTECTED]> wrote: > s = Student.objects.get(pk=student_id) > if user in s.parents.all(): > // the user is legit > else: > // user is not s's guardian > > On Dec 9, 2007 6:11 PM

Re: Checking if in query set...

2007-12-09 Thread Jeremy Dunck
On Dec 9, 2007 8:43 PM, radioflyer <[EMAIL PROTECTED]> wrote: > > On Dec 9, 8:52 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > > > On Dec 9, 2007 5:06 PM, radioflyer <[EMAIL PROTECTED]> wrote: > > > > > > > > > parents = students.parents.all() ... > > class Student(models.Model): > pare

Re: Noob question: Which Linux distribution is "best" for Django?

2007-12-09 Thread [EMAIL PROTECTED]
I'd strongly recommend Ubuntu. It's got the power and flexibility of Debian with ease-of-use that is absolutely outstanding. It's a stable server product, and performs very well on the desktop as well. On Dec 9, 9:57 am, Andreas Pfrengle <[EMAIL PROTECTED]> wrote: > Hello, > > till now I've been

Django Application Without Source?

2007-12-09 Thread [EMAIL PROTECTED]
So I've been considering developing a rather extensive commercial application with Django, but would like to prevent the user from prying into the source. I know there are some really good ways to do this with simple apps (py2exe, etc.), but is there a good way to do this with full-fledged Django

Re: Django Application Without Source?

2007-12-09 Thread [EMAIL PROTECTED]
Or perhaps I'm reading into this too much. If I distribute the .pyc files minus the .py files, would that work? Is this machine- independent (IE: I "compile" the source on an x86, it'll be ok on a 64- bit or other architecture?) --~--~-~--~~~---~--~~ You received th