RE: Error at the return of an AJAX POST in DJANGO

2020-10-25 Thread 'Trevor Woolley' via Django users
Walter, If your copy and paste is accurate you have too many closing brackets in the ajax section. Try removing one of these from the end of the ajax section: }); From: django-users@googlegroups.com On Behalf Of Walter Randazzo Sent: Monday, 26 October 2020 9:09 AM To: django-users@googl

Re: Unit testing Multiselect fields not loading as expected

2017-05-08 Thread Trevor Woolley
data from > your production database when running tests?" note in ​this section [0]. > > [0] https://docs.djangoproject.com/en/dev/topics/testing/ > overview/#the-test-database > > > On Sunday, May 7, 2017 at 9:05:09 PM UTC-4, Trevor Woolley wrote: >> >> Fu

Re: Unit testing Multiselect fields not loading as expected

2017-05-07 Thread Trevor Woolley
Further investigation shows this as failing outside of a test scenario, and the "my_choices" is not being updated, unless the server (be that the ./manage.py runserver" or a production apache server) is restarted. Rgds Trevor On Friday, May 5, 2017 at 3:20:04 PM UTC+10, Trevo

Unit testing Multiselect fields not loading as expected

2017-05-04 Thread Trevor Woolley
Hi, when I run a unittest on a form containing a MultipleChoiceField, and in the unittest I test setting what I think should be a valid field, it does not pass. It appears that field in question extracts the data is uses for the test before the test database is created, and actually uses the pr

Re: Django+mod_python+fedora 6 (x86_64)+apache problem

2006-12-21 Thread woolley
Matthew, Thanks for that url, that actually works. Which helps with the diagnosis. The version of Apache is 2.2.3 details for how and what it is compiled with is below. Rgds Trevor Server version: Apache/2.2.3 Server built: Sep 11 2006 09:43:18 Server's Module Magic Number: 20051115:3 Serve

Re: Django+mod_python+fedora 6 (x86_64)+apache problem

2006-12-20 Thread woolley
Denis, Thank you for your response some of the things that I have tried in this area are listed below, yet still I cannot seem to get this to work. 1) moved the django directory into the appropriate site-packages directory 2) symlinked into the /usr/lib/... structure as well as the /usr/lib64 s

Django+mod_python+fedora 6 (x86_64)+apache problem

2006-12-19 Thread woolley
Hi, I'm hoping someone can help, as I seem to be going around in circles with this issue. No matter what I try I cannot get this to function. httpd.conf snippet -- Options FollowSymLinks Order allow,deny

Re: Getting the values from a Sparse Matrix in a template

2006-09-22 Thread Woolley
Malcolm, Many thanks, I will go with the first option, it is not a great change to enable this, and I would rather not cross the line on the template side. Rgds Trevor Malcolm Tredinnick wrote: >On Sat, 2006-09-23 at 00:12 +1000, Woolley wrote: > > >>Hi, >> >>I

Getting the values from a Sparse Matrix in a template

2006-09-22 Thread Woolley
Hi, I was wondering how to read a sparse martrix in a django template. I can generate the matrix in the view function, but I cannot seem to get the results to come out. Basic assignment/ format below, not how it is really done though, but this is the effective result matrix[(1,0)] = 1 matrix