-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblog.py
49 lines (45 loc) · 2.14 KB
/
blog.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
from app import create_app, db
from app.models import ArticlesList, User, PersonalBlogPost, VagrantPost, \
VirtualenvwrapperPost, reCaptchaPost, richTextPost, ngrokPost, \
installDocker, HerokuDeployment, WebDevelopmentPost, HelloWorldPost, \
FlaskTemplatesPost, FlaskWebFormsPost, FlaskDatabasePost, \
UserCommentsPost, ElasticsearchPost, PortfolioList, DatesAndTimePost, \
FlaskBootstrapPost, GithubSSHPost, InstallGitPost, FileUploadsPost,\
StripeInFlaskPost, WhatsappChatbotPost, TwilioSendGridPost, TOTP2faPost,\
TwilioVerifyPost, TwilioAuthyPost, SimpleVideoAppPost, Admin
app = create_app()
@app.shell_context_processor
def make_shell_context():
return {'db': db,
'ArticlesList': ArticlesList,
'User': User,
'PersonalBlogPost': PersonalBlogPost,
'VagrantPost': VagrantPost,
'VirtualenvwrapperPost': VirtualenvwrapperPost,
'reCaptchaPost': reCaptchaPost,
'richTextPost': richTextPost,
'ngrokPost': ngrokPost,
'installDocker': installDocker,
'HerokuDeployment': HerokuDeployment,
'WebDevelopmentPost': WebDevelopmentPost,
'HelloWorldPost': HelloWorldPost,
'FlaskTemplatesPost': FlaskTemplatesPost,
'FlaskWebFormsPost': FlaskWebFormsPost,
'FlaskDatabasePost': FlaskDatabasePost,
'UserCommentsPost': UserCommentsPost,
'ElasticsearchPost': ElasticsearchPost,
'PortfolioList': PortfolioList,
'DatesAndTimePost': DatesAndTimePost,
'FlaskBootstrapPost': FlaskBootstrapPost,
'GithubSSHPost': GithubSSHPost,
'InstallGitPost': InstallGitPost,
'FileUploadsPost': FileUploadsPost,
'StripeInFlaskPost': StripeInFlaskPost,
'WhatsappChatbotPost': WhatsappChatbotPost,
'TwilioSendGridPost': TwilioSendGridPost,
'TOTP2faPost': TOTP2faPost,
'TwilioVerifyPost': TwilioVerifyPost,
'TwilioAuthyPost': TwilioAuthyPost,
'SimpleVideoAppPost': SimpleVideoAppPost,
'Admin': Admin
}