Re: ForeignKey with null=True. Options?

2007-06-04 Thread Horst Gutmann
you :-) (Damn, now I have to rewrite the code again ^_^) - Horst > > On Jun 4, 4:11 am, Horst Gutmann <[EMAIL PROTECTED]> wrote: >> Hi everyone :-) >> >> I'm currently writing a small app that should store data for registered >> users and guests alike in on

Re: ForeignKey with null=True. Options?

2007-06-04 Thread Horst Gutmann
Malcolm Tredinnick wrote: > On Mon, 2007-06-04 at 10:11 +0200, Horst Gutmann wrote: >> Hi everyone :-) >> >> I'm currently writing a small app that should store data for registered >> users and guests alike in one single model. So I made following model >

ForeignKey with null=True. Options?

2007-06-04 Thread Horst Gutmann
Hi everyone :-) I'm currently writing a small app that should store data for registered users and guests alike in one single model. So I made following model (simplied) class Content(models.Model): user = models.ForeignKey(User, null=True, blank=True) The problem I now face is, that Dj

Re: Newforms / Validation / Uniqueness

2007-05-30 Thread Horst Gutmann
ringemup wrote: > > Do you then have to figure out which errors apply to which Form > fields, and sort them out and assign them? I haven't seen any sample > code doing anything of this sort, so I'd be very interested to see how > it works. > I was recently in the same situation and did somethi

Re: Shared Hosting

2007-05-26 Thread Horst Gutmann
XTCHost wrote: > I think I know but must ask, do you need django installed on the web > server to run django built web sites? I guess this is a yes > > If so > > I have a shared hosting plan and do not have SU rights so can you > please advise the best way to install django > > Many thanks > >

Re: Different django versions on same host

2007-05-14 Thread Horst Gutmann
orestis wrote: > Hello, > > I think this will be easy to do, but I just want to check: > > Is it possible to have different Django versions on the same host, and > point my sites to different versions ? > > I'd like to use bleeding edge for personal stuff (yay for > experimentation) but for any

Re: Vote to support dreamhost mod_python

2007-05-04 Thread Horst Gutmann
Marc Fargas Esteve wrote: > Has far as I know you cannot run mod_python applications as different > users, everything runs as the web server user except with some > experimental module around there, if this is the case, I would not go > for mod_python. > > Anyway, as far as I know dreamhost suppo

Re: Initial Data for Django Classes?

2007-04-25 Thread Horst Gutmann
Greg Taylor wrote: > Greetings, > > I was wondering if there's a way to include initial data for Django > classes. I noticed that there is a way to do so via a 'sql' > subdirectory under your own models, but didn't see any indication if > there was a way to do this for base Django classes. >

Re: HTTP Response returning 204

2007-03-12 Thread Horst Gutmann
2007/3/12, shevken <[EMAIL PROTECTED]>: > > Anyway to return response code 204 from a view? > > So that the request page do not get refreshed. > I guess you could simply create a normal response object and set it's status_code attribute to 204 :-) --~--~-~--~~~---~--~

Re: newforms, choices and models

2007-03-11 Thread Horst Gutmann
enquest schrieb: > Op zondag 11-03-2007 om 15:48 uur [tijdzone +0100], schreef Horst > Gutmann: >> enquest schrieb: >>> Second question: how can you add a password field from the newforms. you >>> can't define ("correct me if I'm wrong") a pass

Re: newforms, choices and models

2007-03-11 Thread Horst Gutmann
enquest schrieb: > > Second question: how can you add a password field from the newforms. you > can't define ("correct me if I'm wrong") a password field in the > model... And I don't see any option to give a field a password field. > > How can I do this? > > Thanxs > I haven't really tried i

Re: How to define non-persisted attributes in Model

2007-03-11 Thread Horst Gutmann
Do you really need a CharField here or would a simply string variable be enough? So you could simply do something like class Message(models.Model): description = models.CharField(maxlength=200) author = models.ForeignKey(User) temp = "" and it should never get stored in the data

Re: Using data from other DB

2007-03-04 Thread Horst Gutmann
Grupo Django schrieb: > Hello! > I want to add a block in the site that shows the "Last topics" of the > forum. > The forum is a MyBB. I'd like to know the best approach to do it. > - Create a model based in the tables that I want to retrieve and use > it as a normal model in django. > - Use pure

<    1   2