how to search data from tables

2011-03-13 Thread django beginner
Hi all, I would like to know is there any way I can search any data from tables given some parameters: Suppose I have this person model: class Person(models.Model): userid = models.AutoField(primary_key=True) fname = models.CharField(max_length=30) lname = models.CharField(max_length=

Add, Edit and Delete link using Forms (not templates) per row without using built django-admin functionality

2011-03-17 Thread django beginner
Hi Django users, I am having some dilemma over converting simple admin page Template (without having to use the built in django-admin functionality) by using forms, and not templates, I have the following sample Admin page that allows users to add, edit and delete record per row to Forms: (Edit an

How do I use widgets on Templates and (not on Forms)?

2011-03-18 Thread django beginner
Hi all, How do I use widgets on the field of a template(not forms)? Let's say I have a field called Member, and this field should be in select form that has choices from members table (field: member_name)? tried using select option on html, but it ain't seem to work. any inputs? Thanks. -- You

how to compose templates with widgets (that has dynamic contents in it)

2011-03-20 Thread django beginner
hi django experts! May I know how to create templates that has django widgets in it? please refer to my should-be template output below: Name: here is the sample model: class Name(models.Model): name_id = models.AutoField(primary_key=True)

case sensitive model fields: does object_id gets smallcap field?

2011-03-20 Thread django beginner
Hi all, Suppose I have these data: class Name(models.Model): nameId = models.AutoField(primary_key=True) name = models.CharField(max_length=20) nameAddress = models.CharField(max_length=50) on my views.py: def name_delete(request, object_id): conn = psycopg2.connect("dbname=mydb

how to parse string in django

2011-03-27 Thread django beginner
hi django experts, how do I strip the following string in python (Charfield format) 14:00 3:00 wherein I could compare the results - convert in integer: if 14 > 3 . . . thanks in advance! -- You received this message because you are subscribed to the Google Groups "Django users" group. To p

how to parse string in django

2011-03-27 Thread django beginner
hi django experts, how do I strip the following string in python (Charfield format) 14:00 3:00 wherein I could compare the results - convert in integer: if 14 > 3 . . . thanks in advance! -- You received this message because you are subscribed to the Google Groups "Django users" group. To p

how to parse string in django

2011-03-27 Thread django beginner
hi django experts, how do I strip the following string in python (Charfield format) 14:00 3:00 wherein I could compare the results - convert in integer: if 14 > 3 . . . thanks in advance! -- You received this message because you are subscribed to the Google Groups "Django users" group. To p

validate user input on templates

2011-03-27 Thread django beginner
Hi django experts, just want to know your opinion on how to validate the user input (example: the user input field should be integer, but the user accidentally inputs any character), here is my code: FYI; the numberofapples field is IntegerField here is my sample code: def apples_edit(request):

How to create message box window using Django

2011-03-29 Thread django beginner
Hi all, Could someone please tell me how to create a Message Box using Django? Thanks in advance. -- 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 grou

Django real world website samples (with django source codes)

2011-04-06 Thread django beginner
Hi all, Could someone please give a link on some of the samples for real world Django websites? Thanks and have a nice day! Regards, Django Beginner -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email