learning to code
learning to code
  • 10
  • 1 562
Django tutorial | Simple | CRUD Application | Part 3
Hi, today we will dive into backend technologies and learn a few things about Django .
In this tutorial you will know how to
• how to use serializer from DRF
• override its methods to handle different request methods "GET" "POST" "PATCH" "DELETE"
▬▬▬ L I N K S 🔗▬▬▬▬
Git Repo: ►
▬▬▬ T I M E S T A M P S ⏰ ▬▬▬▬▬▬
0:09​ - Requirement-1 statement + Database Design
1:59​ - Requirement-2 statement + Database Design
04:28 - Implementation
04:48 - Implementing Requirement-1 in model.py
09:42 - Implementing Requirement-2 in model.py
14:38 - 3 custom logics for serializer
18:20 - handle POST request overriding create() method
24:40 - handle PATCH request overriding update() method
27:55 - handle DELETE request overriding delete() method
▬▬▬ COMMANDS USED ▬▬▬
python --version
pip install pipenv
pipenv shell
pipenv install django
python -m django -version
pip freeze (greater than sign) requirements.txt
git init
django-admin
django-admin startproject
django manage.py
django manage.py runserver
django manage.py createsuperuser
django manage.py migrate
django manage.py startapp app_name ./project_name/apps/app_name
▬▬▬ Want to learn more? 🚀 ▬▬▬▬▬▬
▬▬▬ Connect with me 👋 ▬▬▬▬▬▬
Github ► github.com/PriDebnath
#django #admin #drf #python
มุมมอง: 27

วีดีโอ

Django tutorial | Simple CRUD Application | Part 2
มุมมอง 4116 ชั่วโมงที่ผ่านมา
Hi, today we will dive into backend technologies and learn a few things about Django . In this tutorial you will know how to • set up a django project from scratch • create superuser for admin panel • building a database table and connecting it to your app • build both functional and class-based views • building serializers to handle data • and handle all your CRUD operations with DRF ▬▬▬ L I N...
Django tutorial | Simple CRUD Application | Part 1
มุมมอง 7321 ชั่วโมงที่ผ่านมา
Hi, today we will dive into backend technologies and learn a few things about Django . In this tutorial you will know how to • set up a django project from scratch • create superuser for admin panel • building a database table and connecting it to your app • build both functional and class-based views • building serializers to handle data • and handle all your CRUD operations with DRF ▬▬▬ L I N...
How to install mongodb in phone - store data on mongodb atlas cloud from your android or ios
มุมมอง 7762 ปีที่แล้ว
In this video a showed how to use mongodb atlas from a mobile . First you need to create a account on mongodb using your email , Create a free cluster inside that define database and collection name . Now copy the connection string and connect to mongodb remotely . Time stamps :- 00:40 creating account on mongodb 01:00 verify on Gmail 01:27 welcome to atlas 03:42 copying connection string 04:30...
start backend development using your mobile | install termus | nodejs |
มุมมอง 1972 ปีที่แล้ว
In this video I will show you how to start your backend development using your mobile First you have to download termus it's a terminal emulator for Android The termus on play store has some bugs 🤮 Soo we will download termus from f-droid as official page of termus said Termus :- f-droid.org/en/packages/com.termux/ Time stamps ;- Installing termux - 00:06 Installing node js - 00:38 Installing a...
Tools to start your web developer journey with just a mobile | ui ux | mobile
มุมมอง 292 ปีที่แล้ว
So you want to learn coding but you just have a mobile ? I have recommended some tools to start your journey . Time stamps :- Agenda of the video :- 00:00 Little intro to web :- 00:09 Canva :-00:38 Designing a web page :-01:12 Final design:- 03:40 SPCK code editor:- 03:43 Outro:- 06:12 I think web development is the best choice when its comes about learning to code as a beginner . Now if we div...
Creating a todo app with html css and javascript | web development project |
มุมมอง 292 ปีที่แล้ว
Creating a todo app with html css and javascript In this video I created a simple todo app from scratch . You can follow with me . We will go through step by step . Note css is already done . Time stamps Introduction 00:00 Files 00:31 Html 00:55 Linking css to html 01:48 JavaScript 02:03 Adding delete button 04:03 Adding our todo in local storage 05:00 Getting todo from local stroage 08:48 Addi...
How to recheck the password before submitting | html , css & javascript | #web #development
มุมมอง 382 ปีที่แล้ว
How to recheck the password in an input field with checkbox before submitting | html , css and javascript | coding from mobile | #web #development

ความคิดเห็น

  • @harsh.w
    @harsh.w วันที่ผ่านมา

    speak clearly brother

  • @wisdomsamuel-pe2fm
    @wisdomsamuel-pe2fm ปีที่แล้ว

    Thanks alot .... really working well.. This has helped me alot.. I do all of my code project with my Android

    • @learningtocode5049
      @learningtocode5049 ปีที่แล้ว

      Happy to hear that man . If you want to know more about it, let me know I am always here .

  • @wisdomsamuel-pe2fm
    @wisdomsamuel-pe2fm ปีที่แล้ว

    You made my day... I also best enjoy 😄 code with phone than laptop

  • @wisdomsamuel-pe2fm
    @wisdomsamuel-pe2fm ปีที่แล้ว

    😊😊 Thanks alot

  • @androdeveloper7261
    @androdeveloper7261 2 ปีที่แล้ว

    Anyone would like to collab with me on my project ?

  • @juliacampos3034
    @juliacampos3034 2 ปีที่แล้ว

    ᑭяỖmo𝓼𝐦 😋

  • @kazisamir123
    @kazisamir123 2 ปีที่แล้ว

    👌

  • @munawarp2464
    @munawarp2464 2 ปีที่แล้ว

    Thank you bro for those videos. Can I get ur WhatsApp number, coz I got some error i need ur help. Thanks.

    • @learningtocode5049
      @learningtocode5049 ปีที่แล้ว

      You can connect with me here instagram.com/spoiler_0p

  • @learningtocode5049
    @learningtocode5049 2 ปีที่แล้ว

    Mongoose code :- let mongoose = require('mongoose') // connecting to mongodb atlas mongoose.connect('mongodb+srv://<username>:<yourpassword>@cluster0.yoly7.mongodb.net/<databasename>?retryWrites=true&w=majority') // mongoose schema let schema = new mongoose.Schema({ name : String , age : Number }) // mongoose model let model = new mongoose.model('user',schema) let newUser = new model({ name :'bean', age : 99 }) // inserting the data model.insertMany([newUser])

  • @learningtocode5049
    @learningtocode5049 2 ปีที่แล้ว

    <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Todo app</title> <style type="text/css" media="all"> body { margin: 0; padding: 0; background: linear-gradient(lightpink, white, lightpink); height: 100vh; width: 100vw; display: flex; justify-content: center; align-items: center; } .todo_container { min-width: 80%; max-width: 300px; border-radius: 1rem; background: lightpink; box-shadow: 0 0 0.3rem rgba(0, 0, 0, 0.3); } .todo_container:active { transform: scale(0.99); box-shadow: none; } .input_container { padding: 2rem 1.4rem; } input { border-radius: 1rem; width: 75%; height: 2rem; outline: none; padding: 0.1rem 0.6rem; font-size: 1.1rem; border: 0.1rem solid salmon; margin: 0; box-shadow: inset 0 0 0.2rem black; } input::placeholder { color: salmon; font-weight: bold; } ul {margin: 0; height: 10rem; font-size: 1.1rem; list-style: none; padding-left: 0; overflow: scroll; } button { border: 0.1rem solid salmon; border-radius: 5rem; font-weight: bolder; outline: none; background: white; box-shadow: inset 0 0 0.2rem black; } .add_btn { color: salmon; font-size: 2rem; background: white; padding: 0 0.6rem; position: relative; top: 0.2rem; } .add_btn:active { color: lime; border: 0.1rem lime salmon; } li { background: white; margin: 1% 10%; padding: 2% 6%; border-radius: 1rem; box-shadow: inset 0 0 0.2rem black; border: 0.1rem solid salmon; display: flex; justify-content: space-between; align-items: center; } .complete { color: gray; text-decoration: line-through; opacity: 0.7; } .delete_btn { padding: 0.1px 0.8rem; font-size: 1.3rem; position: relative; top: -2.2rem ; left: 75%; } .delete_btn:active { color: red; border: 0.1rem red salmon; } </style> </head> <body> <div class="todo_container"> <div class="input_container"> <input class="input" type="text" name="" id="input" value="" placeholder="Add a todo ..."/> <button class="add_btn" type="submit">+</button> </div> <ul> </ul> </div> <script> let input = document.querySelector('.input') let addBtn = document.querySelector('.add_btn') let ul = document.querySelector('ul') let todoText = JSON.parse( localStorage.getItem('todo')) todoText.forEach((text)=> { handleSubmit(text) }) addBtn.addEventListener('click',()=> { handleSubmit() }) function handleSubmit(localText){ if(input.value || localText ){ let li = document.createElement('li') let button = document.createElement('button') li.innerText=input.value button.innerText='-' button.classList='delete_btn' if(localText){ li.innerText=localText } ul.appendChild(li) ul.appendChild(button) button.addEventListener('click',()=> { ul.removeChild(li) ul.removeChild(button) updateLocalStore() }) li.addEventListener('click',()=> { li.classList.toggle('complete') }) updateLocalStore() } input.value ='' } function updateLocalStore(){ let allLi = document.querySelectorAll('li') let todo = [] if(allLi){ allLi.forEach((singleLi)=> { todo.push(singleLi.innerText) }) localStorage.setItem('todo',JSON.stringify(todo)) } } let nums = [1,2,3] let a = nums.reduce((num1,num2)=> { return num1 + num2 }) console.log(a) </script> </body> </html>