-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path__init__.py
More file actions
50 lines (34 loc) · 1.37 KB
/
__init__.py
File metadata and controls
50 lines (34 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
"""
===========
learnpython
===========
Web-site for `Learn Python <http://learnpython.in.ua/>`_ courses built on top
of `Flask <http://flask.pocoo.org/>`_ micro-framework.
Python
======
As site built on top of Flask it main element is ``app`` module, where all
necessary definitions and configuration happened.
Settings are stored in ``settings`` module and could be rewrite with local ones
from ``settings_local`` module.
Views and all code required for views stored in ``views``, ``forms`` and
``utils`` modules. But view registration done in ``app`` using lazy-add
technique.
And finally, several different tests are stored in ``tests`` package.
Data
====
For data storage site using plain files, which placed in ``data/`` directory,
later these files processed using ``Flask-FlatPages`` extension.
Configuration
=============
ALLOW_SUBSCRIBERS
-----------------
Indicates allow new subscribers or not. By default: ``True``.
You could overwrite this setting in local settings and for Heroku environment.
For Heroku environment, please use ``0`` for ``False`` and ``1`` for ``True``.
MAIL_RECIPIENTS
---------------
Indicates who will receive messages which sent by contacts and subscribe forms.
By default: ``'[email protected]'``.
You could overwrite this setting in local settings and for Heroku environment.
For Heroku environment, please use comma as emails delimeter.
"""