Re: What is this sites thing?

2005-08-17 Thread Adrian Holovaty
On 8/17/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > This ``sites'' thing seems useful to me, but I don't quite understand > how I might use it. I can't find any documentation for it, so I get > the feeling it may be deprecated. Nope, it's not deprecated -- it's just not documented yet. Ba

What is this sites thing?

2005-08-17 Thread [EMAIL PROTECTED]
This ``sites'' thing seems useful to me, but I don't quite understand how I might use it. I can't find any documentation for it, so I get the feeling it may be deprecated.

Re: stripping malicious code?

2005-08-17 Thread [EMAIL PROTECTED]
I'd like to see something the other way. As opposed to either removing all tags or removing some tags, wouldn't it be more useful to list the tags you wish to retain?

Model updates

2005-08-17 Thread Maniac
I wonder how Django's object-relational mapping handles update to models? Let's say I want to replace one old field with two new fields. Can this be handled more or less automatically? Will I lose values from this one field, or whole table, or whole schema?

Re: Set arguments in model dinamically

2005-08-17 Thread Adrian Holovaty
On 8/17/05, paolo <[EMAIL PROTECTED]> wrote: > The model I'm using for 'customers' has a BooleanField called > 'blocked'. I'd like that when blocked is True other fields won't be > shown, or eventually won't be editable. For customization like this, you can write some custom JavaScript that alter

Re: {% ifnotequal %} string compare

2005-08-17 Thread Adrian Holovaty
On 8/17/05, David S. <[EMAIL PROTECTED]> wrote: > I am editing the admin index.html file so that it will ignore Core and Auth > and > just list the user defined models. > But using : > {% ifnotequal app.name 'Core' %} > appears to have no effect. > > Am I misunderstanding this tag? Currently, i

Re: links in admin not working

2005-08-17 Thread xtian
D'oh! I just finished sending a message about the same thing. On 8/17/05, David S. <[EMAIL PROTECTED]> wrote: > > Some images are not showing up in admin. For example: > "/media/img/admin/icon_searchbox.png" is not found. In fact, it is sent - it's truncated. > > The images linked to in the

broken images in development server?

2005-08-17 Thread xtian
When I've been playing with Django I've often noticed broken images in the admin interface - chasing the urls shows that they seem to resolve to the correct files, but requesting the urls results in blank images for .gifs and invalid files for .pngs (for example, the search icon /media/img/admin/i

Set arguments in model dinamically

2005-08-17 Thread paolo
The model I'm using for 'customers' has a BooleanField called 'blocked'. I'd like that when blocked is True other fields won't be shown, or eventually won't be editable. How to obtain this? Thanks

Re: {% ifnotequal %} string compare

2005-08-17 Thread Robin Munn
On 8/17/05, David S. <[EMAIL PROTECTED]> wrote: > > I am editing the admin index.html file so that it will ignore Core and Auth > and > just list the user defined models. > But using : > {% ifnotequal app.name 'Core' %} > appears to have no effect. > > Am I misunderstanding this tag? I think t

{% ifnotequal %} string compare

2005-08-17 Thread David S .
I am editing the admin index.html file so that it will ignore Core and Auth and just list the user defined models. But using : {% ifnotequal app.name 'Core' %} appears to have no effect. Am I misunderstanding this tag?

links in admin not working

2005-08-17 Thread David S .
Some images are not showing up in admin. For example: "/media/img/admin/icon_searchbox.png" is not found. The images linked to in the stylesheet work fine. Is there configuration that fixes this?

Re: Split model's classes in more modules

2005-08-17 Thread Adrian Holovaty
On 8/17/05, paolo <[EMAIL PROTECTED]> wrote: > I thought it was a valid option to fragment models' classes in more > python modules, and import them inside > project/apps/application/models/application.py > However when i try django-admin.py sql application I get a traceback > (http://django.paste

Split model's classes in more modules

2005-08-17 Thread paolo
I thought it was a valid option to fragment models' classes in more python modules, and import them inside project/apps/application/models/application.py However when i try django-admin.py sql application I get a traceback (http://django.pastebin.com/339033) Do you know what I'm doing wrong? Tha

Concurrent applications

2005-08-17 Thread Andy Shaw
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 and other such features. However, I see no easy way of working t

Re: global settings

2005-08-17 Thread [EMAIL PROTECTED]
Thanks for the suggestion. I've implemented something similar. What I'd really like, though is things that can be updated via the admin interface (or whatever) and that I can use in the templates: {% if global.foo %} --B

Re: stripping malicious code?

2005-08-17 Thread Milton
sorry for being so quick to post, think I may have found what I was looking for... I think I was after the removetags filter

stripping malicious code?

2005-08-17 Thread Milton Waddams
Hi All, I'm wondering if there are any builtin methods for stripping malicious code from chunks of html (eg. script, iframe etc.), or would I be best served to check the form data and strip anything unwanted manually? many thanks

radio_admin?

2005-08-17 Thread [EMAIL PROTECTED]
Does radio_admin actually work? I've done the following: meta.ManyToManyField(DayToHelp, radio_admin=True, blank=True, null=True), yet, I get a select list everywhere I try to reference that field. Should I expect this to work for user forms, too? The current way would *a

Re: where stylesheets live

2005-08-17 Thread [EMAIL PROTECTED]
Seem to have a habit of answering my own questions - just copied them from the django default directory and set up an Apache "SetHandler none" for the apt directory.