[tor-bugs] #11086 [Tor Weather]: handling different settings

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Mar 4 11:48:20 UTC 2014


#11086: handling different settings
-----------------------------+---------------------------------------
     Reporter:  feverDream   |      Owner:  feverDream
         Type:  enhancement  |     Status:  assigned
     Priority:  normal       |  Milestone:
    Component:  Tor Weather  |    Version:
   Resolution:               |   Keywords:  weather-rewrite, settings
Actual Points:               |  Parent ID:
       Points:               |
-----------------------------+---------------------------------------

Comment (by karsten):

 What about my suggestion above to "make the default settings file for
 development/testing and add comments what parts need to be changed for
 production?"  That means just a single settings.py file that works out of
 the box for testing and needs modification for production.  After all, the
 settings file needs to be modified anyway for the SECRET_KEY.

 With regard to emails, the file would contain something like (untested!):

 {{{
 # By default, send outgoing mail to a file for testing mode. Comment out
 to use local SMTP server for production mode.
 EMAIL_BACKEND = 'django.core.mail.backends.filebased.EmailBackend'
 EMAIL_FILE_PATH = 'weather.mail'
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/11086#comment:7>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list