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
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
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_
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
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
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
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
7 matches
Mail list logo