Log collector to use with Django

2016-12-02 Thread Arnkrishn
Hello, I am kind of new to the Django world and am trying to create a website which allows students to submit course reviews and also search courses based on certain attributes. Am using AWS, Django, PostgreSQL, Elasticsearch. I am trying to figure out components to solve for the following 2 u

Re: wsgiref - When does the complexity of question require posting to the Developers or other forums?

2016-12-02 Thread NoviceSortOf
...Thanks everyone for the above discussion -- some progress today has been noted... To answer Matt's question... The variable at the root of the error appears to be -- response. as found in /usr/lib/python2.7/site-packages/django/core/handlers/base.py line 89 response is assigned as "None" in

RE: wsgiref - When does the complexity of question require posting to the Developers or other forums?

2016-12-02 Thread Matthew Pava
For what it’s worth, I do get this error sometimes when I am running the development server, even in Python 3.5 and Django 1.10. But because it’s the development server, I simply disregard it. I typically only get this message when I am running several AJAX calls very close together. (e.g. Whe

Re: wsgiref - When does the complexity of question require posting to the Developers or other forums?

2016-12-02 Thread NoviceSortOf
Thanks for the reply. I agree the probability of this being a bug in Django is improbable still I found git hub django bug descriptions/discussions which URLs are listed in previous posts. Both of those URLs listed patches to fix the situation, not directly in Django but in the WsgiRef compone

Re: Questions about templates from a novice - Question #1

2016-12-02 Thread jim_anderson
Hi Dan, Thank you, much, for the pointer. I was totally unaware of the ccbv website. I looked over the 1.9 area this morning and after about 30 minutes I think I have a good feel for how the methods are being called. I believe I can use the classes and methods without going 'under the hood'.

Re: Display the __str__ or __unicode__ of an objet on deletion of one of its ManyToManyField

2016-12-02 Thread Jean-Baptiste Pressac
Hello, Thanks Carlos but modifying TypeOeuvre as suggested def __unicode__(self): return self.intitule.__str__ generates the following error : Exception Type: TypeError at /admin/prelib/typeoeuvre/11/delete/Exception Value: __str__ returned non-string (type method-wrapper) 2016-12-02

Re: Display the __str__ or __unicode__ of an objet on deletion of one of its ManyToManyField

2016-12-02 Thread Carlos Andre
def __unicode__(self): return "{0} [{1}]".format(self.titre[:200], self.id).__str__ def __unicode__(self): return self.intitule.__str__ 2016-12-02 10:03 GMT-03:00 Jean-Baptiste Pressac : > Hello, > On Django 1.8 + Python 2.7.11, I have declared in Django admin.py an > oeuvre cl

Display the __str__ or __unicode__ of an objet on deletion of one of its ManyToManyField

2016-12-02 Thread Jean-Baptiste Pressac
Hello, On Django 1.8 + Python 2.7.11, I have declared in Django admin.py an oeuvre class with a ManyToManyField (types) to an TypeOeuvre class. class Oeuvre(models.Model): titre = models.CharField(max_length=510) types = models.ManyToManyField('TypeOeuvre',

Re: How does django pass data through post?

2016-12-02 Thread KARTHIKEYAN THANIKACHALAM
Hi, you have to add name attribute in html file and use same name attribute in request dictionary to get value On Fri, Dec 2, 2016 at 8:21 AM, Jordan W wrote: > Daniel, you nailed it! I didn't have the name specified. Adding that makes > it propagate through! > > On Monday, November 28, 201