Re:Re: Django doesn't email reporting an internal server error (HTTP status code 500)

2016-12-30 Thread Zhao Lee
| Thanks, SERVER_EMAIL is essential to this problem , I've written a article about the problem, learn more | http://redstoneleo.blogspot.com/2016/12/email-reporting-exceptions-and-errors_30.html 在 2016-12-29 16:20:17,"Luis Zárate" 写道: try to change de django loggin

Re: Advise for first project in Django

2016-12-30 Thread Melvyn Sopacua
On Friday 23 December 2016 07:39:04 imed chaabouni wrote: > I am a Tunisian novice developer, and I am about to make my first > project in Django this year after studying Python. Welcome. > First thing comes to mind as a project was making a website music and > listening online, so, I'd like to

Re: Static CSS file for custom widget

2016-12-30 Thread ludovic coues
Have you looked at the media class ? https://docs.djangoproject.com/en/1.10/topics/forms/media/ 2016-12-29 13:20 GMT+01:00 Antonis Christofides : > Hello everyone, > > can a custom widget specify a static CSS file? I think the

request.read() is empty in POST

2016-12-30 Thread Flávio Cardoso
Hello! I'm getting crazy, PLEASE someone, give me some light!!! I'm using Django 1.10.4, Python 3.5 on Windows using Visual Studio Community 2015. I have some class-based views to response some json. from django.views.generic import View from json import loads from bson.json_util import dumps

Re: Advise for first project in Django

2016-12-30 Thread Flávio Cardoso
won't you try a little blog? To get familiar with web and stuff... Em sexta-feira, 23 de dezembro de 2016 13:42:46 UTC-2, imed chaabouni escreveu: > Hello, > > > I am a Tunisian novice developer, and I am about to make my first project > in Django this year after studying Python. > > First

Filtering a many2many relationship while aggregating?

2016-12-30 Thread Richard Brockie
Hi, I have the following many2many relationship between 2 models: class RaceDay(models.Model): date = models.DateField() published = models.BooleanField(default=False) class Series(models.Model): published = models.BooleanField(default=False) year =

Re: Filtering a many2many relationship while aggregating?

2016-12-30 Thread Richard Brockie
Aha - I think this does it: revised_ordered_series = racereg_models.Series.objects \ .filter(racedays__published=True, year=this_year, published=True) \ .annotate(latest_raceday=Max('racedays__date')) \ .order_by('latest_raceday') On Friday, December 30, 2016 at 4:49:51 PM UTC-8,

Re: Django-Channels strange slowdowns - how to profile?

2016-12-30 Thread Andrew Godwin
Wow, that's an incredibly slow network you have there. I would agree that you should move them all to the same place; I would say you want no more than 10ms latency (0.01s) to your Redis server in a case like this. Andrew On Thu, Dec 29, 2016 at 2:31 PM, wrote: > I've