Start a Django project and file structure

Chai aur Code
10 May 202422:58

Summary

TLDRThe video script is a tutorial focused on welcoming viewers to a coding session with tea, highlighting the launch of an official playlist. The target is set at 600 comments to encourage viewer interaction. The host discusses exploring and being ahead of many, targeting the video for those familiar with JavaScript frameworks like NestJS or Express. The tutorial covers setting up the environment for a Django project using a framework known for rapid development, emphasizing its scalability and efficiency. It touches on creating a virtual environment, installing packages like 'uvicorn', and setting up a Django project, including activating the virtual environment and managing dependencies.

Takeaways

  • 😀 The video is a welcome address to the audience, inviting them to a coding session focused on 'Chay and Jango'.
  • 📝 The presenter sets a target of 600 comments for the video and encourages viewers to support by commenting.
  • 💻 The video aims to demonstrate rapid development using Jango, a framework that is easy and fast to work with, especially for those with a JavaScript background.
  • 🔧 The setup process involves creating a folder, setting up the environment, and sharing the screen for a more interactive session.
  • 🛠️ Jango is described as a framework that requires minimal setup and is known for its speed, scalability, and security features.
  • 🌐 The video mentions that Jango is well-suited for minimal systems and can handle a significant number of users even on a $10 machine, making it appealing for corporate use.
  • 🔄 The presenter discusses the process of creating a virtual environment using 'uv' (a package manager) and activating it, which is crucial for managing dependencies.
  • 📝 The video script includes a detailed guide on installing Jango, including commands for different operating systems and the use of 'pip' for package installation.
  • 🚀 The presenter emphasizes the speed of Jango, stating that it's so fast that slowing down the demonstration is challenging.
  • 🔧 The video concludes with a brief exploration of the Jango project structure, highlighting files like 'manage.py' and the importance of the 'settings.py' file for configuration.

Q & A

  • What is the target for the number of comments in the video?

    -The target set for the number of comments in the video is 600.

  • What does the speaker suggest doing before starting to code?

    -The speaker suggests taking a moment to relax with a cup of tea to set a comfortable environment for coding.

  • What is the speaker's preference for writing code?

    -The speaker prefers writing code directly in a code editor.

  • What is the framework that the speaker is discussing in the video?

    -The speaker is discussing the Django framework, emphasizing its rapid development capabilities.

  • What does the speaker mean by 'Rapid Development' in the context of Django?

    -By 'Rapid Development,' the speaker refers to Django's ability to quickly develop applications with minimal effort due to its 'batteries-included' philosophy.

  • What is the significance of the word 'Ridiculously' in the context of Django's speed?

    -The word 'Ridiculously' is used to emphasize the exceptionally fast development speed that Django offers, setting it apart from other frameworks.

  • What is the recommended approach for setting up the development environment for Django?

    -The recommended approach is to use a virtual environment, which isolates the project's dependencies from the system's Python installation.

  • What is the command to create a virtual environment using Python's venv module?

    -The command to create a virtual environment is `python -m venv .venv`, where `.venv` is the name of the virtual environment directory.

  • What is the purpose of the 'activate' script in a virtual environment?

    -The 'activate' script is used to activate the virtual environment, which applies the environment's settings to the current shell session.

  • How does the speaker describe the process of installing Django within the virtual environment?

    -The speaker describes installing Django using the command `pip install django` after activating the virtual environment.

  • What is the initial command to start a new Django project according to the video?

    -The initial command to start a new Django project is `django-admin startproject`, which creates a new Django project directory.

Outlines

00:00

😀 Introduction to Tea and Code

The speaker warmly welcomes the audience to the Tea and Code session, expressing excitement for the official launch of their playlist. They set a target of 600 comments for the video and encourage viewers to support by commenting. The speaker emphasizes their preference for writing code directly and plans to explain things in detail, aiming to make the process as easy to understand as possible. They introduce the topic of rapid development using a framework that is highly scalable and efficient, especially for those with a JavaScript background. The speaker assures that even complex tasks will be explained in a way that they might not need to slow down the pace due to the simplicity and speed of the framework.

05:01

🛠️ Setting Up the Development Environment

The speaker guides the audience through setting up the development environment, starting with sharing their screen and showing the 'Tea Jango' folder, which is part of the MT folder. They mention having a terminal open to execute commands and briefly discuss the theme they use. The focus then shifts to creating a virtual environment using 'python-tk' and 'code', emphasizing the importance of a clean and organized setup. The speaker discusses the benefits of using 'jango' over other frameworks, especially for those with a JavaScript background, and touches upon the scalability of applications built with jango. They also mention the ease of deployment and how it is favored by corporations due to its efficiency and cost-effectiveness.

10:02

💻 Deep Dive into Jango and Project Setup

The speaker provides a detailed walkthrough of installing jango and setting up a project. They discuss the importance of using 'uv' to create a virtual environment and the various ways to install 'uv', including using pip. The speaker then demonstrates how to install jango within the virtual environment and how to start a new project using 'jango-admin'. They explain the structure of a jango project, including the 'manage.py' file and the project folder. The speaker also touches upon the concept of apps within jango and the importance of the 'settings.py' file for configuration.

15:04

🌐 Exploring Jango's File Structure and Default Settings

The speaker delves into the file structure of a jango project, highlighting the importance of the 'manage.py' file as the starting point and its role in setting up various environment variables. They discuss the significance of the project folder and the standard practice of organizing files and folders within it. The speaker also explains the role of 'settings.py' in configuring the entire jango application, including database settings, and the use of SQLite as the default database. They mention the ability to switch between different databases with minimal code changes and the flexibility jango offers in terms of database interaction.

20:06

📝 Understanding Jango's Routing and Views

The speaker explains the concept of routing in jango, focusing on the 'urls.py' file that handles URL patterns and directs them to the appropriate views. They discuss the role of 'views.py' in defining business logic and how it interacts with the database through the 'models.py' file. The speaker also touches upon the importance of the 'settings.py' file for project-level settings and the structure of jango applications. They provide a brief overview of the default admin dashboard and the authentication system provided by jango. The speaker concludes by encouraging the audience to explore the application further and to stay tuned for the next video, where they will delve deeper into customizing templates and working with static files.

Mindmap

Keywords

💡Jango

Jango is a rapid development framework that is central to the video's theme. It is described as extremely fast and scalable, allowing for the quick development of applications. The script mentions Jango as a framework that is significantly different from others like JavaScript, NestJS, or Ruby on Rails, and it is recommended for those with a JavaScript background. The video discusses setting up a Jango project and highlights its ease of use and speed, as seen in the script where the speaker discusses creating a virtual environment and installing Jango.

💡Virtual Environment

A virtual environment is a self-contained directory tree that includes a Python installation for a particular version of Python, plus a number of additional packages. The video script emphasizes the importance of setting up a virtual environment for Python projects to manage dependencies and ensure that different projects can have different package requirements. The script guides viewers on how to create a virtual environment using the 'python -m venv' command and activate it.

💡Dependencies

Dependencies in the context of the video refer to the external libraries and packages that a project relies on to function properly. The script mentions dependencies in relation to installing Jango and ensuring that all necessary packages are available in the virtual environment. Proper management of dependencies is crucial for the development process, as it ensures that the project can run correctly across different systems and environments.

💡Rapid Development

Rapid development, as discussed in the video, is an approach to software development that emphasizes speed and efficiency. Jango is presented as a framework that facilitates rapid development due to its simplicity and the speed at which applications can be built and scaled. The script illustrates this by showing how quickly a Jango project can be set up and run, highlighting the framework's capabilities for fast development cycles.

💡Python-Tk

Python-Tk is a package that provides Python bindings to the Tk GUI toolkit. It is mentioned in the script as a prerequisite for setting up the development environment. While not the main focus of the video, Python-Tk is an example of the type of dependency that might be required for certain projects, and the script suggests that it should be installed to ensure the environment is complete.

💡Activate Script

The activate script is a batch file for Windows or a shell script for Unix or MacOS that enables the virtual environment. In the video, the script is used to activate the virtual environment, making it the current environment for the terminal session. This is important for ensuring that any Python packages installed or commands run will use the correct Python interpreter and packages for the project.

💡Database

The database is a core component of many applications, used for storing and managing data. The video script mentions setting up a database within the Jango framework, highlighting the ease with which developers can interact with databases using Jango. The script specifically references SQLite, a lightweight disk-based database that doesn't require a separate server process and is included with Jango by default.

💡Settings.py

Settings.py is a configuration file in Jango projects that contains all the necessary settings for the project, such as database configuration, installed apps, and middleware. The video script emphasizes the importance of this file, as it is where developers configure the behavior of their Jango application. It's mentioned as a key file to understand and modify when setting up or customizing a Jango project.

💡URLs.py

URLs.py is a file in Jango projects that defines the URL routes for the application. It tells the framework which view function should be called for a given URL pattern. The script mentions that this file is where the routing for the entire application is handled, and it's a central part of setting up the application's navigation and request handling.

💡Templates

Templates in the context of the video refer to the HTML files that define the structure and layout of web pages in a Jango application. The script suggests that Jango provides a powerful system for creating and managing templates, allowing developers to design the frontend of their applications. The video promises to explore templates in more depth in future content, indicating their importance in web development with Jango.

💡Static Files

Static files are those that do not change for each request, such as CSS stylesheets, JavaScript files, and image files. The video script briefly mentions static files in the context of Jango's ability to handle them, which is important for serving the assets required for a web application's frontend. Proper management of static files is crucial for the performance and user experience of web applications.

Highlights

Welcome to the official launch of the 'Chai and Code' playlist series.

The target for this video is to reach 600 comments quickly.

The presenter enjoys writing code directly and will demonstrate coding in the editor.

A brief introduction to the 'slow down' button, which won't be needed as the development speed is very fast.

Introduction to the 'Jango' framework, known for rapid development.

Jango is highly scalable and works well even on minimal systems.

Jango is popular among corporations due to its ability to handle many users on low-cost machines.

The presenter will guide through setting up the environment for Jango.

Explanation of creating a virtual environment using 'uv' or 'virtualenv'.

Instructions for installing Jango using 'pip' and activating the virtual environment.

The importance of using 'uv' before 'pip' when working within a virtual environment.

How to start a new Jango project using the 'jango-admin' command.

An overview of the project structure created by Jango, including the 'manage.py' file.

Running the development server with 'python manage.py runserver'.

Exploration of the default admin interface provided by Jango out of the box.

Discussion on the use of SQLite as the default database and the option to switch to PostgreSQL.

Introduction to the 'settings.py' file, which contains all the configuration for the Jango project.

Explanation of the 'urls.py' file, which handles routing in the application.

Overview of the 'views.py' and 'models.py' files, which handle business logic and database models respectively.

Transcripts

play00:00

हां जी कैसे हैं आप सभी स्वागत है आप सभी

play00:03

का चाय और कोड में और स्वागत है आप सभी का

play00:06

हमारी ऑफिशियल लच हो गया है हमारी

play00:08

प्लेलिस्ट का चाय और जंगो हां जी काफी

play00:12

अच्छा सपोर्ट दिखाया आपने

play00:30

आते हैं पर कोई बात नहीं अगर आप एक्सप्लोर

play00:31

भी करने आए तब भी आप काफी लोगों से आगे

play00:33

हैं तो इस वीडियो का हम टारगेट रखते हैं

play00:35

ज्यादा नहीं 600 कमेंट्स का टारगेट रखते

play00:37

हैं फटाफट से एक कमेंट करके जाइएगा मुझे

play00:39

बड़ा अच्छा लगेगा आप सपोर्ट दिखाएंगे तो

play00:41

तो चलिए जी शुरू करते हैं हमारी जंगो की

play00:43

सीरीज और जैसा कि आपको पता है अ

play00:46

डायरेक्टली मैं कोड लिखना ही पसंद करता

play00:47

हूं तो हम सबसे पहले कोड एडिटर में ही

play00:49

चलेंगे लेकिन उससे पहले एक छोटी सी बात

play00:51

बता दूं कि आराम से चाय लेके बैठिए मैं

play00:54

कोशिश करूंगा चीजों को ज्यादा से ज्यादा

play00:55

समझाने की और स्लो डाउन करने की अ बट

play00:58

एक्चुअली मैं ना

play01:00

में आप देखोगे कि चीजें इतनी आसान और इतनी

play01:02

फास्ट डेवलप होती है कि मैं चाह के भी

play01:04

उनको स्लो नहीं कर पाऊंगा कुछ जगह ऐसा

play01:06

नहीं है कि आपको समझ नहीं आएगा समझ में भी

play01:08

आएगा आप कर भी पाओगे अपने सिस्टम पे बट वो

play01:11

है ही इतनी फास्ट और हो ही इतनी आसानी से

play01:13

जाती है कि मेरा उसमें कुछ ज्यादा योगदान

play01:15

होगा नहीं वो स्पीड में ही चलेगी इसीलिए

play01:18

जंगो को कहा जाता है रैपिड डेवलपमेंट का

play01:20

एक एक्सपर्ट अ फ्रेमवर्क और बहुत ही

play01:23

मैच्योर फ्रेमवर्क है इस फ्रेमवर्क की

play01:25

अप्रोच या तुलना आप किसी भी और फ्रेमवर्क

play01:27

से मत करिएगा स्पेशली अगर जावास्क्रिप्ट

play01:30

बैकग्राउंड से आ रहे हैं जावास्क्रिप्ट

play01:31

में जो आपने देखे होंगे ने या फिर नेस्ट

play01:33

जेएस या फिर गेटस बी या इस तरह के जो भी

play01:36

आपने देखे हैं व कंपैरिजन यहां पे मत

play01:38

लाएगा यह कंप्लीट डिफरेंट फ्रेमवर्क है

play01:41

हां अगर आप कभी लरावेल बैकग्राउंड से आते

play01:44

हैं या रूबी ऑन रेल से आते हैं तो थोड़ा

play01:45

कंपैरिजन कर सकते हैं बट ज्यादा नहीं ठीक

play01:47

है तो चलिए जी स्टार्ट करते हैं सबसे पहले

play01:50

हम थोड़ा सा सेटअप करते हैं एनवायरमेंट और

play01:52

उसके बाद आपको बताते हैं किस तरह से

play01:53

करेंगे कमेंट टारगेट मत भूलिए है कि नहीं

play01:56

चलिए हम आते हैं अपनी स्क्रीन शेयरिंग पे

play01:59

जंगो पे थोड़ा सा बाद में पहले आते हैं

play02:01

हमारे वीएस कोड पे वीएस कोड में ज्यादा

play02:04

कुछ है नहीं थीम हमने चाई थीम ही रखते हैं

play02:06

हम उसी थीम के साथ ही चलते हैं हम हमेशा

play02:08

और इसके अंदर मैं एकय फोल्डर ड्रैग एंड

play02:10

ड्रॉप कर देता हूं जिसका नाम है चाय जंगो

play02:13

सिर्फ एमटी फोल्डर है इसी के साथ मैं आपको

play02:16

पूरा एनवायरमेंट सेटअप सब कुछ करना भी

play02:18

दिखाऊंगा हम यहां पर एक छोटा सा टर्मिनल

play02:20

भी ओपन कर लेते हैं आज मेरा कीबोर्ड थोड़ा

play02:22

सा परेशान कर रहा है पता नहीं क्यों मुझे

play02:24

सुबह सेही कर रहा है ओके तो हमें टर्मिनल

play02:28

चाहिए एक फोल्डर चाहिए बस दैट सेट अब क्या

play02:30

करना है कि जब भी आप

play02:44

python-tk एंड लेस कोड यह बात एकदम सही है

play02:48

कि कोड आपके पास कंपैरेटिव बहुत कम

play02:51

क्वांटिटी के अंदर होता है इजी भी होता है

play03:00

जंगो के बारे में अक्सर जो आपको लोग बात

play03:02

करते नजर आएंगे वह कुछ इस तरह से होगी कि

play03:04

रिडिक असली फास्ट हां इस वर्ड के अलावा

play03:06

कोई वर्ड जमता ही नहीं है यह रिडिक असली

play03:09

फास्ट ही है उसके अलावा

play03:17

रिअसेंबल्ड यहां पे होती है आपको उन

play03:20

प्रोटेक्शन के हिसाब से कोड लिखना होता है

play03:21

जंगो तो बाय डिफॉल्ट उसको प्रोटेक्ट कर ही

play03:23

देता है जो कि अच्छी चीज है इसके अलावा

play03:25

एक्सीडिंग स्केलेबल अच्छा बाय द वे जंगो

play03:28

की एक छोटी सी कहानी भी बताता हूं आपको

play03:30

जंगो के अंदर ना स्केल बहुत ही अच्छा

play03:33

मिलता है मिनिमम सिस्टम्स के ऊपर

play03:35

जावास्क्रिप्ट के जो सिस्टम्स होते हैं या

play03:37

जो एप्लीकेशंस होती है उसमें कंपैरेटिव

play03:39

थोड़ी सी ज्यादा रैम या अच्छा सिस्टम आपको

play03:41

लगता ही है लेकिन यह जो एप्लीकेशंस है ना

play03:44

जो जंगो और इस तरह की फ्रेमवर्क्स पुराने

play03:46

फ्रेमवर्क्स पे बनी होती है ये काफी अच्छा

play03:48

स्केल करती है बेयर मिनिमम पे तो अगर आपके

play03:50

पास मान लीजिए आपने डिप्लॉयड की मशीन पे

play03:53

$10 की मशीन पे तो भी काफी यूजर्स को एक

play03:56

ही साथ में हैंडल करने कीय पावर रखती है अ

play03:58

तो हां बिल कमाता है इसलिए कॉरपोरेट्स को

play04:01

बहुत पसंद होता है जंगो इनफैक्ट आपको पता

play04:03

भी नहीं होगा ऐसी-ऐसी जगह जंगो यूज़ होता

play04:05

है

play04:18

paytm-in x पे ठीक है

play04:20

python-pip इंस्टॉल जंगो ये वर्जन दे देते

play04:24

हैं तो भी ठीक है नहीं देते तो भी ठीक ही

play04:25

है विज पे जाऊं और इस तरह से कर दूं लेकिन

play04:29

लपमेंट है वो इस तरह से कम ही किया जाता

play04:31

है प्रोफेशनली स्पेशली क्योंकि कोई भी

play04:34

एक्सपेक्ट नहीं करता है कि आप

play04:39

python2 या अलग से एक बॉक्स के अंदर पूरा

play04:41

डेवलपमेंट करें उसके लिए

play04:44

python2 का यूज होता है जहां पे एक सेपरेट

play04:47

अ समझ लीजिए एक इंस्टेंस आ गया सेपरेट एक

play04:50

सेंड बॉक्स ही आ गया जहां हमारा सारा कोड

play04:52

जाएगा हमारी मेन सिस्टम पे क्या इंस्टॉल्ड

play04:54

है उससे उसको खास फर्क नहीं पड़ता है

play04:56

वर्चुअल एनवायरमेंट को तो इसीलिए आपको हर

play04:58

कोई

play04:59

अंदर वर्चुअल एनवायरमेंट बनाता हुआ नजर

play05:01

आएगा अब वर्चुअल एनवायरमेंट की मैं

play05:03

कमांड्स आपको बता देता हूं और हम किस तरह

play05:05

से करेंगे वह भी बता दूंगा अभी मत चलाइए

play05:07

क्योंकि पहले सुन लीजिएगा पूरी बात ठीक है

play05:09

चलिए तो अगर आप विंडोज पे हैं तो आप सीधे

play05:12

ही यहां पे अ पाई से स्टार्ट कर सकते हैं

play05:15

कि पाई कमांड मैं मैक पे हूं या आप

play05:29

कि वर्चुअल एनवायरमेंट बनाने के लिए क्या

play05:31

करते हैं ड m आज तो कीबोर्ड कुछ ज्यादा ही

play05:34

परेशान कर रहा है ओके तो हम यहां पर लगाते

play05:37

हैं ड m और उसके बाद आप लिखते हो कि मुझे

play05:40

चाहिए एक वर्चुअल एनवायरमेंट तो v नवी यह

play05:43

हमारे

play05:44

पास v एवी तो यह हमारे पास में बेसिकली

play05:48

कमांड है जो वर्चुअल एनवायरमेंट देती है

play05:50

और जो वर्चुअल एनवायरमेंट है वो इंस्टॉल

play05:52

किस फोल्डर में होगा तो अक्सर लोग डॉट

play05:54

वनवी नाम के फोल्डर में करते हैं यह डॉट

play05:57

इसलिए कि जिस तरह से गिट हमारा डॉट फोल्डर

play05:59

होता है है उसी तरह से वर्चुअल एनवायरमेंट

play06:01

की भी सारी सेटिंग्स फाइल्स को एक डॉट या

play06:03

हिडन फोल्डर में रखना लोग अक्सर पसंद करते

play06:05

हैं यही काम करना है बस इतना सा काम है और

play06:07

कुछ भी नहीं है एक्टिवेट कैसे करते हैं व

play06:09

भी दोनों का सेम ही है तो व मैं बता दूंगा

play06:11

लेकिन मैं जो यूज़ करूंगा यहां पे वह

play06:14

थोड़ा सा अलग है हमारे पास में कि किस तरह

play06:16

से मैं जो यूज़ करने वाला हूं उसका नाम है

play06:19

यूवी यूवी को इंस्टॉल करने के कई तरीके

play06:21

हैं आप पिप इंस्टॉल यूवी भी कर सकते हैं

play06:23

या फिर अगर आप और किसी सिस्टम पे है तो आप

play06:26

पिप से इंस्टॉल कर सकते हैं पिप x से भी

play06:28

कर सकते हैं ब्रू से भी भी कर सकते हैं और

play06:30

भी बहुत सारे

play06:39

mac's एनवायरमेंट से कंपेयर करेंगे तो

play06:42

जैसे एनपीएम है सारा काम उससे भी हो जाता

play06:43

है वैसे पिप से भी हो जाता है लेकिन वहां

play06:45

पे हमारे पास बन है जो कि बहुत फास्ट है

play06:48

इसी तरह से यवी मेरा नया फेवरेट है

play06:50

क्योंकि यह एक्सट्रीमली फास्ट पैकेज

play06:52

मैनेजर है रिटन इन रस्ट तो सिर्फ रस्ट में

play06:54

होने की वजह से नहीं यह एक्चुअली में इसके

play06:56

अंदर बहुत सारे पार्सल्स पे काम किया गया

play06:58

है और यह बहुत बत ही ज्यादा स्पीड है आप

play07:00

देख सकते हैं स्पीड आपके पास क्या डिफरेंस

play07:02

आता है 06 वर्सेस खैर ऐसे ग्राफ तो काफी

play07:05

होते हैं बट आपको सही मायने में एक्चुअली

play07:07

में देखने को मिलेगा कि हां जी काफी

play07:09

ज्यादा स्पीड डिफरेंस है तो जैसे आपने

play07:11

पाइथन इंस्टॉल किया इनमें से कोई सी भी

play07:13

कमांड चला लीजिएगा पिप चला लीजिएगा या फिर

play07:15

अगर आप मैक पे है तो पिप 3 चला लीजिएगा या

play07:17

फिर ब्रू से इंस्टॉल कर लीजिएगा इनमें से

play07:19

एक ना एक कमांड आपके पास हो जाएगी सर्च

play07:21

करेंगे जस्ट पिप आपको मिल जाएगा अब उसके

play07:24

बाद आपको कभी भी अगर वर्चुअल एनवायरमेंट

play07:26

बनाना है तो पिप अ v एनवी लिखना है बस

play07:29

इतना सा काम हमें करना है और कुछ भी नहीं

play07:31

करना है आपको डॉट v एनवी वो कुछ नहीं देना

play07:33

होता यह ऑटोमेटिक उसका सारा काम कर लेता

play07:35

है तो अब मैं क्या करूंगा मेरे पास

play07:37

क्योंकि यूवी ऑलरेडी इंस्टॉल्ड है तो मैं

play07:40

उस यूवी को ही यूज कर लेता हूं कि प्लीज

play07:43

यूवी और उसके बाद मैं यहां पे सीधा लिख

play07:45

दूंगा कि मुझे एक वर्चुअल एनवायरमेंट

play07:47

चाहिए तो सेम v इ एनवी हम लिख देंगे तो ये

play07:49

वर्चुअल एनवायरमेंट हमें दे देगा v ई एनवी

play07:52

ई एनवी तो जैसे ही आपने लिखा तो आपका

play07:55

वर्चुअल एनवायरमेंट क्रिएट हो गया अब हमें

play07:57

जो यहां पे फाइल मिली है इसके अंदर वही

play07:58

एग्जैक्ट सेम चीजें हैं जो आपको नॉर्मली

play08:00

जो पहले कमांड दिखाई थी उससे आपको मिलती

play08:02

है तो हमारे पास बिन है बिन के अंदर

play08:05

python3.7 इंस्टॉल्ड है बिन भी है आपकी

play08:08

जितनी एक्टिवेशन की लाइब्रेरीज वगैरह जो

play08:10

सब मिलती है वो सब आपके पास में है कोई

play08:12

ऐसी दिक्कत वाली बात नहीं है इसके अंदर

play08:14

ठीक है जी अब हमें क्या है यह एक्टिवेट

play08:16

वाली जो स्क्रिप्ट है ना ये स्क्रिप्ट

play08:17

चलानी होती है चाहे आप

play08:29

आपको पूरा एक ब्लॉग मिल जाएगा यह सब

play08:30

अलग-अलग जाके नहीं पढ़ना पड़ेगा एक ही जगह

play08:32

मैंने सारा पूरा अच्छे से डिटेल में लिख

play08:34

दिया है डिस्क्रिप्शन चेक कर लेना तो मैक

play08:37

पे है तो अगर आपको सोर्स ही यूज करना होता

play08:40

है तो सोर्स से आप इस एनवायरमेंट में बिन

play08:41

के अंदर जाके एक्टिवेट कर सकते हैं विंडोज

play08:43

पे है तो सीधा ही डॉट इसके अंदर जाके

play08:45

स्क्रिप्ट्स एक्टिवेट जाना आपको एक्टिवेट

play08:47

पे ही है वो आपकी या तो स्क्रिप्ट्स में

play08:49

होगा या बिन के अंदर होगा जहां पे भी हो

play08:50

हमें वहीं पे जाना पड़ता है और उसको

play08:52

एक्टिवेट करना पड़ता है चलिए जी यह भी कर

play08:54

लेते हैं हम यहां पे तो हमारे पास है

play08:56

सोर्स और सोर्स के बाद हमें जाना पड़ेगा ड

play08:58

v एनवी और हमारे पास बिन है और उसके अंदर

play09:01

एक्टिवेट यही कमांड उन्होंने लिख रखी है

play09:03

जैसे ये कमांड आप इंस्टॉल करोगे या

play09:05

एक्टिवेट करोगे अपनी स्क्रिप्ट को तो

play09:08

हमारे पास में ये लीजिए ओ अ सोर्स ओके

play09:12

टाइपो छोटा सा

play09:14

टाइपो ये लीजिए सोर्स ठीक है तो अब मुझे

play09:18

क्या दिख रहा है यहां पे कि मेरे पास एक

play09:20

डॉट v एनवी ये मेरी कमांड लाइन पे पहले आ

play09:22

गया है इसका सिंपल सा मतलब है कि अभी आप

play09:23

वर्चुअल एनवायरमेंट के अंदर हो और इससे

play09:25

ज्यादा कुछ भी नहीं है आपको जब भी करना हो

play09:27

आप डीएक्टिवेट कर सकते हो तो इस तरह से डी

play09:30

एक्टिवेट लिख दीजिएगा और आपका कमांड मतलब

play09:33

आपका जो वर्चुअल एनवायरमेंट है वो

play09:34

डीएक्टिवेट हो जाता है ठीक है जी यह वाली

play09:37

काम तो हमारे पास आ गई इसको एक बार रीलोड

play09:40

करवा लेते हैं थोड़ा सा हैंग हो रहा है यह

play09:43

ओके जी तो हम इसको करते हैं आई थिंक मेरे

play09:47

मशीन को एक रीस्टार्ट की जरूरत है क्योंकि

play09:49

काफी दिनों से क्या काफी हफ्तों से

play09:51

रीस्टार्ट नहीं हुई मशीन ठीक है जी वीडियो

play09:53

के बात करेंगे अभी चलिए इतना काम तो हो

play09:56

चुका है हमारे पास में कि सारा इंस्टॉलेशन

play09:58

वगैरह सब कुछ आ सका है अब एक और छोटी सी

play10:00

चीज आपको ध्यान रखनी है कि कुछ भी आपको

play10:01

इंस्टॉल करना है तो इस तरह से करना है

play10:03

यूवी उसके बाद पिप इंस्टॉल जो भी आपको

play10:06

इंस्टॉल करना है हमें जंगो इंस्टॉल करना

play10:07

है तो वो भी हम देखेंगे किस तरह से कर

play10:09

सकते हैं बट जहां भी आपको बता रखा होगा व

play10:11

बता रखा होगा पिप या पिप 3 अब आप क्योंकि

play10:13

वर्चुअल एनवायरमेंट में आ गए हो तो उससे

play10:15

पहले यूवी लगाना क्योंकि यूवी से हमने

play10:16

वर्चुअल एनवायरमेंट बनाया है और यूवी पिप

play10:19

उसके बाद इंस्टॉल और जो भी इंस्टॉल करना

play10:21

है ठीक है जी यह आपको आ चुका है समझ में

play10:23

यूवी पेप इंस्टॉल करना है हमें ओके तो हम

play10:26

चलते हैं अब हमारी दूसरी पे कि अब कैसे

play10:28

करना है तो यहां यहां पे हमें बोल रखा है

play10:30

कि जंगो आप इस तरह से इंस्टॉल कर सकते हो

play10:31

स्पेसिफिक वर्जन है तो वो कर लीजिएगा वरना

play10:33

जंगो कर सकते हैं करके देखें कैसे होता है

play10:35

इंस्टॉल चलिए जी करके देखते हैं तो हमें

play10:37

कहा गया है कि आप यहां पे लिख सकते हो पिप

play10:40

सॉरी यूवी लिखना है पहले यूवी उसके बाद

play10:42

पिप पिप थ नहीं अगर मैक पे हो तो भी पिप

play10:44

ही लिखना है क्योंकि अब आप वर्चुअल

play10:46

एनवायरमेंट में हो तो वो थ्री वाली

play10:48

प्रॉब्लम हट चुकी है और इसके बाद आपको

play10:50

सीधा लिखना है कि आपको यहां से इंस्टॉल

play10:52

करना है बहुत ही ज्यादा परेशान कर रहा है

play10:54

कीबोर्ड सिस्टम रीस्टार्ट करना ही पड़ेगा

play10:56

इंस्टॉल और आपको लिखना है जंगो जंगो का डी

play10:59

कैपिटल है हां जी जंगो डी से स्टार्ट होता

play11:01

है तो जैसे ही आप एंटर करोगे जंगो इंस्टॉल

play11:04

हो जाएगा रिडिक असली फास्ट इंस्टॉल होता

play11:06

है इससे यूवी से और जो भी डिपेंडेंसीज है

play11:09

सब डिपेंडेंसीज है वह आपके पास में यहां

play11:11

पे आ चुकी है ठीक है जी जंगो इंस्टॉल तो

play11:13

कर

play11:14

लिया अब इसके बाद क्या करना है अब इसके

play11:18

बाद ज्यादा कुछ खास है नहीं जंगो को यूज

play11:20

करके एक प्रोजेक्ट बनाना चाहेंगे अब उससे

play11:23

पहले थोड़ी सी यहां पे पढ़ लेते हैं कि

play11:25

जंगो के अंदर और भी आपके तरीके हैं यह सब

play11:27

है अ बाय द वे इसके अर जो आपको

play11:29

डॉक्यूमेंटेशन और यह सब मिलेगा ना ये

play11:31

नेक्स्ट लेवल होता है

play11:51

python2 लेवल है ये लोग

play11:59

को और कई बार मैंने उनके साथ इंग्लिश चैनल

play12:01

पे पॉडकास्ट भी किया है वो भी ये कहते हैं

play12:02

जब भी बात होती है कि हां हम

play12:04

pythonanywhere.com

play12:29

प्रोजेक्ट जब आप बनाते हो कुछ कंफ्यूजन

play12:31

होने के चांसेस हैं पर नहीं हो गए क्यों

play12:33

नहीं हो गए छाई और कोड पे आए हो यहां पे

play12:35

कैसे कंफ्यूजन होगा तो हम क्या करते हैं

play12:38

अब क्योंकि आपके पास जंगो इंस्टॉल्ड है तो

play12:40

आप एक्चुअली में अब यहां पे यूज कर सकते

play12:42

हो अ जंगो ड एडमिन तो यह जो है जंगो एडमिन

play12:48

ये एक कमांड है जो आपके पास इंस्टॉल हो

play12:50

जाती है जंगो इंस्टॉल करते ही अब यहां पे

play12:53

दो-तीन सब कमांड्स आती है एक तो आपके पास

play12:55

मेन कमांड आ गई है कि जंगो एडमिन यूज करना

play12:57

है उसके बाद पहली जो कमांड हम सीखेंगे वो

play13:00

है स्टार्ट प्रोजेक्ट दो कमांड्स होती है

play13:02

एक स्टार्ट ऐप और एक स्टार्ट प्रोजेक्ट

play13:04

फर्स्ट टाइम आप प्रोजेक्ट कमांड को यूज़

play13:06

करते हो इसके बाद कहीं यूज नहीं करते हो

play13:08

स्टार्ट प्रोजेक्ट इसके बाद जैंगो में

play13:09

मल्टीपल छोटी-छोटी एप्स बनती है अभी के

play13:12

लिए सिर्फ प्रोजेक्ट स्टार्ट करना है तो

play13:14

हम क्या करेंगे वही चाय और

play13:18

जैंगो ठीक है जी चाय और जैंगो मैंने लिखा

play13:21

अब एंटर करा तो मेरे पास आ गया है चाय और

play13:23

जैंगो का प्रोजेक्ट अब सबसे जो कंफ्यूजन

play13:26

होता है जिसमें लोगों को कि आप जैसे इसको

play13:28

ओपन करेंगे इसके अंदर एक और फोल्डर होगा

play13:30

चाय और जैंगो अब आप सोचेंगे सर यहां पे

play13:32

डॉट लिख देते तो हमारे पास शायद इसी

play13:34

फोल्डर में आ जाता नहीं नहीं आप ऐसा नहीं

play13:36

करना चाहते जब भी python2 जंगो का

play13:38

प्रोजेक्ट बनता है तो उसके अंदर एक सब

play13:40

फोल्डर इसी तरह से बनना चाहिए मेन

play13:42

प्रोजेक्ट हमारा इसी तरह से ही आना चाहिए

play13:44

ये स्टैंडर्ड प्रैक्टिस है कि वर्चुअल

play13:46

एनवायरमेंट और इसी लेवल पे हमारे पास में

play13:49

जंगो का प्रोजेक्ट होना चाहिए जो भी आपने

play13:50

नाम दिया है तो हमारे पास है चाय और जंगो

play13:53

अब इसके अंदर आपको दिखेगी एक manage.py

play13:56

फाइल तो सबसे पहला काम है इस फोल्डर के

play13:58

अंदर जाइए तो यहां से हम चलते हैं चाय और

play14:00

जंगो के पास ठीक है जी अब जैसे ही मैं एलस

play14:03

करके देख रहा हूं मुझे manage.py नाम की

play14:05

फाइल दिख रही है चलिए जी रन करते हैं इसको

play14:07

तो रन करने का सिंपल सा तरीका है कि

play14:12

python.py और एक सब कमांड भी हम इसको

play14:14

देंगे जिसका नाम है हमारे पास में रन

play14:16

सर्वर जैसे ही आप रन सर्वर कमांड दोगे तो

play14:19

आपको कुछ यहां पे एरर्स दिखाई देगी इन पे

play14:21

अभी चिंता नहीं करेंगे आने वाले वीडियोस

play14:23

में डिटेल में इस पर चर्चा करेंगे कि क्या

play14:25

है यह एडमिन ऑथ कंटेंट टाइप सेशंस अभी के

play14:28

लिए इग्नोर करेंगे इस वीडियो में हम नहीं

play14:30

देखेंगे उसको अब क्या है देखिए यहां पर

play14:32

क्या है कि आपके पास आया कि वाचिंग फाइल

play14:36

सर्वर्स चैलेंज सिस्टम चेक्ड आईडेंटिफाई

play14:38

नो इश्यूज वगैरह सब कुछ आपके पास यहां पे

play14:40

आया है और साथ में ना आपको यहां पे एक

play14:42

डीबी एस्कोलाइट भी बनता हुआ दिखाई दे गया

play14:45

हम तो डीबी एस्लाइट आपके पास बन गया है ओ

play14:48

मेरे को एक छोटी सी एरर और आई है दैट

play14:49

पोर्ट इज ऑलरेडी यूजिंग इट तो शायद कहीं

play14:51

ना कहीं मेरा क्योंकि बड़ा ही कॉमन पोर्ट

play14:53

है तो आई थिंक रन हो रहा है कहीं ना कहीं

play14:56

ओहो यस मेरी दूसरी एप्लीकेशन में रन हो

play14:59

रहा था मैंने उसको स्टॉप कर दिया वापस से

play15:01

चलाते हैं इस कमांड को क्योंकि मोस्टली जब

play15:04

मैं जावास्क्रिप्ट के बैक एंड्स बनाता हूं

play15:06

वो भी 8000 पे ही रन करता हूं और पाइथन भी

play15:08

हमारा बाय डिफॉल्ट इसी पोर्ट पे रन होता

play15:11

है बाय द वे इन केस आपके साथ भी ऐसी

play15:13

सिचुएशन आ जाए कि हमारा जो सर्वर है या

play15:15

फिर जो डिफॉल्ट पोर्ट है वो अगर ब्लॉक है

play15:17

तो हां हम ये भी इसका भी सलूशन कर सकते

play15:20

हैं बड़ा ही आसान है कि आप इसके बाद ना

play15:22

पोर्ट नंबर दे दीजिए कुछ नहीं देना है और

play15:24

जैसे सपोज करिए 8001 तो आप 8001 दे

play15:26

दीजिएगा वो काम भी हो जाएगा अच्छा हुआ एरर

play15:28

आई एक और सीखी तो अब हम क्या करते हैं

play15:31

यहां पर सीधा इसको लेकर आते हैं और इसको

play15:33

रन सर्वर करते हैं ठीक है जी रन सर्वर

play15:36

किया तो हमें पता लगा कि लोकल होस्ट 8000

play15:38

पर हमारी बाय डिफॉल्ट पप रन होती है ठीक

play15:41

है जी हम यहां पर आते हैं और यह लीजिए एक

play15:43

नए टैब के अंदर यहां पर ओपन करते हैं इसको

play15:46

तो उप्स यहां पर प्लीज कॉपी कर लीजिए ओके

play15:52

कॉपी कॉपी

play15:53

कॉपी वैसे तो डायरेक्ट ही हो जाना चाहिए

play15:56

था बट आज क्योंकि हमारे कीबोर्ड को कुछ

play15:58

ज्यादा ही नी है

play16:00

मुझसे यह हो गई आपकी फर्स्ट जंगो इनका

play16:03

डार्क मूड अभी तक नहीं आया है बाय डिफॉल्ट

play16:05

पप में तो यह है आपकी जंगो की एप्लीकेशन

play16:08

रन हो गई है यहां पे आप इस पेज को इसलिए

play16:10

दे रख देख रहे हो क्योंकि आपका डीबगिंग

play16:12

ट्रू है डीबगिंग फाल्स हो जाएगा तो आपको

play16:14

यह पेज नहीं दिखेगा अब बात आती है कि ठीक

play16:17

है जी यह तो हमने ऑन कर लिया है जंगो

play16:19

वगैरह का सब कुछ लेकिन अब बात आती है कि

play16:22

यह सब आ कहां से रहा है तो हम करेंगे अब

play16:24

थोड़ा सा फाइल का एक्सप्लोरेशन कि किस तरह

play16:27

से जंगो वर्क करता है और बस इतना ही नहीं

play16:29

करेंगे नेक्स्ट वीडियो में और डिटेल में

play16:30

जाएंगे बट अभी के लिए सिर्फ और सिर्फ फाइल

play16:32

एक्सप्लोरेशन जरूरी है सबसे पहली फाइल

play16:34

आपकी manage.py यह आपकी स्टार्टिंग पॉइंट

play16:38

फाइल है और यही वह फाइल है जो आपके

play16:40

एनवायरमेंट वेरिएबल से लेके बहुत सारी

play16:42

चीजें सेट करेगी इनफैक्ट प्रोडक्शन में

play16:44

जाने के बाद भी यही फाइल है जो आपके

play16:45

सिस्टम को इवोक करती है मतलब फर्स्ट टाइम

play16:47

यही फाइल आपकी रन होती है इस फाइल के अंदर

play16:50

काफी ऑप्शंस आपको अवेलेबल होते हैं जो कि

play16:52

हम सर्वर पे जाके और भी देखते रहते हैं तो

play16:54

manage.py एक चीज का और

play16:58

फोल्डर्स बनाएंगे और आपको पता होना चाहिए

play17:00

एगजैक्टली उस फोल्डर का इंडेंटेशन कहां पे

play17:02

है कि वो फोल्डर का लेवल कहां है

play17:04

manage.py लेवल है इसी तरह से

play17:14

python2 लेवल जो कि manage.py जिस लेवल पे

play17:17

है फाइल वहीं पे कुछ फाइल्स या फोल्डर्स

play17:18

बनाए जाते हैं फ्रेमवर्क है रूल्स उनके

play17:20

हैं हम हमारी तरफ से ना फाइल्स एंड

play17:22

फोल्डर्स का नाम रख सकते हैं ना ही हम

play17:24

अपनी मर्जी से अ कहीं पे भी फाइल्स और

play17:27

फोल्डर्स को डंप कर सकते हैं स्पेसिफिक

play17:29

रूल्स है वहां पे आप फाइल्स एंड फोल्डर्स

play17:30

क्रिएट करोगे तो एक्सपेक्टेड बिहेवियर

play17:32

मिलता है ठीक है जी फिर हमारे पास आया

play17:35

एलाइट 3 एलाइट 3 क्यों आया क्योंकि यही

play17:38

डिफॉल्ट डेटाबेस है जो कि आपको जंगो में

play17:40

यूज होता है अब सबसे अच्छी बात यह है कि

play17:42

जो भी कोड आप यहां लिखोगे उसका कोई लेना

play17:45

देना नहीं है एस्लाइट से माय सीक्वल से

play17:47

पोस्टग्रेस से आप कभी भी किसी भी मौके पे

play17:50

सिर्फ कुछ दो-चार लाइनों का कोड लिख के

play17:53

कोड भी नहीं कहूंगा कॉन्फ़िगरेशन सेट करके

play17:55

बस ट्रू फॉल्स करके एस्कोलाइट से

play17:57

पोस्टग्रेस पे मूव कर सकते हो पोस्ट ग्रेस

play17:59

से माय सीक्वल पे मूव कर सकते हो इनफैक्ट

play18:01

हां जंगो के अंदर नो सीक्वल डेटा बेसेस भी

play18:04

काफी अच्छे से चलते हैं बट आम प्रैक्टिसेस

play18:07

यही है कि हम ज्यादातर सीक्वल डेटा बेसेस

play18:09

में ही रहते हैं बट आपको सीक्वल डेटा

play18:11

बेसेस से ज्यादा इंटरेक्ट नहीं करना पड़ता

play18:13

सीक्वल नहीं लिखते हो आप अब चलते हैं हम

play18:15

इस फोल्डर के अंदर ये है हमारा प्रोजेक्ट

play18:17

फोल्डर इस फोल्डर के अंदर काफी बेसिक्स ही

play18:20

हम करते हैं ज्यादातर हम एक सेपरेट ऐप

play18:22

बनाते हैं जो हम नेक्स्ट वीडियो में

play18:23

बनाएंगे और उसके थ्रू काम करते हैं अब

play18:25

आपको पता ही है अगर आपने

play18:27

python's फोल्डर है जब भी मल्टीपल मॉड्यूस

play18:30

होते हैं python's फोल्डर आपके पास बनता

play18:32

ही बनता है जिससे ऑप्टिमाइजेशन आता है यह

play18:34

हमने काफी डिस्कस करा था पहले भी उसके बाद

play18:37

जो सबसे मेन फाइल है जिसके पास आप

play18:39

कभी-कभार ही जाओगे बट बहुत इंपॉर्टेंट है

play18:41

वो है settings.py यहां पे जितना भी

play18:44

कॉन्फ़िगरेशन है पूरे जंगो का वो लिखा हुआ

play18:46

होता है कि बेस डायरेक्ट्रीएंट्री

play18:59

यह वाली चीज भी बहुत काम आएगी जैसे मैंने

play19:01

कहा कि जंगो के अंदर हर चीज एक छोटी-छोटी

play19:02

एप्स होती है जैसे आप सपोज करिए ई-कॉमर्स

play19:06

बना रहे हैं तो उसके कूपंस एक छोटी सी अलग

play19:08

ऐप होगी हालांकि इंटरेक्ट कर सकती है आपस

play19:10

में कोई दिक्कत वाली बात नहीं है बट कूपंस

play19:12

को अक्सर एक अलग एप्स बना देते हैं

play19:14

प्रोडक्ट्स कैटेगरी जो आप लिस्ट कर रहे हो

play19:16

उसको एक अलग बना देते हैं चेकआउट को एक

play19:18

अलग ऐप बना देते हैं ताकि मल्टीपल लोग भी

play19:20

काम कर सके और सेपरेट भी रहे लॉजिक तो वो

play19:22

हम यहां पे एडिशनल ऐड करते रहते हैं मिडल

play19:25

वेयर्स भी जंगो के बहुत पावरफुल है इतने

play19:27

मिडल वेयर्स तो आपको बाय डिफॉल्ट मिलते

play19:29

हैं जिसमें कि आपका ऑथेंटिकेशन भी है और

play19:31

क्लिक जैकिंग वगैरह से प्रोटेक्शन भी है

play19:33

यह सब आपको आउट ऑफ द बॉक्स मिलता है और

play19:36

बाई द वे ऑथेंटिकेशन पे भी हम डेडिकेटेड

play19:38

देखेंगे कि कितना बड़ा एडमिन पैनल आपको

play19:40

बिना कुछ करे ही जंगो के अंदर शिप इन होता

play19:42

है और बहुत ही अच्छा एडमिन पैनल है उसके

play19:45

अलावा टेंपलेट्स पे भी हम आएंगे किस तरह

play19:46

से टेंप्लेट किया जाता है उसके बाद देखिए

play19:49

यह है हमारा डेटाबेस का सेक्शन अभी हम

play19:50

एलाइट 3 पे डील कर रहे हैं बट इवेंट

play19:52

ओबवियस सी बात है पोस्टग्रेस वगैरह पे भी

play19:54

डील करेंगे हम उसके बाद आपके पासवर्ड के

play19:57

ऑथेंटिकेशन वैलिडेशन जो भी हैं वो बाय

play19:59

डिफॉल्ट आपके पास आते हैं अ टाइम जोन

play20:01

लैंग्वेज कोड यहां पे भी हम आएंगे अभी

play20:04

नहीं थोड़ा बाद में आएंगे ठीक है जी तो

play20:06

आपको सेटिंग्स फाइल समझ में आ गई कि हां

play20:08

अगर प्रोजेक्ट लेवल पे कोई सेटिंग करनी है

play20:09

तो मैं settings.py फाइल में आके कर सकता

play20:11

हूं ज्यादा नहीं होता है एक-एक दो-दो लाइन

play20:13

की सेटिंग्स होती है उन्हीं को बस आप

play20:14

कॉन्फिन करते हो इसके बाद एक कॉमन फाइल पे

play20:17

आप जो जाओगे वो होगी urls.py ये आपकी पूरी

play20:21

राउटिंग की फाइल है कि आप कहां पे जा सकते

play20:23

हो अब आप यहां देख सकते हो एडमिन ऑलरेडी

play20:25

एक राउट है बट ये कॉन्फिडो ग तो यहां पे

play20:28

अभी कुछ आपको खास मिलेगा नहीं उसके लिए

play20:30

थोड़ा सा एक दो कमांड और चलानी पड़ेगी जो

play20:32

हम नेक्स्ट वीडियो में चलाएंगे बट हां

play20:34

एडमिन आपको बाय डिफॉल्ट मिलता है हां जी

play20:36

पूरा एडमिन डैशबोर्ड यहां पे आके हम पूरे

play20:39

फाइल्स की राउटिंग करते हैं राउटिंग मतलब

play20:41

कौन से यूआरएल पे आप जाओगे यूआरएल पे जाने

play20:44

के बाद होगा क्या वह हम एक सेपरेट फाइल

play20:46

में डिस्कस करते हैं वो फाइल अभी यहां पे

play20:48

है नहीं वो फाइल हमें फर्स्ट टाइम बनानी

play20:50

ही पड़ती है अगर यहां पे है views.py तो

play20:53

यह view.py हमारे सारे व्यूज डिफाइन करती

play20:56

है व्यूज मतलब कंट्रोलर समझ सकते हो जितना

play20:58

भी फंक्शनैलिटी है बिजनेस लॉजिक है वो सब

play21:00

यहां पे डील करते हैं इसी तरह से मॉडल नाम

play21:02

की भी फाइल बनती है जो कि

play21:04

इवेंचर हम सारे डेटाबेस मॉडल्स रखते हैं

play21:07

तो इस तरह से पूरे जंगो की एप्लीकेशन होती

play21:09

है पहले सबसे पहले आप ये यूआरएल फाइल को

play21:11

हिट करते हो मतलब एक यूआरएल हिट करते हो

play21:14

तो ये जो यूआरएल फाइल है ये गवर्न करती है

play21:16

कि कौन सा वाला राउट उसको हैंडल करेगा तो

play21:19

यहां से एक बार राउट हैंडल हो गया फिर

play21:20

हमारी फाइल का जो पूरा कंट्रोल है वो जाता

play21:22

है व्यूज के ऊपर व्यूज में आप लिखते हो

play21:24

बिजनेस लॉजिक और वहां से ही रिटर्न कर

play21:27

सकते हो आप या तो कोई html5 रिटर्न कर

play21:29

देते हो या सिर्फ हेलो वर्ल्ड रिटर्न कर

play21:30

देते हो या जो भी आपको रिटर्न करना है

play21:32

उसके अलावा डेटाबेस में चीजें किस तरह से

play21:34

स्ट्रक्चर्ड होगी कैसे रहेगी वो सारा काम

play21:37

हम models.py नाम की फाइल में करते हैं वो

play21:39

फाइल्स अभी है नहीं

play21:42

एवेंचुरा ज्यादा बर्डन नहीं देना चाहता कि

play21:45

आपको लगे कि बहुत ओवर

play21:51

वेल्मिनिक पूरा एक्सप्लोर करा है किस तरह

play21:54

से होती है और अभी के लिए मैं थोड़ा सा

play21:57

स्टार्टिंग में लाइट र ख रहा हूं उसको

play21:59

ताकि आपको अच्छा लगे कि हां ठीक है हमने

play22:00

एटलीस्ट एक प्रोजेक्ट बनाया फाइल

play22:02

स्ट्रक्चर को समझा कि इतना भी बड़ा फाइल

play22:04

स्ट्रक्चर नहीं है कि समझ ही नहीं आ रहा

play22:05

कि क्या हो रहा है तीन-चार फाइलें थी हमने

play22:07

उनको समझ लिया ज्यादा नहीं एक दो कमांड्स

play22:10

ही थी वो हमने देख लिया हमारी जंगो की

play22:11

एप्लीकेशन रन भी है ये जो बोल रहे थे

play22:14

डीबगिंग ट्रू कहां से आया वो भी हमने एक

play22:16

बार देख लिया बस दैट स इट अभी के लिए हम

play22:18

इतना ही करेंगे क्योंकि थोड़ा सा इसको

play22:20

लाइट वेट रखेंगे और आने वाले वीडियोस के

play22:22

अंदर हम देखेंगे कि किस तरह से हम और काम

play22:25

कर सकते हैं इन एप्लीकेशंस के अंदर किस

play22:27

तरह से हम कस्टम टेंप्लेट कर सकते हैं

play22:29

स्टैटिक फाइल्स डेटाबेस बहुत कुछ आना बाकी

play22:31

है आपको जैसा पता है हम प्रोडक्शन लेवल प

play22:33

लेके ही जाते हैं चीजों को फुल इन डेप्थ

play22:35

जाते हैं एक्सप्लोर करते हैं अच्छी

play22:37

प्रैक्टिसेस भी सीखते हैं प्रोडक्शन ग्रेड

play22:39

चीजें भी सीखते हैं वो भी यहां पे भी हम

play22:41

करेंगे तो ठीक है कमेंट टारगेट मत भूलिए

play22:43

और शेयर करिएगा सीरीज को और मिलते हैं

play22:46

आपसे नेक्स्ट वीडियो के अंदर थोड़ा सा और

play22:48

ज्यादा कोड लिखेंगे नेक्स्ट वीडियो के

play22:50

अंदर ठीक है बस चाय बना के रखिए और फटाक

play22:53

से आए हम नेक्स्ट वीडियो को लेके आपके पास

play22:54

में सब्सक्राइब कर दीजिएगा तब तक

Rate This

5.0 / 5 (0 votes)

Связанные теги
DjangoPythonWeb DevelopmentFrameworkRapid DevelopmentCode EditorProject SetupDatabase MigrationVirtual Environment
Вам нужно краткое изложение на английском?