Newsletter 專案共同程式碼放置的 package.

File: cloud.fixtures.inital_data.json
  Add a SMTPServer<Cloud SMTP Server>

How to use "Theophrastus"?
1. Install "Theophrastus" package.
> python setup.py install

2. Modify your settings.py in yourself project.
Add apps(tagging, tinymce and Theophrastus) to "INSTALLED_APPS".

3. You can through config to configure Theophrastus.

THEOPHRASTUS_UPLOAD_PATH

THEOPHRASTUS_AMAZON_LOGFILE

THEOPHRASTUS_MAIL_SERVER_LOGFILE

THEOPHRASTUS_MAILER_LOGFILE

THEOPHRASTUS_APSCHEDULER_LOGFILE

THEOPHRASTUS_API_LOG

THEOPHRASTUS_ENABLE_INTEGRATION

4. Add this code to your settings.py after configs.
from Theophrastus.AttachSettings import attachSettings
attachSettings(locals())

5. Add Tinymce configs.


== Upload ==
Upload release to Nuwa's PYPI:

python setup.py sdist upload -r dev

Reference:
http://doc.devpi.net/latest/userman/devpi_misc.html#using-plain-setup-py-for-uploading

==  Migrations ==
Directly make migrations to the Theoprastus app(cloud and integration) will cause models conflict lookup error, if you need to modify models.py and make migrations to these apps, please see https://code.nuwainfo.com/trac/mercurius/ticket/2995#comment:13 for solutions.

== i18n translations == 
調整專案結構後已修正，
目前可直接於 site-packages 或是 Theophrastus 專案中生成 po 及 mo 檔，參見 https://code.nuwainfo.com/trac/mercurius/ticket/3057

但若要生成 Theophrastus 各個 app 的翻譯檔，仍需要到 site-pakcages 中才能順利生成，詳細方法可見
​https://code.nuwainfo.com/trac/mercurius/ticket/3023#comment:8
相關 ticket: ​https://code.nuwainfo.com/trac/mercurius/ticket/3026