DjangoRoadmap
Gettingintoanewframeworkmightbechallenging.Djangoisnoexception.Thereisjusttoomuchtolearn
anditcanbeoverwhelming.Butwiththerightroadmapandlearningresources,thejourneycanbesimplified.
Inthispost,Iwilltalkaboutasimpleroadmapforlearningthedjangoframework.So,let'sgetintoit.
1.LearnPython
Whenstartingoutwithdjango,itisadvisabletolearnpythonbeforelearningdjango.Manynewdevelopers
divestraightintodjangowithouthavingaknowledgeofpython.Djangoisawebframeworkbuiltwithpython,
andeverythingthatisdoneindjangoisdonewiththepythonprogramminglanguage.So,knowingpython
beforelearningdjangoisanadvantageandwillmakeiteasierforyoutounderstandwhatisgoingonwhile
developingindjango.
2.GetFamiliarWithTheCommandLines
Indjango,youwillworkwithcommandlinesalot.Djangohasit'sowncommandlinesfordoingalotof
thingsinyourapplication.Theymightbealotofcommandlinestolearn,butyoudon'tneedtolearnevery
singleoneofit.Sometimesyoumightjustneedtolookitup.Youmightjustneedtolearnafewthatyouwill
use90%ofthetime.
3.LearnTheBasicDjangoConcepts
Djangohassomeprocessyou'llneedtogothrougheverysingletimeyouwanttobuildawebapp.Theseare
thefirstthingsyouneedtolearnindjango,theyare:
● Creatinganewproject
● Creatinganewapp
● UrlRouting
● SettingUpTemplates&StaticFiles
● Runningyourprojectsonthelocalhost
4.LearnTheDjangoViews
Mostofwhatyouindjangowillbedoneintheviews.Thewhereyoudoalltheserverrenderingandmostof
thepythoncodewillbedoneinthere.TherearetwotypesofdjangoviewswhichareFunctionBasedViews&
ClassBasedViews.Youcanlearnanyoneofthistogetstarted,butmosttutorialswillstartwiththefunction
basedviews,whenyouknowthatverywellyoucanmoveontotheclassbasedviews.
5.LearnTheDjangoModels
Djangohaswhatiscalledthemodels.Modelsarelikedatabases,butinformofpythonclasses.Withthe
djangomodels,youcancreateandmigratedatatothedatabase.Eachmodeliswritteninpythonclasses,in
whicheachclasshasit'sownattribute.So,youcanthinkofthenameofthemodelclassasthenameofthe
database,andtheclassattributesaseachtableinthedatabase.
6.Databases
Usingdatabasesistheeasiestpartofdjango.DjangohasapowerfulfeatureknownasObject-Relational
Mapper(ORM)whichallowsyoutointeractwiththedatabaseswithoutwritingasinglelineofSQLcode.
DjangousesSQLiteasit'sdefaultdatabaseforeveryproject,butyoucanalsointegratethird-partydatabases
likePostgresqlorMongoDB.
7.AuthenticationandAuthorization
Authenticationindjangohasbeenmadeveryeasybecausemostoftheworkhasalreadybeendonebydjango
forus,allyoujustneedtodoistoaccesstheclassesandfunctionsalreadyprovidedbydjango.Djangohasa
defaultU serm odelwhichisusedforsavinguserdatawhenausersignuptoyourplatform.Djangoalsohasa
defaulta uthmethodwhichallowsustoeasilyauthenticateauserintooutapllication.
8.Deployment
Deployingadjangoprojectforthefirsttimecanbestressfulandfilledwithbugs.Butlearninghowtodeploy
yourdjangoprojectwilldefinitelymakeitaneasierprocess.Therearealotofplatformsinwhichyoucanuse
todeployyourdjangoproject,butthemostpopularisHeroku.Withherokuyoucaneasilydeployyourdjango
projectifyouknowhowtoconfigureyourappfordeployment.
Conclusion
Thethingslistedaboveisjustaroadmaptohelpyougetstartedwithdjango.Thereisstillalottolearnin
django.Hopefullyyoufindposthelpfulandgoodluckonyourjourney.