Re: Django IDE
Eclipse is the best IDE for python and django. On Jul 17, 8:53 pm, Jitendra Joshi wrote: > What is the best open source Django IDE ? -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: why does if statement fail with
if statement in template language checks only whether the variable is empty or not... comparison can be done with other variants of if such as ifequals ifnotequal etc... -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: TemplateSyntaxError: 'if' statement improperly formatted
hi If you want to compare the value you have to use ifequal or ifnotequal tag in template language. if you use "if" this will check only weather the variable is empty or not -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Is it ok to use double quotes instead of single quotes in Field.choices?
Dear , Just check how you are creating that string.(1,'i'm looking for...') you are giving it like 'i'm . Effectively your string will be only 'I' and remaining part will be taken as a undefined variable or something like that. if you want to make it correct you have to add escape sequence like 'i\'m looking for ..' this will work.basically you have to add an escape character if you want to add ' or " inside a string.. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Django Settings File - Where is it?
create a project with django-admin.py startproject project1 and this will create a folder named project1 and check in this foder will have settings.py urls.py manage.py and __init__.py etc. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Django editor for Debian
On Dec 16, 12:58 pm, NMarcu wrote: > Hello all, > > Can you tell me a good Django editor for Debian? Something more > pretty then default text editor. Something to can edit templates also. > Thanks. You could use eclipse ide for this with pydev or try aptana ide -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Help me with django templates
I got it error was i was trying to check to two different data types one was an integer and other was a string like 1 and '1' On Dec 9, 8:34 pm, Daniel Roseman wrote: > On Dec 9, 2:18 pm, Biju Varghese wrote: > > > > > {%for jobsp in jobspecs%} > > {%ifequal jobsp.id jobtitle.jobspec_id %} > > {{jobsp.id}} > > {%endifequal%} > > {%endfor%} > > -select- > > {%for jobspec in jobspecs%} > > > value="{{jobspec.id}}">{{jobspec.jobspec_name}} > > {%endfor%} > > > > > I am trying to nest ifequal with for loop .my problem is i am not able > > to get value of (jobsp.id) ie value of jobsp is not available in the > > ifequal block is there any other way to do this.. > > Why is it not available in the ifequal tag? It should be. Have you > checked that it actually has a value? > > You should also consider doing this whole thing using the forms > framework, which will output select fields for you. > -- > DR. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Help me with django templates
{%for jobsp in jobspecs%} {%ifequal jobsp.id jobtitle.jobspec_id %} {{jobsp.id}} {%endifequal%} {%endfor%} -select- {%for jobspec in jobspecs%} {{jobspec.jobspec_name}} {%endfor%} I am trying to nest ifequal with for loop .my problem is i am not able to get value of (jobsp.id) ie value of jobsp is not available in the ifequal block is there any other way to do this.. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.