Re: type object 'DataTable' has no attribute 'datFile'

2013-07-08 Thread Daniel Roseman
On Monday, 8 July 2013 10:36:57 UTC+1, Nigel Legg wrote: > Thanks Daniel. > Before trying that, I went nto the python shell, imported the DataTable > model, and tried DataTable.objects.all(), and got the error: > DatabaseError: no such column: myapp_datatable.datFile. > I tried re-running syncd

Re: type object 'DataTable' has no attribute 'datFile'

2013-07-08 Thread Nigel Legg
bles.html', { >> 'form': form, >> }) >> >> def tabspec(request): >> try: >> datFile = DataTable.datFile >> context = Context({ >> 'datFile': datFile, >> }) >> except Data

Re: type object 'DataTable' has no attribute 'datFile'

2013-07-07 Thread Daniel Roseman
datFile = DataTable.datFile > context = Context({ > 'datFile': datFile, > }) > except DataTable.DoesNotExist: > raise Http404 > return HttpResponse(template.render(context)) > > The DataTable view shows, as a form; I enter t

type object 'DataTable' has no attribute 'datFile'

2013-07-06 Thread Nigel Legg
s a form; I enter the values for the ields, when I click the button, I get the error "type object 'DataTable' has no attribute 'datFile'". I thought maybe I should be referring to DataTableForm.datFile, but this gave the same error. I am confused, could any one tell me wh