Re: Creating new tables

2005-11-14 Thread Tom Tobin
On 11/15/05, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > Not true; you can set up a model to deal with a database created by > > hand (although I'm not sure why you'd want to *purposely* create a > > database for Django by hand; it does a good job of taking care of > > that for you). > > what

Re: Creating new tables

2005-11-14 Thread Kenneth Gonsalves
On Tuesday 15 Nov 2005 10:14 am, Tom Tobin wrote: > On 11/14/05, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > On Tuesday 15 Nov 2005 12:26 am, panos wrote: > > > b. can the new tables be accessed using the database API? > > > > no > > Not true; you can set up a model to deal with a database cr

Re: Creating new tables

2005-11-14 Thread Tom Tobin
On 11/14/05, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > On Tuesday 15 Nov 2005 12:26 am, panos wrote: > > b. can the new tables be accessed using the database API? > > no Not true; you can set up a model to deal with a database created by hand (although I'm not sure why you'd want to *purpo

Re: Creating new tables

2005-11-14 Thread Kenneth Gonsalves
On Tuesday 15 Nov 2005 12:26 am, panos wrote: > Hi, > > is it possible to create new tables not specified in the model at > runtime? yes, but why? > If yes then > a. how can you do that? access the database directly - not through django > b. can the new tables be accessed using the database AP

Assign current user automatically to object

2005-11-14 Thread Steffen Glückselig
Hello, I am looking for a way to assign the current user automatically to an object. That object has a foreign key referencing auth.User. My searches turned up some descriptions of that 'problem' but no solution. Would anyone give me a hint on how to achieve that behavior? best regards Steffen

Re: django & dreamhost

2005-11-14 Thread patrick k
wiki-page has obviously changed. my app also seems to work. thanks for the advice. patrick > > I couldn't find this text in DreamHost Wiki page. Are you sure you don't > have some caching system playing tricks on you? AFAIK, this page was updated > long time ago to reflect the Admin change. I

Re: django & dreamhost

2005-11-14 Thread Eugene Lazutkin
I couldn't find this text in DreamHost Wiki page. Are you sure you don't have some caching system playing tricks on you? AFAIK, this page was updated long time ago to reflect the Admin change. I found exactly one django-admin.fcgi reference ("chmod 755 django.fcgi djang-admin.fcgi") and correc

Creating new tables

2005-11-14 Thread panos
Hi, is it possible to create new tables not specified in the model at runtime? If yes then a. how can you do that? b. can the new tables be accessed using the database API? Thank you very much Best Regards Panos

Re: django & dreamhost

2005-11-14 Thread James Bennett
On 11/14/05, patrickk <[EMAIL PROTECTED]> wrote: > some questions: > it says "Create django-admin.fcgi in the same directory, with the same > contents, but change myproject.settings.main to > myproject.settings.admin" ... BUT, there is no myproject.settings.main > in django.fcgi - so i just used m

Re: django & dreamhost

2005-11-14 Thread Clint Ecker
I don't have any real help for you, but I suspect that those instructions were made against an older version of Django.  Since that time, several backwardsincompatible changes have been made that will probably impede your progress. Perhaps there is someone who could cleanup the DH instructions to m

Re: Repeating Blocks Within a Template

2005-11-14 Thread Richie Hindle
[Robert] > For this kind of thing I use @inclusion_tag. This is in new-admin and > ticket #625. This is great enhancement! I'm not very clear about the wisdom of merging such a patch with my copy of Django - can I be sure that this patch will be merged into the head at some point? (Presumably

django & dreamhost

2005-11-14 Thread patrickk
i just tried to install django on dreamhost using the tutorial on http://wiki.dreamhost.com/index.php/Django. some questions: it says "Create django-admin.fcgi in the same directory, with the same contents, but change myproject.settings.main to myproject.settings.admin" ... BUT, there is no mypro

Re: Repeating Blocks Within a Template

2005-11-14 Thread Robert Wittams
Simon Willison wrote: > > > On 14 Nov 2005, at 06:06, Tom Tobin wrote: > >> A bit stumped here . . . Is there a recommended convention for >> repeating blocks within a template? e.g., I have a paginated >> object_list generic view, and I want to repeat my pager code (i.e., >> "back", "next")

Re: use admin features in external applications

2005-11-14 Thread Robert Wittams
tonemcd wrote: > Thanks for the info Robert - I was aiming at using some of the forms > etc. functionality from the admin interface in my own applications > (trying to not re-invent the wheel). > > I will have a look around the admin_list.py code and see whether I can > pick things up from there.

Re: use admin features in external applications

2005-11-14 Thread tonemcd
Thanks for the info Robert - I was aiming at using some of the forms etc. functionality from the admin interface in my own applications (trying to not re-invent the wheel). I will have a look around the admin_list.py code and see whether I can pick things up from there. Certainly being able to u

Re: Repeating Blocks Within a Template

2005-11-14 Thread Simon Willison
On 14 Nov 2005, at 06:06, Tom Tobin wrote: A bit stumped here . . . Is there a recommended convention for repeating blocks within a template? e.g., I have a paginated object_list generic view, and I want to repeat my pager code (i.e., "back", "next") at both the top and bottom of the list wi