04-Django Basic
Models in Django
# Topic covered
* Django Models
* Field types
* Relationship Fields
* Django Choices
* Field Options
* Model definition
* ForeignKey.on_delete
* Meta Class in Django Models
# Topic covered
* Django Models
* Field types
* Relationship Fields
* Django Choices
* Field Options
* Model definition
* ForeignKey.on_delete
* Meta Class in Django Models
# Topic covered
* Django admin
* Features of Django Admin
* Activating and Using the Admin Interface
* Register models in admin-panel
* Basic: Model display
* Advance: Model display
* InlineModelAdmin objects
# Topic covered
* Django Architecture
* Model View Controller(MVC)
* Model View Template (MVT)
* Why is Django called loosely coupled framework?
* django-admin and manage.py
* Write custom django-admin commands?
# Topic covered
* What is Django?
* Feature in Django framework
* Advantage / Disadvantage of Django
* Design philosophies
* File Structure Info
* Script vs Modules vs Package vs Library vs Framework
* Projects vs Apps in Django
* Django vs Flask
# Topic covered
* 𝗪𝗵𝗮𝘁 𝗵𝗮𝗽𝗽𝗲𝗻𝘀 𝘄𝗵𝗲𝗻 𝘆𝗼𝘂 𝘁𝘆𝗽𝗲 𝗮 𝗨𝗥𝗟 𝗶𝗻𝘁𝗼 𝘆𝗼𝘂𝗿 𝗯𝗿𝗼𝘄𝘀𝗲𝗿?
* Resolve Domain Name
* Resolve IP address
* HTTP request to the server
* HTTP response from the server
* Journey of a Web Request in Django
A percentile is a value below which a certain percentage of observation or data points lies.
Percentiles show how a given value compares to others.
The general rule is that if a value is in the kth percentile, it is greater than K per cent of the total values.
Find percentile of n
P = (n/N) * 100
n = Ordinal rank of values
= No of values below n
N = Total values in the dataset
P% of the entire distribution falls below the value n
While descriptive statistics summarize the characteristics of a data set,
inferential statistics help you come to conclusions and make predictions based on your data.
Inferential statistics have two main uses:
making estimates about populations (for example, the mean SAT score of all 11th graders in the US).testing hypotheses to draw conclusions about populations (for example, the relationship between SAT scores and family income).A probability distribution is a mathematical function that describes the probability of different possible outcomes for an experiment.
Probability distributions are often depicted using graphs or probability tables.
Covariance and Correlation are very helpful in understanding the relationship between two continuous variables.
Covariance tells whether both variables vary in the same direction (positive covariance) or in the opposite direction (negative covariance).
Covariance(x, y)
$$ Cov(x, y) = \sum_{i=1}^{n} \frac{(x_i - \bar{x})(y_i - \bar{y})}{n-1} $$
Statistics is the science of collecting, organizing and analyzing the data.Data - facts or pieces of informationorganizing and summarizing the data.form conclusion, make predictions.