Load my own template tags in django admin site

2008-09-20 Thread jabbercat
Hello, does somebody know how to load your own template tags in the Django admin site? I tried the {% load %} tag, but he already searchs the tag at django.template. I have my own templatetags in /app/templatestags/ mytags.py. How can I change that? --~--~-~--~~~---~--

Multiple templates for different admin sites

2008-09-17 Thread jabbercat
Hello, I'm using Django 1.0 and I specified two different admin sites. Now I want to use different templates for these admin sites, but when I place these templates in the template directory the template in templates/admin/ is used for both admin sites. What I have to do that both admin sites us

Timeout for URLField?

2008-06-26 Thread jabbercat
Hello, does somebody know if there is a possibility to specify a timeout for the URLField? I'm just using a URLField, but if the URL is not correct the URLField needs a lot of time to response with an error. Thanks for help --~--~-~--~~~---~--~~ You received this

File Upload with form_for_model

2008-05-22 Thread jabbercat
Hello, I want to upload files with a Form generated by form_for_model(). The form is ok, but I can't upload files, because I get different errors. I get an error, that FileForm has no attribute cleaned_data. Knows somebody the problem? Here my code: The template: Add a file

Re: How to add an object with relations to other objects

2008-05-17 Thread jabbercat
elps, your original post was somewhat confusing, if you > post relevant snippets from your models you may get more intelligent > responses than my intellectual meanderings. > -richard > > On 5/16/08, jabbercat <[EMAIL PROTECTED]> wrote: > > > > > > > > > Hell

How to add an object with relations to other objects

2008-05-16 Thread jabbercat
Hello, it's my frist time I'm using this Group. My Problems: I have a class A and a class B with a one(A)-to-many(B) relationship between them. My first question: Is there an efficient way to get in a template all instances of B, which are related to an instance of A, when i only knew an instan