Flask-Easy-Template

我要开发同款
匿名用户2021年12月10日
42阅读
开发技术Python
所属分类Web应用开发、Web框架
授权协议Readme

作品详情

FlaskEasy-TemplateSadly,Idon'thavetimetomaintainthis.Ifyou'dliketobeamaintainer,dropmeamessageinanissue!!Savetimeonyourinitialsetup.Thisisatemplateappthatincludesthemostimportantthingsyou'llbeprobablyusingforyourflaskprojects.

Youcanchangethethemejustbyreplacingonewordinbase.html

Features:Latestbootstraptemplate,modernizer,jqueryetc.latest,servedfromcontentdeliverynetworks.UserRegistry,Login&ForgotPasswordEmailintegrationwithSendGrid&acontactformwithrecaptchaAsampletasksdatabasewithSQLALchemywithPaginationHowtouseit:gitclonehttps://github.com/AndreiD/Flask-Easy-Template.git<project_name>ordownloadthezippipinstall-rrequirements.txtpythonrun.py->https://server_ip:5000Thingstodoafter:checktheconfig.pyinrun.pyedittheportoftheapp(Default:5000)

Fortemplatesedit/app/templates/base.html

{%setbootstrap_version='3.3.4'%}{%setjquery_version='2.1.3'%}{%setmodernizer_version='2.8.3'%}{%setbootswatch_version='3.3.2'%}{%setbootswatch_theme='slate'%}

Incaseyoudon'tlikethe"slate"theme,youcanchoseanicethemefromhttps://bootswatch.com/andjustreplacethethemename

Step2.???Step3.PROFIT

AboutStars

Starringarepositoryallowsyoutokeeptrackofprojectsthatyoufindinteresting,evenifyouaren'tassociatedwiththeproject.

Whenyoustararepository,you'reactuallyperformingtwodistinctactions:

CreatingabookmarkforeasieraccessShowingappreciationtotherepositorymaintainerfortheirwork

Extrasforyou:asupervisord.conf[supervisorisusedtomonitorthewebapplicationandrestartit,alsostartstheappincaseyourestartyourserver]asimplenginx.confafteryougointoproduction,uncommentthesettingsfromrun.pyforthebestperformance

YourFeedbackisappreciated:)

TROUBLESHOOTSFORBEGINNERS:-READFIRST:AboutPython2and3compatibilitySomescriptsandmodulesversionsrequiredherearewritteninpython2andnotreadyyetforpython3,soitisrecommendedtodownloadandinstallbothinterpreterspython2andalsopython3(forwindowsusersdon'tforgettoaddtheirfolderpathsalsoinyourenvironmentvariables)Thenwhencallingpythonscriptsinversion2or3anyway(examplewiththepackagemanagerscriptPIP),youcanrundefaultpythoncommandlike:"python-mpipinstall..."or"pipinstall..."Tocallonlypython3scriptschoosethisinstead:"py-mpipinstall..."or"pip3install..."-Errorparsinginrequirements.txt?Runinsteadthiscompatibleformattedfile:python-mpipinstall-rrequirements-pip2.txtorconvertfirstyourrequirements.txttoapython2pip2compatibleformatwiththiscommand:python-mpiplist--format=freeze>requirements.txt-ErrorinstallonProxytype:SyntaxErrorlikeMissingparenthesesincallto'print'?theprintfunctionrequiresparenthesesinPython3butnotinPython2whichmeansthattheextensionthatyouaretryingtoinstallisnotyetcompatiblewithpython3Thisiswhyitisrecommendedtoinstallpython3andpython2bydefault.Soruninsteadthiscompatiblecommandforpython2extensions(afterinstallingpython2ifnotgotityet):python-mpipinstall-rrequirements-pip2.txtorpython-mpipinstall...-ErrorinstallmodulePycrypto:microsoftvisualc++compilerforpython2.7isrequired?downloadandinstallmicrosoftvisualc++compilerforpython2.7here:https://www.microsoft.com/en-us/download/details.aspx?id=44266-ErrorTornadomodulenotfound?itisaproblemwheninstallingmodulesliketornadoinamultiplepythoninterpretersenvironmentSoruninsteadthiscommoncommandpythonwhichprecizebydefaultthepython2versionpython-mpipinstall-rrequirements-pip2.txtorpython-mpipinstall...orpythonrun.pyLicense:Apache2.0Copyright2015AndroidAdvance.comLicensedundertheApacheLicense,Version2.0(the"License");youmaynotusethisfileexceptincompliancewiththeLicense.YoumayobtainacopyoftheLicenseathttps://www.apache.org/licenses/LICENSE-2.0Unlessrequiredbyapplicablelaworagreedtoinwriting,softwaredistributedundertheLicenseisdistributedonan"ASIS"BASIS,WITHOUTWARRANTIESORCONDITIONSOFANYKIND,eitherexpressorimplied.SeetheLicenseforthespecificlanguagegoverningpermissionsand

limitationsundertheLicense.

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论