KEMBAR78
Django Beginner's Guide | PDF | Computer Programming | Information Technology Management
0% found this document useful (0 votes)
165 views3 pages

Django Beginner's Guide

The document outlines an 8 step roadmap for learning the Django web framework: 1) Learn Python, 2) Get familiar with Django commands, 3) Learn basic concepts like projects, apps, URLs and templates, 4) Learn function-based views, 5) Learn models for interacting with databases, 6) Learn to use databases without SQL, 7) Learn authentication and authorization functionality, 8) Learn deployment options like Heroku. The roadmap is intended to provide a simple progression for becoming proficient with Django's core components.

Uploaded by

Alex Halcu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
165 views3 pages

Django Beginner's Guide

The document outlines an 8 step roadmap for learning the Django web framework: 1) Learn Python, 2) Get familiar with Django commands, 3) Learn basic concepts like projects, apps, URLs and templates, 4) Learn function-based views, 5) Learn models for interacting with databases, 6) Learn to use databases without SQL, 7) Learn authentication and authorization functionality, 8) Learn deployment options like Heroku. The roadmap is intended to provide a simple progression for becoming proficient with Django's core components.

Uploaded by

Alex Halcu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Django‌‌Roadmap‌ 

 ‌

Getting‌‌into‌‌a‌‌new‌‌framework‌‌might‌‌be‌‌challenging.‌‌Django‌‌is‌‌no‌‌exception.‌‌There‌‌is‌‌just‌‌too‌‌much‌‌to‌‌learn‌‌ 
and‌‌it‌‌can‌‌be‌‌overwhelming.‌‌But‌‌with‌‌the‌‌right‌‌roadmap‌‌and‌‌learning‌‌resources,‌‌the‌‌journey‌‌can‌‌be‌‌simplified.‌  ‌

In‌‌this‌‌post,‌‌I‌‌will‌‌talk‌‌about‌‌a‌‌simple‌‌roadmap‌‌for‌‌learning‌‌the‌‌django‌‌framework.‌‌So,‌‌let's‌‌get‌‌into‌‌it.‌  ‌

1.‌‌Learn‌‌Python‌  ‌
When‌‌starting‌‌out‌‌with‌‌django,‌‌it‌‌is‌‌advisable‌‌to‌‌learn‌‌python‌‌before‌‌learning‌‌django.‌‌Many‌‌new‌‌developers‌‌  
dive‌‌straight‌‌into‌‌django‌‌without‌‌having‌‌a‌‌knowledge‌‌of‌‌python.‌‌Django‌‌is‌‌a‌‌web‌‌framework‌‌built‌‌with‌‌python,‌ 
and‌‌everything‌‌that‌‌is‌‌done‌‌in‌‌django‌‌is‌‌done‌‌with‌‌the‌‌python‌‌programming‌‌language.‌‌So,‌‌knowing‌‌python‌‌ 
before‌‌learning‌‌django‌‌is‌‌an‌‌advantage‌‌and‌‌will‌‌make‌‌it‌‌easier‌‌for‌‌you‌‌to‌‌understand‌‌what‌‌is‌‌going‌‌on‌‌while‌‌
 
developing‌‌in‌‌django.‌  ‌

2.‌‌Get‌‌Familiar‌‌With‌‌The‌‌Command‌‌Lines‌  ‌
In‌‌django,‌‌you‌‌will‌‌work‌‌with‌‌command‌‌lines‌‌a‌‌lot.‌‌Django‌‌has‌‌it's‌‌own‌‌command‌‌lines‌‌for‌‌doing‌‌a‌‌lot‌‌of‌‌ 
things‌‌in‌‌your‌‌application.‌‌They‌‌might‌‌be‌‌a‌‌lot‌‌of‌‌command‌‌lines‌‌to‌‌learn,‌‌but‌‌you‌‌don't‌‌need‌‌to‌‌learn‌‌every‌‌ 
single‌‌one‌‌of‌‌it.‌‌Sometimes‌‌you‌‌might‌‌just‌‌need‌‌to‌‌look‌‌it‌‌up.‌‌You‌‌might‌‌just‌‌need‌‌to‌‌learn‌‌a‌‌few‌‌that‌‌you‌‌will‌‌
 
use‌‌90%‌‌of‌‌the‌‌time.‌  ‌

3.‌‌Learn‌‌The‌‌Basic‌‌Django‌‌Concepts‌  ‌
Django‌‌has‌‌some‌‌process‌‌you'll‌‌need‌‌to‌‌go‌‌through‌‌every‌‌single‌‌time‌‌you‌‌want‌‌to‌‌build‌‌a‌‌web‌‌app.‌‌These‌‌are‌‌
 
the‌‌first‌‌things‌‌you‌‌need‌‌to‌‌learn‌‌in‌‌django,‌‌they‌‌are:‌  ‌

● Creating‌‌a‌‌new‌‌project‌  ‌
● Creating‌‌a‌‌new‌‌app‌  ‌
● Url‌‌Routing‌  ‌
● Setting‌‌Up‌‌Templates‌‌&‌‌Static‌‌Files‌  ‌
● Running‌‌your‌‌projects‌‌on‌‌the‌‌localhost‌  ‌

4.‌‌Learn‌‌The‌‌Django‌‌Views‌  ‌
Most‌‌of‌‌what‌‌you‌‌in‌‌django‌‌will‌‌be‌‌done‌‌in‌‌the‌‌views.‌‌The‌‌where‌‌you‌‌do‌‌all‌‌the‌‌server‌‌rendering‌‌and‌‌most‌‌of‌‌  
the‌‌python‌‌code‌‌will‌‌be‌‌done‌‌in‌‌there.‌‌There‌‌are‌‌two‌‌types‌‌of‌‌django‌‌views‌‌which‌‌are‌‌Function‌‌Based‌‌Views‌‌& ‌‌
Class‌‌Based‌‌Views.‌‌You‌‌can‌‌learn‌‌anyone‌‌of‌‌this‌‌to‌‌get‌‌started,‌‌but‌‌most‌‌tutorials‌‌will‌‌start‌‌with‌‌the‌‌function‌‌ 
based‌‌views,‌‌when‌‌you‌‌know‌‌that‌‌very‌‌well‌‌you‌‌can‌‌move‌‌on‌‌to‌‌the‌‌class‌‌based‌‌views.‌  ‌

5.‌‌Learn‌‌The‌‌Django‌‌Models‌  ‌
Django‌‌has‌‌what‌‌is‌‌called‌‌the‌‌models.‌‌Models‌‌are‌‌like‌‌databases,‌‌but‌‌in‌‌form‌‌of‌‌python‌‌classes.‌‌With‌‌the‌‌ 
django‌‌models,‌‌you‌‌can‌‌create‌‌and‌‌migrate‌‌data‌‌to‌‌the‌‌database.‌‌Each‌‌model‌‌is‌‌written‌‌in‌‌python‌‌classes,‌‌in‌‌ 
which‌‌each‌‌class‌‌has‌‌it's‌‌own‌‌attribute.‌‌So,‌‌you‌‌can‌‌think‌‌of‌‌the‌‌name‌‌of‌‌the‌‌model‌‌class‌‌as‌‌the‌‌name‌‌of‌‌the‌‌ 
database,‌‌and‌‌the‌‌class‌‌attributes‌‌as‌‌each‌‌table‌‌in‌‌the‌‌database.‌  ‌

6.‌‌Databases‌  ‌
Using‌‌databases‌‌is‌‌the‌‌easiest‌‌part‌‌of‌‌django.‌‌Django‌‌has‌‌a‌‌powerful‌‌feature‌‌known‌‌as‌‌Object-Relational‌‌  
Mapper(ORM)‌‌which‌‌allows‌‌you‌‌to‌‌interact‌‌with‌‌the‌‌databases‌‌without‌‌writing‌‌a‌‌single‌‌line‌‌of‌‌SQL‌‌code.‌‌  
Django‌‌uses‌‌SQLite‌‌as‌‌it's‌‌default‌‌database‌‌for‌‌every‌‌project,‌‌but‌‌you‌‌can‌‌also‌‌integrate‌‌third-party‌‌databases‌‌ 
like‌‌Postgresql‌‌or‌‌MongoDB.‌  ‌

7.‌‌Authentication‌‌and‌‌Authorization‌  ‌
Authentication‌‌in‌‌django‌‌has‌‌been‌‌made‌‌very‌‌easy‌‌because‌‌most‌‌of‌‌the‌‌work‌‌has‌‌already‌‌been‌‌done‌‌by‌‌django‌‌ 
for‌‌us,‌‌all‌‌you‌‌just‌‌need‌‌to‌‌do‌‌is‌‌to‌‌access‌‌the‌‌classes‌‌and‌‌functions‌‌already‌‌provided‌‌by‌‌django.‌‌Django‌‌has‌‌a ‌‌
default‌U ‌ ser‌m‌ odel‌‌which‌‌is‌‌used‌‌for‌‌saving‌‌user‌‌data‌‌when‌‌a‌‌user‌‌sign‌‌up‌‌to‌‌your‌‌platform.‌‌Django‌‌also‌‌has‌‌a ‌‌
default‌a‌ uth‌‌‌method‌‌which‌‌allows‌‌us‌‌to‌‌easily‌‌authenticate‌‌a‌‌user‌‌into‌‌out‌‌apllication.‌  ‌

8.‌‌Deployment‌  ‌
Deploying‌‌a‌‌django‌‌project‌‌for‌‌the‌‌first‌‌time‌‌can‌‌be‌‌stressful‌‌and‌‌filled‌‌with‌‌bugs.‌‌But‌‌learning‌‌how‌‌to‌‌deploy‌‌ 
your‌‌django‌‌project‌‌will‌‌definitely‌‌make‌‌it‌‌an‌‌easier‌‌process.‌‌There‌‌are‌‌a‌‌lot‌‌of‌‌platforms‌‌in‌‌which‌‌you‌‌can‌‌use‌‌
 
to‌‌deploy‌‌your‌‌django‌‌project,‌‌but‌‌the‌‌most‌‌popular‌‌is‌‌Heroku.‌‌With‌‌heroku‌‌you‌‌can‌‌easily‌‌deploy‌‌your‌‌django‌‌ 
project‌‌if‌‌you‌‌know‌‌how‌‌to‌‌configure‌‌your‌‌app‌‌for‌‌deployment.‌  ‌
Conclusion‌  ‌
The‌‌things‌‌listed‌‌above‌‌is‌‌just‌‌a‌‌roadmap‌‌to‌‌help‌‌you‌‌get‌‌started‌‌with‌‌django.‌‌There‌‌is‌‌still‌‌a‌‌lot‌‌to‌‌learn‌‌in‌‌ 
django.‌‌Hopefully‌‌you‌‌find‌‌post‌‌helpful‌‌and‌‌goodluck‌‌on‌‌your‌‌journey.‌  ‌

 ‌

You might also like