Re: Existing Database?

2005-08-18 Thread Andreas Kostyrka
Am Donnerstag, den 18.08.2005, 15:52 -0500 schrieb Adrian Holovaty: > On 8/18/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I'm in the process of doing this myself. I'm porting a job monitoring > > system to django. It was written in python before, but the web front > > end was written in PH

Re: What is this sites thing?

2005-08-18 Thread Milton Waddams
excellent, thanks :) > The Django convention is to set SITE_ID in your settings file and > then do stories.get_list(sites__id__exact=SITE_ID). If you do it > this way the more introspective parts of the admin (the auto-doc > system in particular) will work for you. > > Jacob >

Static file handling

2005-08-18 Thread Aaron
Any pointers on how to manage static files? I would like to keep them in my templates directory. Also I want to use the 404 handler to generate a static file for next time. Currently I'm working with the development server, I realize I can do this easier in Apache. Thanks, -Aaron

Re: Existing Database?

2005-08-18 Thread Adrian Holovaty
On 8/18/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I'm in the process of doing this myself. I'm porting a job monitoring > system to django. It was written in python before, but the web front > end was written in PHP. Seems to be going well so far. I have the model > and can access the API

Re: Existing Database?

2005-08-18 Thread [EMAIL PROTECTED]
I'm in the process of doing this myself. I'm porting a job monitoring system to django. It was written in python before, but the web front end was written in PHP. Seems to be going well so far. I have the model and can access the APIs. I've come across some issues, but am new to django, so am work

Re: meta.Admin js option

2005-08-18 Thread David S .
Awesome. Lucid, concise, timely. Thanks much.

Re: meta.Admin js option

2005-08-18 Thread Jacob Kaplan-Moss
On Aug 18, 2005, at 11:19 AM, David S. wrote: Since the admin templates are auto-generated, how does any JavaScript that you link in with the js option actually get used? The given JS URLs are added to the document's ; the can use onload events to modify the page display. For example, you

meta.Admin js option

2005-08-18 Thread David S .
Since the admin templates are auto-generated, how does any JavaScript that you link in with the js option actually get used?

Re: [newbie] Existing Database?

2005-08-18 Thread Jacob Kaplan-Moss
On Aug 18, 2005, at 10:32 AM, dharms wrote: This is a complete newbie question. I'm curious what experiences people had adopting Django to an already existing database (in use by other software and thus not easily changeable). Do you just have to create a model that matches the exisiting datab

[newbie] Existing Database?

2005-08-18 Thread dharms
This is a complete newbie question. I'm curious what experiences people had adopting Django to an already existing database (in use by other software and thus not easily changeable). Do you just have to create a model that matches the exisiting database, and what may be some caveats? Thanks! D.

Re: Concurrent applications

2005-08-18 Thread Andy Shaw
Matthew Marshall wrote: For dynamic data that you need on every page, I would make a custom template tag. Check this out for how to do it: http://code.djangoproject.com/file/djangoproject.com/django_website/apps/blog/templatetags/latestblogentry.py MWM As it happens, I've just finished doin

Re: What is this sites thing?

2005-08-18 Thread Jacob Kaplan-Moss
On Aug 18, 2005, at 8:48 AM, Milton Waddams wrote: --- view --- latest_stories_list = storys.get_list(order_by=['-pub_date'], limit=5, active__exact=1, sites__domain__exact=DOMAIN) Currently I'm hardcoding DOMAIN, though plan to pull it in from the http headers. The

Re: What is this sites thing?

2005-08-18 Thread Milton Waddams
I've been playing with it a little today and it appears to be perfect for what I was looking for. I need to build a couple of websites (may expand out to more in the future) which will be sharing a quite a few stories with a common administrator. so after fiddling with it a little bit and setting

Re: Concurrent applications

2005-08-18 Thread Matthew Marshall
On Wednesday 17 August 2005 12:49 pm, Andy Shaw wrote: > Is there any easy way to have two or more applications run > simultaneously? Having created one fully-working application, which > provides content for part of my site, I now want to construct another > which will provide site-global menus a

Re: Set arguments in model dinamically

2005-08-18 Thread paolo
Adrian Holovaty ha scritto: > On 8/17/05, paolo <[EMAIL PROTECTED]> wrote: [cut] > > For customization like this, you can write some custom JavaScript that > alters your form in that way. Then just add the path to your > JavaScript file to the "admin.js" list in your model. [cut] Hi Adrian, perh