[tor-bugs] #10769 [Tor Weather]: write weathers emails to a file
Tor Bug Tracker & Wiki
blackhole at torproject.org
Sat Feb 8 16:43:57 UTC 2014
#10769: write weathers emails to a file
-----------------------------+-----------------------------
Reporter: feverDream | Owner: feverDream
Type: enhancement | Status: assigned
Priority: normal | Milestone:
Component: Tor Weather | Version:
Resolution: | Keywords: weather-rewrite
Actual Points: | Parent ID:
Points: |
-----------------------------+-----------------------------
Comment (by karsten):
Actually, I shouldn't have commented on GitHub, but here. Moving the
discussion here again.
So, here's some feedback on
https://github.com/achintangal/weather/tree/68035eeea9d26c7f64efd9dbe54845ac4f0e1430:
It looks like Django already provides a convenient way to write email to a
file rather than sending it out:
https://docs.djangoproject.com/en/1.4/topics/email/#file-backend. Huh!
Mind trying that out?
If it works, we shouldn't hack something ourselves. How about we comment
out the current email settings that send out actual mail in settings.py
and instead put in the file email backend as default? So, whenever we set
up weather for local testing or for testing in a local VM using Vagrant,
emails would be written to a file. And when we deploy on the server, we'd
put in real SMTP settings.
By the way, I somehow like the idea of using different settings files in a
settings/ directory for the different environments. I'm just not sure if
it's overkill for weather, because the environments aren't that different.
But in any case, this discussion deserves a ticket of its own, and the
code changes deserve their own branch. Mind opening a ticket and move the
discussion there?
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/10769#comment:6>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list