Re: 'CharField' object has no attribute 'model'

2015-12-28 Thread Billu
Thanks, I had changed it to questions_included = models.ForeignKey('quiz.Question', null=True) and also changed the db from Postgresql to Sqlite. Will see if this problem again comes up. @luisza14 - did you find out by going through the code or are there any other ways to find out? -- You

Re: 'CharField' object has no attribute 'model'

2015-12-28 Thread Luis Zárate
I guest the problem is here questions_included = models.ForeignKey(models.QuestionAnswer) Django models haven't QuestionAnswer. El sábado, 26 de diciembre de 2015, Simon Charette escribió: > Hi Billlu, > Does one your model use an ArrayField? > > Le samedi 26 décembre

Re: Migrate django project to eclipse/pydev ide

2015-12-28 Thread Luis Zárate
I use Aptana studio that is an eclipse fork and has pydev include also django is well supported. El miércoles, 23 de diciembre de 2015, Gary Roach escribió: > To your first question, in one word $money. I would love to use PyCharm but I am not a commercial developer

Django how select one photo per gallery in one call to DB?

2015-12-28 Thread piasek piasek
I have two models: Gallery and Photo, Photo has Gallery as FK. Is it possible to return in one call one photo per gallery? I already tried: photos = Photo.objects.filter(active=True) photos.annotate(g=Count('gallery')) unfortunately when I call query I got something like that: GROUP BY

Re: Display form errors above its respective field with ajax

2015-12-28 Thread Abhishek Bansal
On Monday, December 28, 2015 at 11:11:13 AM UTC+5:30, Robin Lery wrote: > > I have a contact form through which users would be able to contact me. I > am using django with ajax, and it works fine if there's no error. I would > like to show the errors if there's any like it displays above the

Aw: React.js with django-rest-framework using SessionAuthentication: How to include CSRF-Token documentation has not helped me :/

2015-12-28 Thread lnzy35en
Solution was to use: csrfmiddlewaretoken insteed of csrftoken. I hope that will save someones days, that run into the same issues.     Gesendet: Sonntag, 27. Dezember 2015 um 13:29 Uhr Von: lnzy3...@gmx.de An: django-users@googlegroups.com Betreff: React.js with django-rest-framework using

Re: Scanning for Wifi

2015-12-28 Thread Bill Freeman
Yes, though there probably isn't a slick app for the PC to do it. You would have a web server running on the Pi, maybe Django, that displays the available wireless networks. You would want a button to re-scan. This works by trigering a shell command to run iwlist (or whatever the current tool

Scanning for Wifi

2015-12-28 Thread Andrew Stringfield
Hello all, I saw a really cool feature that D-link wireless cameras have. First you physically hook up the camera to the LAN and then access the camera via web interface. While on the web interface you can scan for your wireless network and connect the camera, wirelessly, to your

Re: settings.py variables in fixtures

2015-12-28 Thread Salvatore Scaramuzzino
Thank you Russel, you centered my problem, I asked here in case exists a solution for this that i doesn't know. I will write my own management script that "adapt" the dump data contained in JSON to the particular "installation" of the web application. thanks again for your support. Il

pip install twisted hangs

2015-12-28 Thread Ganeshwari Sk
I have my standalone box without internet connection and having pythong packages in a directory to install, I used the following pip command to install the python package with the "requirement" file /usr/bin/pip install --no-download -r ./installer/requirements -b

Running setup.py install for twisted hangs

2015-12-28 Thread Ganeshwari Sk
I have standalone box with python packages downloaded and no internet connection. And when I tried to execute /usr/bin/pip install --no-download -r ./installer/requirements -b ./installer/SOURCES/python-modules-sources --install-option=--prefix=/somepath/tmp It is hanging when "Running

Re: Django debug= false throwing 503 error

2015-12-28 Thread Web Architect
Hi, Thanks for your response. I had run the server using runserver and it threw the same error: December 28, 2015 - 08:57:30 Django version 1.8.4, using settings 'jivaana.settings' Starting development server at http://0.0.0.0:8600/ Quit the server with CONTROL-C. HTTPError = 503

Re: Django debug= false throwing 503 error

2015-12-28 Thread Web Architect
I had run the server locally using ./manage.py runserver and it threw the error on the console: December 28, 2015 - 08:57:30 Django version 1.8.4, using settings 'jivaana.settings' Starting development server at http://0.0.0.0:8600/ Quit the server with CONTROL-C. HTTPError = 503

Re: Django debug= false throwing 503 error

2015-12-28 Thread Web Architect
Thanks for your message. On Production, I am running the server behind Nginx. Its run using uwsgi. The server works fine with "DEBUG=True" but when it's set to false, it throws http 503 error. I saw it in uwsgi logs. Also, when I ran the server locally with ./manage.py runserver, its on the

Re: Django debug= false throwing 503 error

2015-12-28 Thread Esau Rodriguez
Hi, I assume the development server is working. If that is the case it could be that you have a problem with your production stack. I remember a situation long time ago (like Django 1.1 or so) a project I run with apache + mod_wsgi and we have a problem like this (I don't remember the error code)

Re: Django debug= false throwing 503 error

2015-12-28 Thread monoBOT
​Your server is not working, the first thing to do always is see what is the error message: 503 Service Unavailable The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will

Re: Django debug= false throwing 503 error

2015-12-28 Thread aRkadeFR
Hello, How do you run your server in production? Where do you see the server throwing the 503 error? Thanks, On 12/28/2015 09:46 AM, Web Architect wrote: Hi, I have set the following in settings.py for our production system: DEBUG=False ALLOWED_HOSTS = ['*'] (in fact any value is not

How do I print the selected checkboxes names in django

2015-12-28 Thread santosh reddy
Hi All, Please find the reuirement: 1) Need to retrieve the test cases from database 2) provide an option to user to selcect the test cases which he want to run. 3) Need to send the selected test cases to target. forms.py class CustomCheckboxSelectMultiple(forms.CheckboxSelectMultiple): def

Django debug= false throwing 503 error

2015-12-28 Thread Web Architect
Hi, I have set the following in settings.py for our production system: DEBUG=False ALLOWED_HOSTS = ['*'] (in fact any value is not working) The server is throwing "HTTPError = 503". There are no logs and I am clueless about the reason for the error. I tried searching the net and looking