Skip to content

Commit c5d003f

Browse files
Some Changes
1 parent 4b52359 commit c5d003f

File tree

1 file changed

+72
-23
lines changed

1 file changed

+72
-23
lines changed

β€Ž01intro.md

Lines changed: 72 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,88 @@
11
### Introduction
2-
Django is high level Python web development framework
3-
that helps fast development of secure and maintainable website.
2+
**Django** is a **high-level Python web framework** that encourages rapid development and clean, pragmatic design. It helps you build secure and maintainable websites quickly, so you can focus on writing your app without needing to reinvent the wheel. πŸ› οΈ
43

5-
### Advantage:
6-
- Fast
7-
- Secure
8-
- Scalable
4+
## Why Use Django? πŸ€”
95

6+
### Advantages βœ…
107

11-
### Already Build With Django
12-
- Instagram, nationalgeographic, pinterest, Khalti, Mozilla
8+
- **Fast Development**: Get your web application up and running quickly! ⏩
9+
- **Secure**: Protects against common security threats by default. πŸ”’
10+
- **Scalable**: Handles high traffic and large amounts of data gracefully. πŸ“ˆ
11+
- **Versatile**: Suitable for all types of projects, from simple to complex. 🧩
1312

13+
### Built-In Features (Batteries Included) πŸ”‹
1414

15+
- **Admin Interface**: Automatically generated admin panel to manage your site.
16+
- **ORM**: Object-Relational Mapping to interact with databases easily.
17+
- **Templating Engine**: For dynamic HTML generation.
18+
- **Form Handling**: Simplifies form rendering and validation.
19+
- **Authentication**: User authentication system ready to go.
1520

16-
### Django Use MVT
17-
Model: Data Structure
18-
View: Logic From Model and render to template
19-
Template: Presentation where data is displayed to user.
21+
## Real-World Examples 🌐
2022

23+
Websites that use Django:
2124

22-
### Why Django?
23-
- All things included [Batteries Included] [Built In]
24-
- DRY [Don't Repeat Yourself]
25-
- Community Support
25+
- **Instagram** πŸ“Έ
26+
- **Pinterest** πŸ“Œ
27+
- **Mozilla** 🦊
28+
- **Khalti** πŸ’°
29+
- **National Geographic** 🌍
2630

31+
---
2732

28-
### Django Alternatives
29-
1. Flask [Lightweight but need more configuration]
30-
2. Laravel
31-
3. Ruby on Rails [Based on Ruby Programming Language]
3233

34+
## Understanding Django's Architecture πŸ—οΈ
3335

34-
### Requirements Install
35-
1. Python
36-
2. virtualenv
36+
Django follows the **MVT (Model-View-Template)** architectural pattern:
37+
38+
1. **Model**: Defines the data structure; it's the database layer. πŸ—„οΈ
39+
2. **View**: Contains the logic that interacts with the model and renders a response. 🧠
40+
3. **Template**: Deals with the presentation layer; how data is displayed to the user. 🎨
41+
42+
![MVT Architecture](https://simpleisbetterthancomplex.com/media/2016/08/diagram-01.png)
43+
44+
---
45+
46+
## Key Principles 🎯
47+
48+
- **DRY (Don't Repeat Yourself)**: Encourages reusability and clean code. ♻️
49+
- **Convention over Configuration**: Makes decisions for you, so you can focus on your app. πŸ“‹
50+
- **Pluggable Apps**: Easy to integrate third-party apps or create reusable ones. πŸ”Œ
51+
52+
---
53+
54+
## Alternatives to Django πŸ›£οΈ
55+
56+
While Django is powerful, it's good to know other frameworks:
57+
58+
1. **Flask** πŸ§ͺ
59+
- Lightweight and minimalistic.
60+
- Requires more configuration.
61+
2. **Laravel** πŸ§™β€β™‚οΈ
62+
- PHP framework with elegant syntax.
63+
3. **Ruby on Rails** πŸ’Ž
64+
- Based on Ruby, focuses on convention over configuration.
65+
66+
---
67+
## Getting Started 🏁
68+
69+
### Prerequisites πŸ“‹
70+
71+
1. **Python** 🐍
72+
- Make sure Python is installed on your system.
73+
2. **Virtual Environment** 🌐
74+
- Isolates your project dependencies.
75+
3. **VS Code** πŸ’»
76+
- A powerful code editor.
77+
78+
**Optional:**
79+
80+
- **Chrome Extension for Django** 🧩
81+
- Enhances your development experience.
82+
83+
## Setting Up Your Environment 🌳
84+
### Install Virtualenv
85+
virtualenv
3786
```bash
3887
pip install virtualenv
3988
```

0 commit comments

Comments
Β (0)