Re: Order fields in edit_inline

2007-01-27 Thread Todd O'Bryan
After not receiving an answer, I figured people were just being polite and not telling me to RTFM, so I have just combed the whole page of model documentation and still can't find anything, except horrible typos that I've corrected in the (not exactly) quoted message below. Sorry about the mistypi

Re: Problem getting Apache/mod_Python to work with Django

2007-01-27 Thread django_user
change the database user and pwd in settings.py file of your project. On Jan 28, 12:28 am, "Julian Romero" <[EMAIL PROTECTED]> wrote: > On 1/27/07, Pramod Subramanyan <[EMAIL PROTECTED]> wrote: > > > File > > "/usr/lib/python2.4/site-packages/Django-0.95.1-py2.4.egg > > /django/db/backends/postgr

Re: Tools for writing HTML templates

2007-01-27 Thread [EMAIL PROTECTED]
At work, normally what I do is ask the designer what he wants to see on the page, then I write very basic HTML code and the Django templating code to display that info. After that, he just works in his usual HTML/CSS editor moving the template code around. On Jan 27, 6:56 pm, "Andrew Diederic

Re: Tools for writing HTML templates

2007-01-27 Thread Paulo
This could turn into a religious debate... but I give TextMate two thumbs up! < http://macromates.com/ > On 1/27/07, Andrew Diederich <[EMAIL PROTECTED]> wrote: > > I'm looking for a tool for our non-programmers to develop the HTML > templates for django. Our python folks can help stick in the

Tools for writing HTML templates

2007-01-27 Thread Andrew Diederich
I'm looking for a tool for our non-programmers to develop the HTML templates for django. Our python folks can help stick in the template code, but the folks we have to make the website good-looking aren't necessarily the same people. Are there any HTML editing tools that people here have enjoyed

Cent OS Deployment

2007-01-27 Thread Noah Gift
Anyone have any good tips on Cent OS deployments? I would like to use python 2.5, but it is a little tricky with Cent... Thanks, Noah Gift --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Adding image from model to change form...

2007-01-27 Thread radioflyer
Hello, I've used this advice: http://groups.google.com/group/django-users/browse_thread/thread/ bb7f406bffd697f5/76f738315a6947eb?lnk=gst&q=admin +thumbs&rnum=1#76f738315a6947eb to add a thumbnail to the model's list page in admin. I would like to also be able to display the thumb on the change

Re: Problem getting Apache/mod_Python to work with Django

2007-01-27 Thread Julian Romero
On 1/27/07, Pramod Subramanyan <[EMAIL PROTECTED]> wrote: > > > File > "/usr/lib/python2.4/site-packages/Django-0.95.1-py2.4.egg > /django/db/backends/postgresql/base.py" > in cursor > 43. self.connection = Database.connect(conn_string) > > OperationalError at /mysite/admin/ > FATAL: role "da

Re: Debugging Django: print statements?

2007-01-27 Thread Julian Romero
On 1/27/07, Don Arbow <[EMAIL PROTECTED]> wrote: > > > Using print statements to debug a program is like figuring out what > is wrong with your car by listening for weird noises. Using a > debugger is like opening the hood and tweaking the engine with tools. > > Opening the hood seems a good approa

Problem getting Apache/mod_Python to work with Django

2007-01-27 Thread Pramod Subramanyan
Hi there, Me tried the Django tutorial - everything fine there - and then I decided to get Django to use apache as the webserver - downloaded and compiled both apache and mod_Python. And then modified the httpd.conf file to look something like this: MaxRequestsPerChild 1 LoadModule python_module

URLField in newforms

2007-01-27 Thread django_user
Is there any option where URLField validates even if user do not enter http://. I don't want my users to enter http:// for the URL. The code is blogurl = forms.URLField(verify_exist=True) but if I enter url without http, its not validating it. www.google.com returns false http://www.google.com r

Re: Debugging Django: print statements?

2007-01-27 Thread Don Arbow
On Jan 27, 2007, at 8:57 AM, Filipe Correia wrote: > >>> Having to change the source code to debug it doesn't feel very >>> right... >> And adding print statements is...what? > > I agree :) And that's why, to me, neither seem the right way to go... > (then again, using prints is the most effecti

Re: Large scale Django deployment - advice needed

2007-01-27 Thread Mike
Jason, Have you seen Chapter 21 of The Django Book, just released a few days ago? Chapter 21: Deploying Django http://www.djangobook.com/en/beta/chapter21/ It discusses load balancing and performance, and mentions the following: "At this point, we've now broken things down as much as possibl

Re: Initial data for a Select widget in newforms

2007-01-27 Thread Denis Frère
On Jan 27, 9:23 am, "canen" <[EMAIL PROTECTED]> wrote: > my_field = ChoiceField(choices=[(1, 1), (2, 2)], initial=1) > doesn't work? Yes, thank you. For information, here is more details. I have a view function called bill_clone to build a new bill form prepopulated with the values from a prev

Re: Debugging Django: print statements?

2007-01-27 Thread Filipe Correia
> > Having to change the source code to debug it doesn't feel very right... > And adding print statements is...what? I agree :) And that's why, to me, neither seem the right way to go... (then again, using prints is the most effective way I have found, and I guess pdb is probably equivalent) F

Re: define odd, even in a loop

2007-01-27 Thread [EMAIL PROTECTED]
They do not exist, but they can be written. However, unless they become absolutely necessary, keep as many computations on the view side. On Jan 27, 5:46 am, "Rob Slotboom" <[EMAIL PROTECTED]> wrote: > This is working great, thanks!! > While on it, there are more filter like solutions for inst

Re: Core_sessions table

2007-01-27 Thread Jeremy Dunck
It's where user sessions are stored. Expired sessions are not culled automatically. delete from that table where expire_date < today, and you'll see it drop quite a lot. On 1/27/07, Pythoni <[EMAIL PROTECTED]> wrote: > > Can anyone explain what is core_sessions table for? > I noticed that it is

Re: What user does django server runs?

2007-01-27 Thread [EMAIL PROTECTED]
On Jan 2, 6:48 pm, "Michel Thadeu Sabchuk" <[EMAIL PROTECTED]> wrote: > I'm deploying a django project with postgresql as database backend. I > used to create a local user with the same name of the database user > (owner of the database), so I just need to run the webserver as the > local user an

Re: What user does django server runs?

2007-01-27 Thread HenrikG
On 3 Jan, 02:54, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 02-Jan-07, at 11:18 PM, Michel Thadeu Sabchuk wrote: > > > without success, the error message tells me: FATAL:Ident > > authentication failed for user "saraswati".edit pg_hba.conf - change > > authentication fromident'sameuser'

Re: define odd, even in a loop

2007-01-27 Thread Rob Slotboom
This is working great, thanks!! While on it, there are more filter like solutions for instance ADD. Is there also something like DIVIDE, MULTIPLY etc? Or can these be custom made? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

Re: Initial data for a Select widget in newforms

2007-01-27 Thread canen
my_field = ChoiceField(choices=[(1, 1), (2, 2)], initial=1) doesn't work? On Jan 26, 7:04 pm, "Denis Frère" <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm discovering newforms. > > It works pretty well, but I can't manage to give an initial selection > in a ChoiceField (Select widget). > I tried to