Template - counter for if loop

2011-06-02 Thread jai_python
I need to show the heading only one time when forloop executed along with if-loop; example: - data.html -- {% for val in data %} {% ifnotequal val 2 %} My Heading {{val}} {% endifnotequal %} {% endfor %} Input data=[1,2,3,4,5,2,6]

Re: how to implement a data grid? (or populate inlineformset with initial data)

2011-05-31 Thread jai_python
Hi, Long back i had used Dojo data grid, plz go through my blog http://jayapal-d.blogspot.com/2009/08/dojo-datagrid-with-editable-cells-in.html I am sure that we can do with jquery. Lemme know if u required any help. Thanks, Jayapal On May 31, 6:39 am, snfctech

Django persistent database(postgres) connection.

2010-08-27 Thread jai_python
Hi friends, My django application runs in red hat server with apache & mod_wsgi. We have several request which interacts with database(postgresql), so database interaction is huge. i found that every time django application establishing a new connection to interact with DB. So my server

Django interactive shell shows invalid datetime

2010-08-08 Thread jai_python
Dear friends, I am just wondering how comes django interactive shell shows wrong datetime. I.e my system correct time (python shell) shows print datetime.datetime.now() --> ``2010-08-09 00:44:33.439732`` and django interactive shell shows wrong time print datetime.datetime.now()-->

change database schema ``Public``

2010-07-14 Thread jai_python
HI friends, How can we change the database schema ``Public`` to ``MySchema``. Default syncdb will create tables in public schema. How can i change it? Thanks & Regards, Jayapal D -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Search by omitting special characters

2009-11-23 Thread jai_python
HI Leepy, Even am also got stuck with the same issue. Did you find any solution? I want to search content inside TEXTFEILD without any condition like (comma, line break, space)Can anyone here to help me out to solve this issue. Thanks & Regards, Jai Python On Nov 23, 4:15 pm, leppy

Re: redirect or reload page after pdf file generation.

2009-11-04 Thread jai_python
I save the response content in pdf file and then page will be redirected and pdf file will be called on page onload Thanks Jai On Nov 3, 11:10 am, Jani Tiainen <rede...@gmail.com> wrote: > jai_python kirjoitti: > > > > > Hello every one, > > > I have a form w

redirect or reload page after pdf file generation.

2009-11-02 Thread jai_python
Hello every one, I have a form which contains group of data and I can select some of them to take pdf file. When I submit the form, it returns pdf file which contains the selected data. But i need to redirect or reload the present form after pdf file has been generated inorder to remove

inlineformset_factory multiple models error.

2009-07-09 Thread jai_python
Hie I am using formset for edit details belonging to a particular ticket. But when I used the below function , I am getting error as follows. Models --- class Ticket(models.Model): ticket_id = models.AutoField("ID", primary_key=True) title = models.CharField("Ticket

Invoke Django admin list filter

2009-07-02 Thread jai_python
Hi Friends. Can any one help me to implement or invoke Django default admin list filter in our own application. Thanks in advance, Jayapal D --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Dynamic upload paths Based on object

2009-05-13 Thread jai_python
I want to create Dynamic Upload Path for my models as follows. Models.py. --- class Books(models.Model): no=models.IntegerField() class Collection(models.Model): Page=models.ForeignKey('Books')

django decimal field query issue

2009-05-10 Thread jai_python
Hie, I have a problem in django decimal field query execution. Here i have explained clearly about my problem. Model Class VehicleLocation: simno = models.DecimalField(max_digits=10, decimal_places=0) latitude = models.DecimalField(max_digits=25,

Database connection object in session

2009-03-04 Thread jai_python
Hi. Is it possible to add database connection object in session and handle in different views. Thanks in advance. Jayapal --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

How can i use "Django Admin" part sortable in my project?

2009-01-05 Thread jai_python
Hi frenz, i want to use sortable in my project for sorting datas. already django admin part has one sortable. can we use(extend) admin part sortable in our project. if possible, can you please tel me how can i do it? Would be thankful for reply. Jayapal

Re: DJango +Appy Framework+ generate pdf and odt file

2008-12-22 Thread jai_python
No one here to solve my problem :( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send

DJango +Appy Framework+ generate pdf and odt file

2008-12-22 Thread jai_python
Dear all, I am using POD APPY framework (http://appyframework.org/) for generating reports in pdf and odt files. i am able to get reports in odt file using development server. when i tried with pdf reports, i got an error ERROR

please help me to solve the anchor tag issue

2008-12-12 Thread jai_python
Hi.. I want to implement "HELP" in my project. For time being i am planning to do a general help by including all help contents in the same html file(say for example-help.html). My application contains some 10 pages (search page, login page, form submit page, report page,...etc ) with a

Re: Get values of HTML Select Multiple Tag From request.POST

2008-11-29 Thread jai_python
thanks for your reply. I got the solution On Nov 29, 2:30 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On Sat, Nov 29, 2008 at 3:19 AM, jai_python <[EMAIL PROTECTED]> wrote: > > Issue that I found out is "The variable 'colour' gets overwritten > >

Get values of HTML Select Multiple Tag From request.POST

2008-11-29 Thread jai_python
HI, I have a problem in getting values from an HTML SELECT MULTIPLE TAG through request.POST -- My form.html page contains Red Pink Black

Re: Logout- Back Button

2008-11-28 Thread jai_python
Any possible to clear browser cache alone using javascript? it ill help to solve this back button problem. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: parameter not getting passed to view function

2008-11-24 Thread jai_python
modify ur url as (r'^hello/(?P[^/]+\w*)/?', 'swamiji.poll.views.hello') http://localhost:8000/hello/TEST then "print who" in ur view file. Lemme know, if it fails to work. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Logout- Back Button

2008-11-24 Thread jai_python
i have tried with Django decorators never_cache and cache_control, but still facing same issue. its purely based on browser cache. never_cache decorators say that browser wont get cache, but its Firefox by default cached all time. Then i googled out to find a solution to clear cache using

Re: Logout- Back Button

2008-11-12 Thread jai_python
hi.. i tried with logout_then_login method. But i am still facing that back button after logout issue.. any other suggestion? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Logout- Back Button

2008-11-07 Thread jai_python
thanks alot for your reply. i need to check out this logout_then_login method. i will update the status after testing. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Logout- Back Button

2008-11-06 Thread jai_python
But closing browser after logout in not a proper solution for this issue right? just take gmail as example, after logout from gmail accont and hit back button, it will prompt to login page, this is one proper method for secure our data. Does django supports this methodology ?

Re: Logout- Back Button

2008-11-06 Thread jai_python
Please help me out --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email

Logout- Back Button

2008-11-06 Thread jai_python
Hi, i have created a project named as Asset and application named as Management. The problem i am facing is after i logout form the project, if i hit the back button it fails to show the login window. I knew that some browsers don't actually hit the server on a "back". So can u tel me how to

How to give a style for "CHOICE FILED" in py file

2008-03-04 Thread jai_python
class cust_search(forms.Form): customer_name= forms.CharField(max_length = 255, required = False) product_id= forms.CharField(max_length = 1, required = False) date1=forms.DateField(widget=forms.TextInput(attrs={'class':"vDateField"}),required = False)