FlaskEasy-TemplateSadly,Ido'thavetimetomaitaithis.Ifyou'dliketobeamaitaier,dropmeamessageiaissue!!Savetimeoyouriitialsetup.Thisisatemplateappthaticludesthemostimportatthigsyou'llbeprobablyusigforyourflaskprojects.
Youcachagethethemejustbyreplacigoewordibase.html
Features:Latestbootstraptemplate,moderizer,jqueryetc.latest,servedfromcotetdeliveryetworks.UserRegistry,Logi&ForgotPasswordEmailitegratiowithSedGrid&acotactformwithrecaptchaAsampletasksdatabasewithSQLALchemywithPagiatioHowtouseit:gitcloehttps://github.com/AdreiD/Flask-Easy-Template.git<project_ame>ordowloadthezippipistall-rrequiremets.txtpythoru.py->https://server_ip:5000Thigstodoafter:checkthecofig.pyiru.pyedittheportoftheapp(Default:5000)Fortemplatesedit/app/templates/base.html
{%setbootstrap_versio='3.3.4'%}{%setjquery_versio='2.1.3'%}{%setmoderizer_versio='2.8.3'%}{%setbootswatch_versio='3.3.2'%}{%setbootswatch_theme='slate'%}
Icaseyoudo'tlikethe"slate"theme,youcachoseaicethemefromhttps://bootswatch.com/adjustreplacethethemeame
Step2.???Step3.PROFIT
AboutStarsStarrigarepositoryallowsyoutokeeptrackofprojectsthatyoufiditerestig,eveifyouare'tassociatedwiththeproject.
Wheyoustararepository,you'reactuallyperformigtwodistictactios:
CreatigabookmarkforeasieraccessShowigappreciatiototherepositorymaitaierfortheirwork
Extrasforyou:asupervisord.cof[supervisorisusedtomoitorthewebapplicatioadrestartit,alsostartstheappicaseyourestartyourserver]asimplegix.cofafteryougoitoproductio,ucommetthesettigsfromru.pyforthebestperformaceYourFeedbackisappreciated:)
TROUBLESHOOTSFORBEGINNERS:-READFIRST:AboutPytho2ad3compatibilitySomescriptsadmodulesversiosrequiredherearewritteipytho2adotreadyyetforpytho3,soitisrecommededtodowloadadistallbothiterpreterspytho2adalsopytho3(forwidowsusersdo'tforgettoaddtheirfolderpathsalsoiyourevirometvariables)Thewhecalligpythoscriptsiversio2or3ayway(examplewiththepackagemaagerscriptPIP),youcarudefaultpythocommadlike:"pytho-mpipistall..."or"pipistall..."Tocallolypytho3scriptschoosethisistead:"py-mpipistall..."or"pip3istall..."-Errorparsigirequiremets.txt?Ruisteadthiscompatibleformattedfile:pytho-mpipistall-rrequiremets-pip2.txtorcovertfirstyourrequiremets.txttoapytho2pip2compatibleformatwiththiscommad:pytho-mpiplist--format=freeze>requiremets.txt-ErroristalloProxytype:SytaxErrorlikeMissigparethesesicallto'prit'?thepritfuctiorequiresparethesesiPytho3butotiPytho2whichmeasthattheextesiothatyouaretryigtoistallisotyetcompatiblewithpytho3Thisiswhyitisrecommededtoistallpytho3adpytho2bydefault.Soruisteadthiscompatiblecommadforpytho2extesios(afteristalligpytho2ifotgotityet):pytho-mpipistall-rrequiremets-pip2.txtorpytho-mpipistall...-ErroristallmodulePycrypto:microsoftvisualc++compilerforpytho2.7isrequired?dowloadadistallmicrosoftvisualc++compilerforpytho2.7here:https://www.microsoft.com/e-us/dowload/details.aspx?id=44266-ErrorToradomoduleotfoud?itisaproblemwheistalligmodulesliketoradoiamultiplepythoiterpretersevirometSoruisteadthiscommocommadpythowhichprecizebydefaultthepytho2versiopytho-mpipistall-rrequiremets-pip2.txtorpytho-mpipistall...orpythoru.pyLicese:Apache2.0Copyright2015AdroidAdvace.comLicesedudertheApacheLicese,Versio2.0(the"Licese");youmayotusethisfileexcepticompliacewiththeLicese.YoumayobtaiacopyoftheLiceseathttps://www.apache.org/liceses/LICENSE-2.0Ulessrequiredbyapplicablelaworagreedtoiwritig,softwaredistributedudertheLiceseisdistributedoa"ASIS"BASIS,WITHOUTWARRANTIESORCONDITIONSOFANYKIND,eitherexpressorimplied.SeetheLiceseforthespecificlaguagegoverigpermissiosadlimitatiosudertheLicese.







评论