custom tag - render() isn't called

2009-08-20 Thread srk
Hi! I've got custom template tag 'set_title' and can't get it work because render() method isn't called during page render. I use the tag in template 'traff/all_by_days.html': {% extends "traff/all_base.html" %} {% load traff_tags %} {% set_title "The title" %} . When I call render_to_res

TemplateDoesNotExist: 500.html during deployment

2009-06-13 Thread srk
Hello! I managed to deploy my django project in production except static media. When I try to access http://localhost/adminmedia/account.js (my static media file), I get colorful page with stack trace of django.template.TemplateDoesNotExist exception and TemplateDoesNotExist: 500.html in apache2

Custom unique_together

2009-04-22 Thread srk
Hi! I'd like to create custom validation of my admin model. Actually in should act like unique_together in model but it shouldn't allow duplicate entries with NULL values in some fields. I've already done all necessary checks with exception generation in save() method of the model. The only thin

Inline admin model and id of parent model object

2009-04-20 Thread srk
Hi! I've got 2 admin models like these: class MyUserServiceAdminForm(forms.ModelForm): class Meta: model = UserService def clean(self): Get client_id for validation??? return cleaned_data class UserServiceAdmin(admin.TabularInline): model = UserService fields = ('s