TemplateDoesNotExist - on Windows

2010-11-05 Thread deepak dhananjaya
Greetings! I have installed the latest django on windows, and the current folder structure here is : clinicmanager\clinic - my app clinicmanager\templates - template dir i m using settings.py in clinicmanager\settings.py TEMPLATE_DIRS = ( "C:/drives/workarea/Django/django/bin/clinicman

Re: Filter not returning data!!

2010-07-24 Thread deepak dhananjaya
I am passing PatientHistory type class object to template PatientHistory has patient which is of type record. so inturn when I receive PatientHistory as parameter to template, i.e. patient, it inturn has patient.patient.patient_id but even after ignoring patient_id, {{patient.date}} is also not ge

[newbie] Filter not returning data!!

2010-07-24 Thread deepak dhananjaya
I have models like : class Record(models.Model): patient_id = models.IntegerField(primary_key=True) name = models.CharField(max_length=200) problem = models.CharField(max_length=500) and class PatientHistory(models.Model): patient = models.ForeignKey(Record) date = models.DateField(auto_

join objects in templates

2010-07-24 Thread deepak dhananjaya
i have model like: class Record(models.Model): patient_id = models.IntegerField(primary_key=True) name = models.CharField(max_length=200) problem = models.CharField(max_length=500) and class PatientHistory(models.Model): patient_id = models.ForeignKey(Record) date = models.DateField(auto

Re: URL DID NOT MATCH ANY OF THESE! Error!!

2010-07-23 Thread deepak dhananjaya
t; > On Fri, Jul 23, 2010 at 11:38 AM, deepak dhananjaya > > > > wrote: > > Thank you! It worked.. I have to get my basics of regular expressions > > rite!! > > > On Jul 23, 8:33 pm, Shawn Milochik wrote: > >> You have three regular expressions. T

Re: URL DID NOT MATCH ANY OF THESE! Error!!

2010-07-23 Thread deepak dhananjaya
Thank you! It worked.. I have to get my basics of regular expressions rite!! On Jul 23, 8:33 pm, Shawn Milochik wrote: > You have three regular expressions. Two of them require digits, and > one requires *only* /record/, with no additional arguments. > > So /record/john/ does not match any of tho

URL DID NOT MATCH ANY OF THESE! Error!!

2010-07-23 Thread deepak dhananjaya
My URLS.PY has urlpatterns = patterns('', (r'^record/$', 'phonebook.record.views.showlist'), (r'^record/(\d{3})/$', 'phonebook.record.views.testrecord'), (r'^record/(?P\d+)/$', 'phonebook.record.views.showRecord'), #(r'^record/(?P\d+)/$', 'phonebook.record.views.showlist'), # Ex