Re: Installing Django

2007-07-15 Thread Russell Keith-Magee
On 7/16/07, shahabbash <[EMAIL PROTECTED]> wrote: > > Hi Everyone, > > I am new to Django and am currently following the instructions on the > Django site to get all the necessary components installed. My > question is simple: Can Django be installed and run on Windows? If so > where can I get t

Installing Django

2007-07-15 Thread shahabbash
Hi Everyone, I am new to Django and am currently following the instructions on the Django site to get all the necessary components installed. My question is simple: Can Django be installed and run on Windows? If so where can I get the Windows Installer? Thanks --~--~-~--~~---

Re: Defining your own fields for newforms

2007-07-15 Thread Malcolm Tredinnick
On Sun, 2007-07-15 at 20:07 +0200, Christian Joergensen wrote: > Hi > > I am working on defining my own CurrencyField for newforms. The idea is > to store the value (amount) in the DB by the smallest unit as an > IntegerField. That is: > > 1,450.75 => 145075 > > The clean method will happily

Re: newforms-admin: admin related field options

2007-07-15 Thread Malcolm Tredinnick
On Sat, 2007-07-14 at 21:15 -0700, David S. wrote: > I am using the newforms-admin branch, which is really great. But I > realized I still have admin specific fields options in my model, e.g. > blank, choices. I am wondering where they really belong. Those aren't admin-specific, since they are

Re: Related field has invalid lookup: iexact

2007-07-15 Thread Malcolm Tredinnick
On Mon, 2007-07-16 at 01:39 +, Brian Morton wrote: > I am getting the following error in my application's admin area trying > to add a record for a particular object. It seems to stem from the > fact that I am relating this record to a "member" object, and a member > is OneToOne with User. I

Related field has invalid lookup: iexact

2007-07-15 Thread Brian Morton
I am getting the following error in my application's admin area trying to add a record for a particular object. It seems to stem from the fact that I am relating this record to a "member" object, and a member is OneToOne with User. If I relate the object directly to User as a foreignkey, I have

Re: Flash Message template tag

2007-07-15 Thread James Bennett
On 7/15/07, rtconner <[EMAIL PROTECTED]> wrote: > Yeah I could not get http://www.djangosnippets.org to work. Every time > I tried to add a snippet I got an error. Try again; I just kicked the server and things seem OK now. -- "Bureaucrat Conrad, you are technically correct -- the best kind of

Re: Updating multiple rows with Django DB API?

2007-07-15 Thread Steven Hilton
On 7/15/07, James Bennett <[EMAIL PROTECTED]> wrote: > > On 7/14/07, Steven Hilton <[EMAIL PROTECTED]> wrote: > > I could be updating any number of rows in bar. I want to do this > > without do a select on bar. > > Also, it's worth noting that this is also fairly easy to do, it just > involves a l

HOW TO MAKE EASY MONEY FAST AND LEGALLY!!!!!!!!

2007-07-15 Thread wassup6930
HOW TO MAKE EASY MONEY FAST AND LEGALLY This seems to really have potential. This is the way the original post appeared when I first found it. Read it all then decide for yourself. It works for me! I found this on a bulletin board and decided to try it. A little while back, I was browsing

Re: Flash Message template tag

2007-07-15 Thread rtconner
Yeah I could not get http://www.djangosnippets.org to work. Every time I tried to add a snippet I got an error. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: method as view

2007-07-15 Thread Forest Bond
On Sun, Jul 15, 2007 at 03:34:40PM -0500, Carl Karsten wrote: > Forest Bond wrote: > > I'm not even sure if this sort of thing is possible, but it might be: > > > > > > class MsgViews(object): > > > > @static_met

how I Turned $10 To $5000 In Less Than A Month

2007-07-15 Thread cdando
Here is the simplest way you can make your first $1,000 on the Internet within a week or two. $10 can turn into $5,000 in one month or less. Please rush now, Act now!!! PROVEN AND TESTED, MAKING MONEY USING E-GOLD... SPEND $10 AND MAKE THOUSANDS... Spend $10 to Make Thousands - Proven to work by O

TURN $6 INTO $15,000 IN ONLY 30 DAYS...HERES HOW!

2007-07-15 Thread cdando
TURN $6 INTO $15,000 IN ONLY 30 DAYS...HERES HOW! PAYPAL VERIFIES THAT THIS $6 INVESTMENT SCHEME IS 100% LEGAL AND IS A BIG HIT THIS YEAR SEE THEIR NOTE BELOW OR ASK THEM DIRECTLY... THIS SCHEME MIGHT TAKE 15-30 MINUTES AND JUST $6, BUT IT IS 100% WORTH IT TO MAKE THOUSANDS SO QUICKLY. THIS IS NOT

Re: What version of Django do I have?

2007-07-15 Thread Greg
Collin, I got it figured out. I ran 'svn info' from my django folder and I was able to see what Revision I had. Thanks On Jul 15, 3:47 pm, Greg <[EMAIL PROTECTED]> wrote: > Collin, > When I run the command 'svn info' I get 'svn: '.' is not a working > copy'. I'm currently using a developmental

Re: What version of Django do I have?

2007-07-15 Thread Greg
Collin, When I run the command 'svn info' I get 'svn: '.' is not a working copy'. I'm currently using a developmental version. On Jul 15, 3:45 pm, Collin Grady <[EMAIL PROTECTED]> wrote: > 'svn info' --~--~-~--~~~---~--~~ You received this message because you ar

Re: What version of Django do I have?

2007-07-15 Thread Collin Grady
'svn info' --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For

Re: Best Practice for translating db-stored values

2007-07-15 Thread Collin Grady
I like this method: http://code.google.com/p/i18ndynamic/ --~--~-~--~~~---~--~~ 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

Re: method as view

2007-07-15 Thread Collin Grady
You are going to run into problems with that - model inheritance does not work. --~--~-~--~~~---~--~~ 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.co

What version of Django do I have?

2007-07-15 Thread Greg
Hello, I need to make sure I have django version 5302 or later. Where can I go or what command do i need to run to see what version I have? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gro

Re: method as view

2007-07-15 Thread Carl Karsten
Forest Bond wrote: > On Sun, Jul 15, 2007 at 02:59:57PM -0500, Carl Karsten wrote: >> How can I use a method as a view? (so that I can subclass and extend later.) >> >> foo works, the other 2 give errors: >> >> # msg/urls.py >> from django.conf.urls.defaults import * >> urlpatterns = patterns('ms

Re: Flash Message template tag

2007-07-15 Thread rtconner
I'll just quote myself on that one.. "So I don't know where to post this" Nice site, yeah I'll post it on there. On Jul 15, 1:32 pm, Christian Joergensen <[EMAIL PROTECTED]> wrote: > rtconner wrote: > > Oh yeah I also wrote a FlashMsgMiddleware that makes this even easier. > > It's not needed at

Get 1000 $ / day

2007-07-15 Thread newbar
Get 1000 $ / day all BIG BIG business on the web !! http://www.cash-dreams.biz --~--~-~--~~~---~--~~ 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.

Re: method as view

2007-07-15 Thread Forest Bond
On Sun, Jul 15, 2007 at 02:59:57PM -0500, Carl Karsten wrote: > > How can I use a method as a view? (so that I can subclass and extend later.) > > foo works, the other 2 give errors: > > # msg/urls.py > from django.conf.urls.defaults import * > urlpatterns = patterns('msg.views', > (r'^det

method as view

2007-07-15 Thread Carl Karsten
How can I use a method as a view? (so that I can subclass and extend later.) foo works, the other 2 give errors: # msg/urls.py from django.conf.urls.defaults import * urlpatterns = patterns('msg.views', (r'^detail/(?P[-\w]+)/$', 'foo'), (r'^detail/x/(?P[-\w]+)/$', 'MsgViews.message_de

Re: Flash Message template tag

2007-07-15 Thread Christian Joergensen
rtconner wrote: > Oh yeah I also wrote a FlashMsgMiddleware that makes this even easier. > It's not needed at all, but it'll save you a line of code here and > there. I can't post it if anyone wants it. Why not just post it to http://www.djangosnippets.org ? :) -- Christian Joergensen | Linux, p

Re: Defining your own fields for newforms

2007-07-15 Thread Christian Joergensen
John Shaffer wrote: > I see you're using a recent trunk checkout. Why not use models.DecimalField, > newforms.DecimalField, and the Python decimal module? They will accurately > handle your data with much less effort. As long as i can be sure that it will never fall back to some sort of float repr

Re: Defining your own fields for newforms

2007-07-15 Thread John Shaffer
I see you're using a recent trunk checkout. Why not use models.DecimalField, newforms.DecimalField, and the Python decimal module? They will accurately handle your data with much less effort. --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Flash Message template tag

2007-07-15 Thread rtconner
Oh yeah I also wrote a FlashMsgMiddleware that makes this even easier. It's not needed at all, but it'll save you a line of code here and there. I can't post it if anyone wants it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Flash Message template tag

2007-07-15 Thread rtconner
Hey Djangonauts, So one of the (very few) things I had not been happy with regarding Django is its flash message handling. So I wrote something that would make me happy. Its just a template tag add-on. Since so far Django has been so great to me, I wanted to give a little bit back. So I don't kno

Defining your own fields for newforms

2007-07-15 Thread Christian Joergensen
Hi I am working on defining my own CurrencyField for newforms. The idea is to store the value (amount) in the DB by the smallest unit as an IntegerField. That is: 1,450.75 => 145075 The clean method will happily clean the incoming strings into the right amount formatted as an integer: In [2

Re: Two huge forms delema

2007-07-15 Thread Nathaniel Whiteinge
I don't have much experience with sub-classing forms, but I suspect `del self.fields[a]` should do the trick. Let us know! - whiteinge On Jul 15, 7:04 am, Eratothene <[EMAIL PROTECTED]> wrote: > Fixed examples mistakes: > > class A(forms.Form) > a = field > b = field > > class B(A) > del a

Re: is there any host servers that supports Django based sites?

2007-07-15 Thread Michael
> first thoughts: > show the client on your computer. the one you developed on. > or, > use the client's computer. showing the site from my computer would be very slow, my upload speed is 13 kbyte/sec using the client's computer isn't possible. but thanks for your suggestions. what about my oth

Re: is there any host servers that supports Django based sites?

2007-07-15 Thread Carl Karsten
Michael wrote: > > > On 15 יולי, 17:18, Michael <[EMAIL PROTECTED]> wrote: >> .: >> Webfaction django hosting rocks. >> can I get a link to Webfaction? > > ok, I think I found it by myself > http://www.webfaction.com/shared_hosting > > so, as I understand, the best strategy is to

Re: is there any host servers that supports Django based sites?

2007-07-15 Thread Michael
ok, I have another newbie question, what if the server allows python scripts but there is no django installed? for example, in this hosting service: http://www.hostgator.com/shared.shtml they have python, but I have no clue what modules are installed.. maybe they have django, maybe not.. so my qu

Re: is there any host servers that supports Django based sites?

2007-07-15 Thread Michael
On 15 יולי, 17:18, Michael <[EMAIL PROTECTED]> wrote: > .: > > > > Webfaction django hosting rocks. > > can I get a link to Webfaction? ok, I think I found it by myself http://www.webfaction.com/shared_hosting so, as I understand, the best strategy is to host the clients product on my

Re: is there any host servers that supports Django based sites?

2007-07-15 Thread David S.
> can I get a link to Webfaction? googling webfaction --> http://www.webfaction.com/ --~--~-~--~~~---~--~~ 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@googlegrou

Re: is there any host servers that supports Django based sites?

2007-07-15 Thread Michael
.: > > Webfaction django hosting rocks. can I get a link to Webfaction? --~--~-~--~~~---~--~~ 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 un

form_for_model and limit_choices_to

2007-07-15 Thread Birkin James Diana
I've created a newforms form using form_for_model(). The problem I'm having is that two fields are not respecting part of the field definition in the model; I'm hoping I'm overlooking something. The end result I want is for a scanner select-menu to show only scanners, and a camera select-me

Re: Two huge forms delema

2007-07-15 Thread Eratothene
Fixed examples mistakes: class A(forms.Form) a = field b = field class B(A) del a # Is there working equivalent for this? c = field Hence, class B inherited only a field b, but not a. --~--~-~--~~~---~--~~ You received this message because you are subs

Two huge forms delema

2007-07-15 Thread Eratothene
A have two newform classes, each with more than 80 fields. Two forms has a lot of common fields, but not all. In order not to maitain two sets of fields instead of one I have created third form, which is base for inheritance to this two, but then the order of fields in the form is determined by d

Re: Best Practice for translating db-stored values

2007-07-15 Thread Tim Chase
> Is there some general suggestion we're to follow, for translating > values stored in the db? Unless your project's grand vision only supports a fixed number of languages ("we will only support English, Spanish, French, and German...ever"), then you'll need a translation table. class Translati

Re: Usernames with spaces?

2007-07-15 Thread Tim Chase
>> The Django auth module is just a standard Django app. If >> you look in django/contrib/auth/models.py you'll see that >> the User.username field is defined with a validator_list >> of "[validators.isAlphaNumeric]". >> >> In theory, you should be able to remove this validator to >> allow for an

Re: Best Practice for translating db-stored values

2007-07-15 Thread Jökull
Have you looked at django-multilingual? http://code.google.com/p/django-multilingual/ I'm about to have a go at implementing this. It looks great for multilingual content sites. On Jul 14, 5:27 pm, Panos Laganakos <[EMAIL PROTECTED]> wrote: > Using gettext_lazy, is the way to go, for marking mo

Re: URL design for security?

2007-07-15 Thread Ned Batchelder
Right: an integer id is not sensitive information. The problem arises (as in your original example), when a malicious user can edit the URL to change the id to another that he is not allowed to see, and your application lets him see it. It's that last part you have to prevent. After using th

Re: Updating multiple rows with Django DB API?

2007-07-15 Thread James Bennett
On 7/14/07, Steven Hilton <[EMAIL PROTECTED]> wrote: > I could be updating any number of rows in bar. I want to do this > without do a select on bar. Also, it's worth noting that this is also fairly easy to do, it just involves a little bit more code. Something like the following example should g

Re: Updating multiple rows with Django DB API?

2007-07-15 Thread James Bennett
On 7/14/07, Steven Hilton <[EMAIL PROTECTED]> wrote: > When foo.level drops to zero, I need to flip bar.switch like so... > > update bar set switch = 0 where foo_id = foo.id and switch = 1 > > I could be updating any number of rows in bar. I want to do this > without do a select on bar. > > Do I n

Re: Updating multiple rows with Django DB API?

2007-07-15 Thread Collin Grady
No, you must use custom SQL. --~--~-~--~~~---~--~~ 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 [EM

commiting custom update sql

2007-07-15 Thread Steven Hilton
I'm trying to get some custom update sql to work. It seems to, but it never actually commits. Based on this thread: http://groups.google.com/group/django-users/browse_thread/thread/318008212a9e79f9/592236423cb67439 And this doc: http://www.djangoproject.com/documentation/transactions/#django-db

بوسترات نانسي في احضان شاب كويتي في الكليب الجديد

2007-07-15 Thread رهف
http://www.clubsalalah.com/vb/register.php هيفاء وهبي وقمة الاغراء http://www.clubsalalah.com/vb/showthread.php?goto=newpost&t=72 بوسي سمير وصدرها وملابس عارية http://www.clubsalalah.com/vb/showthread.php?t=70 --~--~-~--~~~---~--~~ You received this message be

التفريش ,,,,, يامن تسأل عن للذة الجنس ؟ والممحونات

2007-07-15 Thread mero
http://3rbzoom.com/vb/showthread.php?t=1647 موبايل الجنس www.3rbzoom.com/mob --~--~-~--~~~---~--~~ 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 T

Re: Updating multiple rows with Django DB API?

2007-07-15 Thread Steven Hilton
On Jul 14, 6:37 pm, "Miguel Filho" <[EMAIL PROTECTED]> wrote: > On 7/14/07, Steven Hilton <[EMAIL PROTECTED]> wrote: > > > > > I'm working on a web app where if a particular conditions is met in > > particular object, a number of objects in another class/table need to > > be altered. Basically a t