Re: can't install...

2007-10-15 Thread AniNair
Please check the command prompt window in which you have django running. It will tell you what errors you have made. Copy the messages if you can't make sense of them and post it here... --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: internationalization xgettext error

2007-10-15 Thread AniNair
Thank you a lot... I thought that the gettext should be a py file. python does have such a file in lib... I downloaded the gettext as u suggested and YE Its working now. Thank you a lot... --~--~-~--~~~---~--~~ You received this message because you are

Re: can't install...

2007-10-15 Thread Phwaxmon
Thank you. I am downloading the instant Django right now, will take a look at it and see what I can do with it. On Oct 15, 9:46 pm, "Ariel Mauricio Nunez Gomez" <[EMAIL PROTECTED]> wrote: > Phwaxmon, the painless way to get django working is to follow cjl advice: > 1. Uninstall python >

Re: Possible ifequal and/or ifnotequal bug

2007-10-15 Thread JimT
I figured it was something like that. I've also wondered why there wasn't a way to add a variable in the templates. In the end I settled for the CSS fix which was also something I'd never considered before. It works like a charm and I've learned something new. Thanks RajeshD! On Oct 12, 7:04

[newforms] Confirming password widget

2007-10-15 Thread Przemek Gawronski
Hi, is there a password confirmation widget around, to automatically check and validate (with error messages) if it's the same or not with a password previously entered (in a different CharField)? If not, any guide lines on implementing would be nice :) Thanks Przemek -- AIKIDO TANREN DOJO -

Re: How to convert 92.5698 to 92.57

2007-10-15 Thread LorenDavie
Hi Greg, Within the view you can just use python's built in round function >>> round(92.5698,2) 92.57 The full documentation is here: http://docs.python.org/lib/built-in-funcs.html Look for the "round()" function - the second argument is the number of decimal places you wish to retain. Hope

How to convert 92.5698 to 92.57

2007-10-15 Thread Greg
Hello, I have a view that gets a number. It's value is 92.5698, I want to find out how to convert that number to two decimal places 92.57 from within the view. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: can't install...

2007-10-15 Thread Ariel Mauricio Nunez Gomez
Phwaxmon, the painless way to get django working is to follow cjl advice: 1. Uninstall python 2. http://www.instantdjango.com/ Note: After you have played a little, you are going to have to go again and try to install django with postgres, apache and all the crew, but hopefully you'll have more

Re: can't install...

2007-10-15 Thread Kenneth Gonsalves
On 16-Oct-07, at 12:19 AM, Phwaxmon wrote: > I think I just need something to get me started. So far I have been > getting errors, or just ain't been able to execute anything. I am not > sure if everything has installed correctly, or whether you people who > have more experience can tell me to

Re: Managing django projects

2007-10-15 Thread Kenneth Gonsalves
On 15-Oct-07, at 8:31 PM, Rytis Sileika wrote: > I was just wondering, what are the best practices to setup/manage > django projects? > > Let's assume two developers working on the same project, same machine. > Models, views are constantly changing, that would make me think that > the best way

Re: Fastcgi always gives 301

2007-10-15 Thread maqr
Yup. My code is essentially the same thing as the one at the very bottom. I've tried 3 or 4 different fcgi scripts that people claim have worked with django, they all produce this though. As it turns out, I'm actually going to be moving to another server and probably using mod_fastcgi, so it's

Re: Django - Oracle support

2007-10-15 Thread Jeremy Dunck
On 10/15/07, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > On 10/15/07, Stefan Bethge <[EMAIL PROTECTED]> wrote: > > Just an addition. I would not recommend using oracle with django if > > you don't have an enterprise version which contains the oracle > > connection manager. Without it you

Re: Django - Oracle support

2007-10-15 Thread Jacob Kaplan-Moss
On 10/15/07, Stefan Bethge <[EMAIL PROTECTED]> wrote: > Just an addition. I would not recommend using oracle with django if > you don't have an enterprise version which contains the oracle > connection manager. Without it you won't have connection pooling > functionality which slows down django

very important for your life...

2007-10-15 Thread [EMAIL PROTECTED]
Hi there ... Thank you for reading this message . Did you here about Islam? I mean the real Islam... Do you have some questions in your religion and you don't have the answers for them? Do you know that you have to condemns in Islam? Ok... just visit these sites, read and download any

Re: Django - Oracle support

2007-10-15 Thread Stefan Bethge
Just an addition. I would not recommend using oracle with django if you don't have an enterprise version which contains the oracle connection manager. Without it you won't have connection pooling functionality which slows down django quite a bit. It seems there are no free alternatives for it.

Re: python code in template

2007-10-15 Thread Malcolm Tredinnick
On Mon, 2007-10-15 at 14:54 -0700, johnny wrote: > Is there a way to run python code in the template? No. You'll find that's pretty much the guiding principle of the Django templating language: it's for designers, not Python programmers and there's no variable changing permitted. If you need to

python code in template

2007-10-15 Thread johnny
Is there a way to run python code in the template? In view, I just fetchall from database and pass it to the template But I found out I need to break up the content in one of the field. As each records are looped inside the template, I need to break up a field and display it.

Re: Multiple app environments on the same machine - settings & more

2007-10-15 Thread Jeremy Dunck
On 10/15/07, RajeshD <[EMAIL PROTECTED]> wrote: > > 1. Don't add myapp_* to site-packages at all. Instead keep them in two > directory roots say /home/apps/prod and /home/apps/preprod. Similarly, > you can have two different settings files for the two environments. > > 2. In your Apache vhost

Re: Fastcgi always gives 301

2007-10-15 Thread RajeshD
On Oct 15, 10:23 am, maqr <[EMAIL PROTECTED]> wrote: > Does anyone have any suggestions as to why this 301 MOVED PERMANENTLY > is the only response I can get out of my FCGI script? Did you follow the official FCGI docs over here? http://www.djangoproject.com/documentation/fastcgi/

Re: select choices

2007-10-15 Thread RajeshD
> > Arn't stings slower against integers? You can always set db_index=True on the type field if you'll be using it a lot in your lookups and if the number of records in that table is going to be huge. http://www.djangoproject.com/documentation/model-api/#db-index

Re: Multiple app environments on the same machine - settings & more

2007-10-15 Thread RajeshD
> The idea is I would like to set up a production (prod) and pre- > production (preprod) and have preprod updated and unit tests run > everytime I commit changes to the SVN repo from my local machine (this > can be easily done with svn-hooks). > > No problems so far, however what worries me is

Re: select choices

2007-10-15 Thread onno
On Oct 15, 9:39 pm, Doug Van Horn <[EMAIL PROTECTED]> wrote: > On Oct 15, 1:51 pm, onno <[EMAIL PROTECTED]> wrote: > > > The most annoying thing about using: > > > TYPE = (('1', 'foo'),('2', 'BAR')) > > type = models.IntegerField(choices=TYPE) > > > Is that you can't do this in your views when

Re: select choices

2007-10-15 Thread Doug Van Horn
On Oct 15, 1:51 pm, onno <[EMAIL PROTECTED]> wrote: > The most annoying thing about using: > > TYPE = (('1', 'foo'),('2', 'BAR')) > type = models.IntegerField(choices=TYPE) > > Is that you can't do this in your views when you need to select > something > > Foo.objects.filter(type='BAR') > > you

Re: select choices

2007-10-15 Thread RajeshD
> Does anybody know a more easy way? Any particular reason you have to have type as an IntegerField? If you had it as a CharField, you could do: TYPE = (('foo', 'foo'), ('BAR', 'BAR')) type = models.CharField(choices=TYPE) Foo.objects.filter(type='BAR') And, possibly add db_index=True to the

Re: Managing django projects

2007-10-15 Thread Doug Van Horn
On Oct 15, 10:01 am, Rytis Sileika <[EMAIL PROTECTED]> wrote: > Hi, > > I was just wondering, what are the best practices to setup/manage > django projects? [snip] > Thanks! > > Rytis To expand on Chris' answer, here's what I would recommend: Create your project in Subversion (or CVS, or what

select choices

2007-10-15 Thread onno
The most annoying thing about using: TYPE = (('1', 'foo'),('2', 'BAR')) type = models.IntegerField(choices=TYPE) Is that you can't do this in your views when you need to select something Foo.objects.filter(type='BAR') you have to remember what number you gave it or make some "def" to handle

Re: can't install...

2007-10-15 Thread Phwaxmon
I think I just need something to get me started. So far I have been getting errors, or just ain't been able to execute anything. I am not sure if everything has installed correctly, or whether you people who have more experience can tell me to check something or try something else.

Re: OT: How did you handle asynchronous tasks?

2007-10-15 Thread Joseph Heck
Hi David, If you'd be willing to indulge me, why doesn't DQS doesn't fit your requirements? I'd love to have some explicit feedback on where it could be improved to match your needs. And yes, I know there's a LOT of places where it could be improved... :-) -joe On 10/15/07, David Larlet

Re: OT: How did you handle asynchronous tasks?

2007-10-15 Thread David Larlet
2007/10/15, Jarek Zgoda <[EMAIL PROTECTED]>: > > We started with cron jobs, but when it grew to unmanageable bunch of > scripts, we started thinking on using queuing service (ActiveMQ, > RabbitMQ - something that is compatible with AMQP and/or can be used > with python client). Still no decision,

Re: how to set mysql socket path for 'python manage.py syncdb' command

2007-10-15 Thread ydjango
Changing host from '' to 127.0.0.1 in setting.py made the error go away. it is working fine now. thanks On Oct 15, 11:12 am, ydjango <[EMAIL PROTECTED]> wrote: > my mysql is running under /opt/lammp. > > when I run 'python manage.py syncdb' > i get error _mysql_exceptions.OperationalError:

how to set mysql socket path for 'python manage.py syncdb' command

2007-10-15 Thread ydjango
my mysql is running under /opt/lammp. when I run 'python manage.py syncdb' i get error _mysql_exceptions.OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/ mysql.sock' (111)") Is there anyway I can specify it to use /opt/lampp/var/mysql/ mysql.sock

Multiple app environments on the same machine - settings & more

2007-10-15 Thread adam
Hello Djangonauts, First of all let me say I'm relatively new to Django and Python. The problem I came across is how to setup multiple (two, to be precise) enviroments for my Django app on one physical machine runnig mod_python. The development environment is set up locally of course. The idea

Caching binary data

2007-10-15 Thread Tomas Kopecek
Is it possible to use django caching layer with memcached backend for caching binary data? When I store some binary data and try to retrieve them via cache.get, I almost always got unicode error. After cache.get is called smart_unicode on basestring and it doesn't detect that data are not

How to Show my id column in the admin within my fields tupel

2007-10-15 Thread Greg
Hello, I have a class defined. From within that class I have a tupel defined fields = ( ('Order Information', {'fields': ('amount', ('order_status', 'customer', ), 'comments')})) I want to be able to show my id field in my Order Information section. However, since I don't have id defined as a

Re: DateTimeField in models renders incorrect select input

2007-10-15 Thread Rich Says...
Nevermind. You just got newbafied. Our projects override the default date time format on the callback. Sorry. Anyone interested in the form code can e-mail me though! On 10/15/07, personificator <[EMAIL PROTECTED]> wrote: > > > The default models.DateTimeField() renders a 1-24 hour select input

Managing django projects

2007-10-15 Thread Rytis Sileika
Hi, I was just wondering, what are the best practices to setup/manage django projects? Let's assume two developers working on the same project, same machine. Models, views are constantly changing, that would make me think that the best way is to have two separate DBs and two separate django

DateTimeField in models renders incorrect select input

2007-10-15 Thread personificator
The default models.DateTimeField() renders a 1-24 hour select input box on the form. Isn't the proper time display from 00:00 - 23:59? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: How to find out if a string is contained within another string

2007-10-15 Thread [EMAIL PROTECTED]
Should be trivial to do with a regular expression. On Oct 15, 10:29 am, Greg <[EMAIL PROTECTED]> wrote: > Andres, > Using Python...how would I take out all the numeric subsequences in my > message and store them in a list? > > On Oct 15, 3:11 am, Andreas Pfrengle <[EMAIL PROTECTED]> wrote: > > >

Re: How to find out if a string is contained within another string

2007-10-15 Thread Greg
Andres, Using Python...how would I take out all the numeric subsequences in my message and store them in a list? On Oct 15, 3:11 am, Andreas Pfrengle <[EMAIL PROTECTED]> wrote: > > I'm thinking that I might have to create a for loop, which loops > > through every Discounter record and checks

Fastcgi always gives 301

2007-10-15 Thread maqr
Does anyone have any suggestions as to why this 301 MOVED PERMANENTLY is the only response I can get out of my FCGI script? I get this result when i run "python dispatch.fcgi" or when my browser runs it (and redirects me). The Django development server runs without any problem and serves up my

Mac installation problem with mysqldb

2007-10-15 Thread Francis
I installed django yesterday on my Mac and it wasn't that simple. I got stuck with mysqldb-python problem. I found similar problems on the mailling list without answers.

Re: newforms problems

2007-10-15 Thread RajeshD
> 1) pass_matched always return False > how can i compare two fields in my class??? def pass_matched(self): if self.fields['pass'] == self.fields['repass']: return True else: return False 1. use self.cleaned_data instead of self.fields 2. call

Re: can't install...

2007-10-15 Thread cjl
I have a no-installation-required Django development environment that runs under Windows. Check out: http://www.instantdjango.com -cjl --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: internationalization xgettext error

2007-10-15 Thread Kenneth Gonsalves
On 15-Oct-07, at 6:04 PM, AniNair wrote: > Thank alot for the reply. Yes, I too thought that I just don't have > the file xgettext.py in my python lib, so added that. Still returning > the same error. (gave the path too in env variable as c:/python25/lib > and restarted the comp). Any ideas? i

Re: internationalization xgettext error

2007-10-15 Thread Kenneth Gonsalves
On 15-Oct-07, at 5:33 PM, AniNair wrote: > errors happened while running xgettext on __init__.py > 'xgettext' is not recognized as an internal or external command, > operable program or batch file. either you dont have xgettext on your machine or it is not on the path. You need to install it

Re: internationalization xgettext error

2007-10-15 Thread Thejaswi Puthraya
On Oct 15, 5:03 pm, AniNair <[EMAIL PROTECTED]> wrote: [snipped] > Please guide me/tell me where I should be looking for errors. Refer to the Django i18n list for best support. http://groups.google.com/group/django-i18n/ Cheers Thejaswi Puthraya

internationalization xgettext error

2007-10-15 Thread AniNair
Hi, I am trying to follow http://www.djangoproject.com/documentation/i18n/ On trying to run the command make-messages.py -l de, I get the following error. processing language de errors happened while running xgettext on __init__.py 'xgettext' is not recognized as an internal or

newforms problems

2007-10-15 Thread faypy
hi it's about checking confirmations Field class Foo(Form): pass = CharField(min_length=6,max_length=20) repass = CharField(min_length=6,max_length=20) def pass_matched(self): if self.fields['pass'] == self.fields['repass']: return True else: return

Re: can't install...

2007-10-15 Thread Horst Gutmann
Where exactly are you stuck? Could you please give some more details? ;-) 2007/10/15, Phwaxmon <[EMAIL PROTECTED]>: > > Ok, now that it looks like its installed, I am not getting an error > anymore from Python GUI, but then I can't get the first project in > the tutorial to work at all. I need

Re: can't install...

2007-10-15 Thread Phwaxmon
Ok, now that it looks like its installed, I am not getting an error anymore from Python GUI, but then I can't get the first project in the tutorial to work at all. I need a little help, I am learning this for one of my college projects. Anything you can help with will be appreciated. Amon On

Re: can't install...

2007-10-15 Thread Phwaxmon
Now it installed correctly I think. Thank you. Will holler back later, if I get stuck again. Amon On Oct 15, 4:30 am, "Horst Gutmann" <[EMAIL PROTECTED]> wrote: > This tutorial is quite outdated. Don't run `python setup.py develop` > but `python setup.py install` to install Django after checking

Re: can't install...

2007-10-15 Thread Phwaxmon
alright thanks, will try to run 'python setup.py install' Amon On Oct 15, 4:30 am, "Horst Gutmann" <[EMAIL PROTECTED]> wrote: > This tutorial is quite outdated. Don't run `python setup.py develop` > but `python setup.py install` to install Django after checking it out > :-) > > 2007/10/15,

Re: can't install...

2007-10-15 Thread Phwaxmon
and now I have an error from command prompt saying: svn: REPORT request failed on '/svn/!svn/vcc/default' svn: REPORT of '/svn/!svn/vcc/default' : 200 OK (http:// code.djangoproject.com) On Oct 15, 4:24 am, Phwaxmon <[EMAIL PROTECTED]> wrote: > I tried to do the following from the site after I

Re: can't install...

2007-10-15 Thread Horst Gutmann
This tutorial is quite outdated. Don't run `python setup.py develop` but `python setup.py install` to install Django after checking it out :-) 2007/10/15, Phwaxmon <[EMAIL PROTECTED]>: > > I tried to do the following from the site after I thought I had > installed it "We'll assume you have

Re: can't install...

2007-10-15 Thread Phwaxmon
I tried to do the following from the site after I thought I had installed it "We'll assume you have Django installed already. You can tell Django is installed by running the Python interactive interpreter and typing import django. If that command runs successfully, with no errors, Django is

Re: can't install...

2007-10-15 Thread Horst Gutmann
No, afaik there is no installer for Windows. Did you receive any error message? - Horst 2007/10/15, Phwaxmon <[EMAIL PROTECTED]>: > > Do any of you know if there an .exe file for django for win32/64 bit > PCs? I have tried to install it as they have instructed on the site, > but then it doesnt

can't install...

2007-10-15 Thread Phwaxmon
Do any of you know if there an .exe file for django for win32/64 bit PCs? I have tried to install it as they have instructed on the site, but then it doesnt seem to have installed correctly. Can anybody help out? Thank you. --~--~-~--~~~---~--~~ You received this

Re: Cab issue

2007-10-15 Thread [EMAIL PROTECTED]
Thanks. Got it working. /mac On Oct 14, 10:51 pm, Nicolas Steinmetz <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] a écrit : > > > Exception Value: Template u'base.html' cannot be extended, because it > > doesn't exist > > It's a "convention" in django that your main template is named >

Re: How to find out if a string is contained within another string

2007-10-15 Thread Andreas Pfrengle
> I'm thinking that I might have to create a for loop, which loops > through every Discounter record and checks to see if the 'code' > variable is in the 'message variable. Depending on the number of your Discounter-records, this can result in many queries. Perhaps instead you could take every

archive_month generic view includes too much dates

2007-10-15 Thread patrickk
I know there´s a ticket and it should be solved, but I´m on rev 6026 and with using the archive_month generic view, we always have the first day of the month in two different lists (current month and previous month). any solution to this? thanks, patrick

Re: OT: How did you handle asynchronous tasks?

2007-10-15 Thread Jarek Zgoda
David Larlet napisał(a): > A bit off-topic but I wonder how did you handle asynchronous tasks > like emailing or crawling or put-here-your-secret-asynchronous-service > in your django projects? There are some solutions like django-mailer > but what about a more general (twisted?) queuing

problem in uploading image

2007-10-15 Thread mayank bhargava
hello .. i am using this code to insert image into DataBase new_data = request.POST.copy() new_data.update(request.FILES) profile_form = Things(None, name, new_data['photo']) profile_form.save() and it is working properly now i want to copy the content of this image on

Re: NoReverseMatch error

2007-10-15 Thread ashok.raavi
On Oct 15, 8:10 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sun, 2007-10-14 at 19:45 -0700, ashok.raavi wrote: > > Any body got this NoReverseMatch problem fixed?. If so please point me > > to that. > > Which problem would that be? You have provided no context at all for > your

Re: bug in rendering non ascii characters in admin changelist

2007-10-15 Thread Kenneth Gonsalves
On 15-Oct-07, at 10:57 AM, Malcolm Tredinnick wrote: > So, in the rare case where, say, self.sponsor is a UTF-8 string, > Kenneth's version might lead to trouble down the track -- but I would > have thought that trouble would be mis-displayed strings, rather > than a > crash. ok - when I put