Re: Error while customizing admin/change_form.html

2010-06-15 Thread igor.potapenko
> here is my code in change_form.html > > {% extends "admin/change_form.html" %} ... and ... > Caught RuntimeError while rendering: maximum recursion depth exceeded You try to extend template with itself. -- You received this message because you are subscribed to the Google Groups "Django us

Re: inlineformset_factory. how to get pk of parent model without saving.

2009-03-26 Thread igor.potapenko
btw, if I leave instance = None, I got an list index out of range here: http://dpaste.com/hold/19039/ full example. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

inlineformset_factory. how to get pk of parent model without saving.

2009-03-25 Thread igor.potapenko
Hi, people! I want to write a view, which save all my data, entered to form.(like contrib.admin) But I got a problem. How to get a pk value of parent form, when it's just saved(form is continue editing)? I have such models: ## class Question(models.Model): number = models.IntegerField(

[urls bug?] django calls several views at once.

2009-03-22 Thread igor.potapenko
Is it normal behavior? In example below, I try to call myapp2.view.cat2_view through "/a/" url-path. It's calling, however another views myapp1.view.cat1_viewis also calling with it at same time. F:\igor\apps\devel\django\temp>django-admin.py startproject myproj F:\igor\apps\devel\djang

Re: change path to django project.

2008-04-29 Thread igor.potapenko
yes. problem've solved. in settings replace nola.polls to nola2.polls and anyting work fine. big tnx!!! On 29 апр, 20:55, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Tue, Apr 29, 2008 at 12:39 PM, igor.potapenko <[EMAIL PROTECTED]> > wrote: > > >

change path to django project.

2008-04-29 Thread igor.potapenko
Hello! I installed new project in path1 (... django/nola). After that I make copy of this project to path2. Why it work with path1 and don't work with path2 ? I thought, that there is some options (path_var or smth) in setting.py, but I found no variables. Where is information about path's st