Re: Django error report not being sent through email

2015-09-20 Thread Daniel Rus Morales
Hi Xin, Maybe the server from which you are running the project can’t send emails. I would try to send an email using the send_mail function from the shell: $ python manage.py shell >>> from django.core.mail import send_mail >>> send_mail(’the subject’, ’the message’, ‘f...@example.com’, >>> [’t

Re: Django error report not being sent through email

2015-09-20 Thread Rob Groves
I'm not sure if it is a typo... but your have: * EMAIL_HOST = 'stmp.comp.nus.edu.sg '*Should that be: * EMAIL_HOST = 'smtp.comp.nus.edu.sg '* On Saturday, September 19, 2015 at 7:49:56 AM UTC-4, Xin Ji wrote: > > I'm using apache + djan

Re: Django template coverage

2015-09-20 Thread Avraham Serour
would this work with jinja2 templates also? On Tue, Aug 25, 2015 at 3:45 AM, Ned Batchelder wrote: > Hi all, > > If you've been using coverage measurement on your Django code, you might > be interested in a new development: now you can also measure the coverage > of your templates. > > Coverage.

Re: How to hook in/extend Django?

2015-09-20 Thread jaddison
Write a custom management command[1] and use cron[2] to call it every few minutes, once a day, or whenever you like. Cron is far easier to use than the man page makes it out to look, by the way. [1] https://docs.djangoproject.com/en/1.8/howto/custom-management-commands/ [2] http://manpages.debi

Re: Best way to trigger javascript function when returning a page from django view

2015-09-20 Thread Vijay Khemlani
"It's true that when it's not filled correctly, the form returns the validation but we have cases in which the data in the fields is not returned when the form operation is not successful." What cases? Dynamic fields or something like that? Django forms are supposed to pre-fill all the fields when

Re: [newbie] import error after restart (virtualenv)

2015-09-20 Thread Vijay Khemlani
Aren't tests supposed to run with "python manage.py test lists"? On Fri, Sep 18, 2015 at 8:55 PM, David wrote: > Dear Django experts, > > I am reading through Harry Percival's "Test-Driven Development with > Python". > > As I finished chapter 3 yesterday, I was fully on track, perfectly > aligne