Re: Help running Django with mod_python

2005-12-01 Thread frank h.
hej paolo, I am on OS X as well, and I had problems with Apache and mod_python. Turns out that my python (version 2.4.1 from fink) was the problem. the following worked for me: stop any apache that is currently running (fink or buildin) install python 2.4.1 framework build from http://undefined

Re: Newbie needs help with real-world example...

2005-12-01 Thread Kenneth Gonsalves
On Friday 02 Dec 2005 10:16 am, Joshua D. Drake wrote: > > > > I feel that runserver is only meant for people to evaluate > > django. Once they see the automatic admin interface and decide > > to proceed further it makes no sense to use runserver as > > development should always be in the same en

Re: Newbie needs help with real-world example...

2005-12-01 Thread Joshua D. Drake
I feel that runserver is only meant for people to evaluate django. Once they see the automatic admin interface and decide to proceed further it makes no sense to use runserver as development should always be in the same environment as production One thing that is really useful abo

Re: Newbie needs help with real-world example...

2005-12-01 Thread Kenneth Gonsalves
On Thursday 01 Dec 2005 7:14 pm, Afternoon wrote: > On 1 Dec 2005, at 12:04, Kenneth Gonsalves wrote: > > i seriously doubt whether you could run the site with runserver > > - try it with the full apache2 config > > Woah, hang on. If Django is not serving anything useful through > runserver, putti

Re: Newbie needs help with real-world example...

2005-12-01 Thread James Bennett
On 12/1/05, John Szakmeister <[EMAIL PROTECTED]> wrote: > I don't see why not. The apps themselves aren't big, and isn't it the purpose > of runserver to help do development and testing? I think my problem is what > Luke mentioned: a lack of data. Yeah, I poked around in the djangoproject.com c

Re: Newbie needs help with real-world example...

2005-12-01 Thread John Szakmeister
On Thursday 01 December 2005 07:04, Kenneth Gonsalves wrote: > On Thursday 01 Dec 2005 5:11 pm, John Szakmeister wrote: > > I should mention that at the moment I'm using django-admin.py's > > runserver to run the site.  I just want to make sure I get all > > the configuration settings correct befo

Re: Newbie needs help with real-world example...

2005-12-01 Thread John Szakmeister
On Thursday 01 December 2005 19:05, Luke Plant wrote: > On Thu, 1 Dec 2005 06:41:38 -0500 John Szakmeister wrote: > > It runs, but > > unfortunately, it complains that it can't find any pages. Not the > > weblog, not the main page, nothing. > > I'm guessing the pages are stored in the database.

Re: What is the best way to do related items?

2005-12-01 Thread Milton Waddams
just what I needed, thanks! On 12/2/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 12/1/05, Milton Waddams <[EMAIL PROTECTED]> wrote: > > I've tried self.get_list though obviously it doesn't exist. > > Just plain "get_list" should work. Give that a shot.

Re: Newbie needs help with real-world example...

2005-12-01 Thread Luke Plant
On Thu, 1 Dec 2005 06:41:38 -0500 John Szakmeister wrote: > It runs, but > unfortunately, it complains that it can't find any pages. Not the > weblog, not the main page, nothing. I'm guessing the pages are stored in the database. Do you have a copy of the djangoproject.com DB? I wouldn't ha

Re: Help running Django with mod_python

2005-12-01 Thread Bryan Murdock
On 12/1/05, Paolo <[EMAIL PROTECTED]> wrote: > > I'm trying to setup Django with Apache and mod_python. > > I have followed the procedure described in the document "how to use > Django with mod_python", but I can't obtain a working basic (single > Django installation on the same Apache) environmen

Re: Help running Django with mod_python

2005-12-01 Thread Afternoon
This make me think that apache/mod_python/python installation is fine and that the problem is in httpd.conf or in my project. The fact that the child process is dying suggests something fairly low-level, but if you have another MP handler that works OK that's a bit strange. I always had e

Re: Help running Django with mod_python

2005-12-01 Thread Paolo
2005/12/1, Afternoon <[EMAIL PROTECTED]>: > > What platform are you building on? Where is your Python? I had to > define PYTHONHOME = /usr/ in envopts for Apache because I'm running > OS X and my Python is stock but my Apache comes from the Fink project. > > Is there any way that Apache might not

Re: Sequence in PostgreSQL is not updated when doing manual insert

2005-12-01 Thread Joshua D. Drake
I've implemented a simple fix by manually settings the sequence value after I do my inserts, but I'm wondering why django/postgresql doesn't do the right thing. Has anyone seen this before? Yeah, this is an annoying postgresql wart. We've run into it enough that we've rolled the fix int

Re: Help running Django with mod_python

2005-12-01 Thread Afternoon
On 1 Dec 2005, at 15:24, Paolo wrote: Hi Afternoon, not only I have restarted Apache after building mod_python (3.1.4), I also have updated it from version 2.0.54 to 2.0.55, but nothing has changed. Hang on, it's coming back to me now (sorry, it was a long night). What platform are you buil

Re: Help running Django with mod_python

2005-12-01 Thread Paolo
2005/12/1, Afternoon <[EMAIL PROTECTED]>: > > > On 1 Dec 2005, at 14:29, Paolo wrote: > > > [Thu Dec 01 11:07:13 2005] [notice] child pid 15299 exit signal > > Segmentation fault (11) > > Ah, I spent a frustrating few hours wrestling with this error (or one > like it) last night. Are you using mod

Re: What is the best way to do related items?

2005-12-01 Thread Adrian Holovaty
On 12/1/05, Milton Waddams <[EMAIL PROTECTED]> wrote: > I've tried self.get_list though obviously it doesn't exist. Just plain "get_list" should work. Give that a shot. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

Re: Help running Django with mod_python

2005-12-01 Thread Afternoon
On 1 Dec 2005, at 14:29, Paolo wrote: [Thu Dec 01 11:07:13 2005] [notice] child pid 15299 exit signal Segmentation fault (11) Ah, I spent a frustrating few hours wrestling with this error (or one like it) last night. Are you using mod_python 3? After building mod_python have you fully re

Help running Django with mod_python

2005-12-01 Thread Paolo
I'm trying to setup Django with Apache and mod_python. I have followed the procedure described in the document "how to use Django with mod_python", but I can't obtain a working basic (single Django installation on the same Apache) environment, because Apache unexpectedly crashes at each request.

how to access a parent model

2005-12-01 Thread Krzysztof Drozd
i have a problem lets sey i have a Poll model like this in tutorial. how to get access to question field in Poll model form the Choice class (model)? i von use this in search_fields? or/and how to get one or more fields from choice model in poll model to use it in search field? like this search

Re: E-Commerce / Credit Card Processing

2005-12-01 Thread Jason F. McBrayer
On Wed, 2005-11-30 at 17:51 -0800, Joshua D. Drake wrote: > We will actually be writing a class for PayFlowPro here in a couple of > weeks. I am sure > we could share. I would be very interested in this, as well. Are you translating their PHP or Perl code from the developers kit, or taking some

Re: Newbie needs help with real-world example...

2005-12-01 Thread Afternoon
On 1 Dec 2005, at 12:04, Kenneth Gonsalves wrote: i seriously doubt whether you could run the site with runserver - try it with the full apache2 config Woah, hang on. If Django is not serving anything useful through runserver, putting it up on Apache isn't going to help anything. John,

What is the best way to do related items?

2005-12-01 Thread Milton Waddams
Hi All, I'm back around to working out how to best implement related items, since you can't manytomany join onto self I plan to do a calculation and cache the result. What I would like to do is to have a post (eg. a blog post) object and then be able to have something like the following in my te

Re: Newbie needs help with real-world example...

2005-12-01 Thread Kenneth Gonsalves
On Thursday 01 Dec 2005 5:11 pm, John Szakmeister wrote: > I should mention that at the moment I'm using django-admin.py's > runserver to run the site.  I just want to make sure I get all > the configuration settings correct before I attempt to do the > full up Apache 2 config. i seriously doubt

Newbie needs help with real-world example...

2005-12-01 Thread John Szakmeister
I've been through the tutorial pages (which are great!) and managed to get all that working without any fuss. I'm contemplating using Django for my company's website since I could integrate a few applications so that others can post job openings, and do some other miscellaneous things. I deci

Re: django breaks not null in postgresql?

2005-12-01 Thread Nebojša Đorđević - nesh
On 1-12-2005, at 6:52, Kenneth Gonsalves wrote: title = meta.CharField('Title',maxlength=250) From http://www.djangoproject.com/documentation/model_api/#general- field-options: null If True, Django will store empty values as NULL in the database. Default is False. Note that emp