ValueError: Need 2 values to unpack in for loop; got 3 (actually num_loopvars = 2 and len_item = 3)

2017-07-17 Thread Ogi Vranesic
pythonic. Best regards Ogi On 17.07.2017 16:08, Michal Petrucha wrote: On Mon, Jul 17, 2017 at 03:46:30PM +0200, Ogi Vranesic wrote: Hi I have used some templates in older django versions. But now in django 1.11 using the same templates, the error: ValueError: Need 2 values to unpack in for loop

ValueError: Need 2 values to unpack in for loop; got 3 (actually num_loopvars = 2 and len_item = 3)

2017-07-17 Thread Ogi Vranesic
best regards Ogi -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email

Re: problem with requests and django view

2015-05-31 Thread ogi
I found myself the solution. Stupid!. The variable *url* was entered without* slash* at the end. Anyway thanks to all. Maybe somebody could see that if I copied the *url* and urls.py in the question. Am Freitag, 29. Mai 2015 17:09:39 UTC+2 schrieb ogi: > > Hi > > I have problems

problem with requests and django view

2015-05-29 Thread ogi
n is better but also without data in request.data or args, kwargs. I used many times jQuery with ajax and post method in similar cases and it was always working, so I have no idea what is the difference and what I am missing. Any hint will be very appreciated and thanks in advance. Ogi -- You

problem with BruteBuster

2014-04-27 Thread ogi
ct with django version 1.5.1 on the developing server, but it will be shown no error or warning message in the terminal, brutebuster is still not working and I realy have no idea how to fix this. Could anybody give me a hint please. Thanks in advance and greetings. Ogi -- You received this messag

Re: ajax select box

2011-05-08 Thread Ogi Vranesic
u can generate options for cities using python and replace them automatically in html. If something is not clear google for Dajax, Dajaxice, dajax.json() Greetings Ogi On Sonntag 08 Mai 2011 06:46:54 pm you wrote: > but i dont know about jquery or ajax, can i get any example from any > site , ca

Re: Extremely Frustrated

2011-04-22 Thread Ogi Vranesic
Could You also send us the definition of Book class? Ogi On Donnerstag 21 April 2011 10:00:17 pm you wrote: > Hello, > > I have been working through the Django Book, and I keep getting syntax > errors in the examples in Chapter 6. > > The following example works: &g

error: get_format is not defined

2010-08-15 Thread Ogi Vranesic
Hi django users After updating Django to version 1.2.1 and replacing the old javascript files in myproject/media/js with the new files I become a error get_format is not defined in DateTimeShortcuts.js Can somebody tell me what I'm missing? Thanks in advance and best regards Ogi --

error: 'get format is not defined' in DateTimeShortcuts.js

2010-08-05 Thread Ogi Vranesic
s not defined' Can somebody tell me what I'm missing? Thanks in advance and best regards Ogi -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe fr

Re: DatabaseError: subquery has too many columns

2010-07-25 Thread Ogi Vranesic
Obviously the subquery has too many columns, namely two: "error_test"."id", and "error_test"."name", but you want that only "error_test"."id" is NOT in select elements of the subquery. I'm not even sure that your approch make

how to show blank spaces at the start of string in django templates

2010-05-29 Thread Ogi Vranesic
ould be to loop over the characters in string like: {% for c in number_string %}{% if c == ' ' %} {% else %}{{ c }}{% endif %}{% endfor %} and so to replace blank space with   but this is very cumbersome. Can somebody tell me if we here have a simple and elegant solution? Thanks i

Re: override change_form.html & submit_line.html

2010-03-20 Thread Ogi Vranesic
/tabular.html >> > >In my project I have already a directory /emplates/admin >> and I can put my customizations there, but I don't know >> how to tell django to use them instead of standard templates mentioned >>above >> >> Can somebody

override change_form.html & submit_line.html

2010-03-20 Thread Ogi Vranesic
/admin and I can put my customizations there, but I don't know how to tell django to use them instead of standard templates mentioned above Can somebody tell me what is the best way to do this? Thanks in advance and best regards Ogi -- You received this message because you are subscribed t

Re: InlineModelAdmin related items on two levels

2010-02-14 Thread Ogi Vranesic
>>On Feb 14, 6:19 am, Ogi Vranesic wrote: >> Hi all >> >> I read the very good tutorial onhttp://docs.djangoproject.com/en/dev/ref/contrib/admin/ >> and understood that the admin interface has the ability to edit models on the >> same page as a parent model a

InlineModelAdmin related items on two levels

2010-02-13 Thread Ogi Vranesic
Problem is that I however by B model have also child models: class C b = models.ForeignKey(B) name = ... My Question is : Is it possible than one can add/edit models of A on the one page together with child models B and C as child models of B. Any hint or idee would be very appreciated Ogi

ModelAdmin - related foreign keys

2010-02-09 Thread Ogi Vranesic
e for any hint. Best regards Ogi -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroup

Re: Django or CMS.

2010-02-05 Thread Vranesic Ogi
I can suggest you take a look at these links: > > http://code.djangoproject.com/wiki/CMSAppsComparison > http://pinaxproject.com/ > > > Best! > Hi Gonzalo I have a lot experience with CMS Plone on server Zope, which are written in Python like Django. I believe, this

Re: kss with django

2010-02-04 Thread Vranesic Ogi
Am Donnerstag 04 Februar 2010 15:39:21 schrieb bruno desthuilliers: > On Feb 4, 10:32 am, ogi wrote: > > Hi > > > > I'm new in Django but rather old in Python. > > I followed the tutorialhttp://code.djangoproject.com/wiki/KSSInDjango > > to integrate KS

kss with django

2010-02-04 Thread ogi
;core' Any hint will be very appreciated. Thanks in advance ogi -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email