-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample-config.py
57 lines (45 loc) · 1.27 KB
/
sample-config.py
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
51
52
53
54
55
56
57
import os
import platform
import pygments, markdown
from flask import render_template_string
from flask_flatpages import FlatPages, pygmented_markdown, pygments_style_defs
from app import debug
# setup articles, this is where you can do code highlight templates and stuff.
def the_markdown(text):
markdown_text = render_template_string(text)
pygmented_text = markdown.markdown(
markdown_text, extensions=FLATPAGES_MARKDOWN_EXTENSIONS
)
return pygmented_text
def get_url():
if debug == True:
return "http://test-url"
else:
return "https://production-url"
BLOG_NAME = "blog name"
APP_URL = get_url()
SECRET_KEY = "GOOD_SECRET_KEY"
TARGET_MAILBOX = "where_you_want@emails_to_go"
GEOIPIFY_API_KEY = "GEOIPKEY"
FLATPAGES_EXTENSION = ".md"
FLATPAGES_HTML_RENDERER = the_markdown
FLATPAGES_MARKDOWN_EXTENSIONS = [
"codehilite",
"tables",
"fenced_code",
"md_in_html",
"wikilinks",
"smarty",
]
MAIL_SERVER = "smtp.sendgrid.net"
MAIL_PORT = 587
MAIL_USE_TLS = True
MAIL_USE_SSL = False
MAIL_DEBUG = "1"
MAIL_USERNAME = "apikey"
MAIL_PASSWORD = "your_sendgrid_password"
MAIL_DEFAULT_SENDER = "your_default_sender"
MAIL_MAX_EMAILS = "None"
MAIL_ASCII_ATTACHMENTS = "False"
RECAPTCHA_PUBLIC_KEY = ""
RECAPTCHA_PRIVATE_KEY = ""