Dr. Azad Rasul
Dr. Azad Rasul
  • Видео 100
  • Просмотров 15 198
🎥 Welcome to Your First Python Program! | A Step-by-Step Guide 🖥️
Ready to dive into the world of Python programming? In this quick and easy tutorial, I'll show you how to run your first Python program right from the command line! Whether you're a beginner or just brushing up on your skills, this video will guide you through each step:
🔍 What You'll Learn:
How to Access the Command Prompt in Windows.
Running Python directly from the command line.
Writing and Executing your first simple Python script.
Saving and Running Python Files effortlessly.
By the end of this video, you'll have created and executed your very first Python program-congratulations! 🎉
If you found this tutorial helpful, don't forget to SUBSCRIBE to my channel for more programming tips, tricks...
Просмотров: 3

Видео

Deploy Django Project on Render | Step-by-Step Guide
Просмотров 87 часов назад
Want to deploy your Django app on Render? This tutorial walks you through the entire process, from preparing your Django project to configuring Render settings and deploying successfully. 🔹 What You'll Learn: ✅ Update settings.py for deployment ✅ Configure static files and database settings ✅ Create requirements.txt and Procfile ✅ Set up render.yaml for dependency installation ✅ Push your chang...
How to Push a Project to GitHub: Step-by-Step Guide
Просмотров 182 часа назад
In this tutorial, we walk you through the process of pushing your Django project to GitHub, from setting up your local repository to linking it with your GitHub repository and pushing the changes. Whether you're a beginner or looking to improve your Git workflow, this video will guide you through each step of the process. In This Video: Step 1: Install Git and set it up in your environment. Ste...
Simple Django Web App: Convert PDF to Word
Просмотров 3512 часов назад
🚀 In this tutorial, you'll learn how to build a Django web application that converts PDF files to Word documents. Whether you're a beginner or an experienced developer, this step-by-step guide will walk you through the entire process-from setting up the project to running the app. 🔗 Topics Covered: 0:00 Introduction 1:00 Step 1: Setting Up the Django Project Activating a virtual environment Ins...
Building a Real-World Snake Game Project
Просмотров 3014 часов назад
Dive into this hands-on tutorial and learn how to create a classic Snake game served as a dynamic web app using Django. We'll guide you step by step through the entire process-from setting up your Django project to integrating HTML, CSS, and JavaScript for a fully interactive and visually appealing game interface. You'll learn how to structure your project, manage backend logic with Django view...
Working with Forms in Django
Просмотров 1321 час назад
In this step-by-step tutorial, you'll learn how to create and manage forms in Django to collect user input efficiently. We'll break down the process into simple, easy-to-follow steps, ensuring that both beginners and experienced developers can follow along effortlessly. What You'll Learn: Creating Forms for User Input - Learn how to build a simple voting form using Django templates with CSRF pr...
Implementing Generic Views
Просмотров 11День назад
In this step-by-step tutorial, we'll explore Django's Class-Based Views (CBVs), focusing on how they help organize code and reduce repetition. We’ll learn how to implement: ListView to display a list of poll questions. DetailView to show details of a single question. Best practices for customizing CBVs for your needs. By the end of this tutorial, you'll understand how CBVs streamline your Djang...
Creating Tempelates in Django
Просмотров 16День назад
In this step-by-step guide, we'll explore how to create and organize templates in Django to separate design (HTML) from backend logic. Learn how to set up template directories, write reusable HTML templates, and update views to render them effectively. What you'll learn: ✔ Setting up the templates directory properly ✔ Writing and structuring template files (index.html & detail.html) ✔ Updating ...
Adding Views in Django - Step-by-Step Guide
Просмотров 13День назад
In this lesson, you'll learn how to create and link views in Django to handle the logic of your web application. Views process user requests, interact with the database, and return responses like text, JSON, or HTML. What You'll Learn: ✅ Understanding Django views and their role. ✅ Step-by-step guide to creating views in polls/views.py. ✅ Linking views to URLs in polls/urls.py. ✅ Testing views ...
Exploring the Django Admin Interface - Step-by-Step Guide
Просмотров 26День назад
Welcome to this step-by-step tutorial on Django's Admin Interface! In this video, you'll learn how to manage your web application's backend effortlessly using Django's built-in admin panel. Follow along to create a superuser, access the admin panel, customize its functionality, and register models for easy data management. What You’ll Learn: 1️⃣ Create a Superuser: Set up an admin account to ac...
Creating Models for a Poll App with Django - Step-by-Step Tutorial
Просмотров 17День назад
Learn how to create models for a poll app using Django in this step-by-step tutorial. We'll guide you through defining database models, making migrations, and registering them in the Django admin panel. 🔍 In this video, you'll learn: Introduction to Django ORM - Understand how Django models interact with the database using Python. Defining Models - Create Question and Choice models for the poll...
Setting Up a Database in Django - A Step-by-Step Guide
Просмотров 20День назад
In this video, we'll walk you through the process of setting up a database in Django, using its default SQLite database. Whether you're a beginner or looking for a refresher, this step-by-step guide will make it easy to follow along. What You'll Learn: 🔹 Step 1: Understanding SQLite in Django What is SQLite, and why is it the default choice for Django? Advantages of using SQLite for development...
🔥 Django URL Mapping Made Easy: Connect Views to URLs in 5 Simple Steps!
Просмотров 18День назад
Want to learn how to connect URLs to views in Django? 🚀 This step-by-step guide will walk you through the entire process-from understanding Django’s URL dispatcher to writing your first view and mapping it to a URL. By the end, you'll have a working web page ready to display in your browser! 🔍 In this video, you’ll learn: Understanding Django's URL Dispatcher - Learn how Django connects URLs to...
Build Your First Django App Step-by-Step
Просмотров 35День назад
RUclips Description: 🔥 Welcome to this Tutorial: Build Your First Django App! In this step-by-step guide, you'll learn how to create your first Django app with ease. Whether you're a beginner or looking to refresh your skills, this tutorial covers everything you need to get started. 📚 In this tutorial, you will learn: ✔️ The difference between a Django Project and a Django App ✔️ How to create ...
Creating Your First Django Project
Просмотров 67День назад
🎥 Welcome to Django Basics: Your First Project! In this step-by-step tutorial, you'll learn how to create your first Django project and get it running in no time. Perfect for beginners, this video will guide you through the process of setting up and understanding the essential parts of a Django project. What You’ll Learn: ✅ The structure of a Django project and its key files ✅ How to create a n...
Django Environment Setup Made Easy: Install Python, Django, and Essential Tools on Windows
Просмотров 70День назад
Django Environment Setup Made Easy: Install Python, Django, and Essential Tools on Windows
Boost Your AI Speed: Step-by-Step Guide to GPU Setup for Machine Learning & Deep Learning!
Просмотров 5414 дней назад
Boost Your AI Speed: Step-by-Step Guide to GPU Setup for Machine Learning & Deep Learning!
Programming for Scientific Research with Python and R: Introduction
Просмотров 684 месяца назад
Programming for Scientific Research with Python and R: Introduction
Master Geospatial AI Transform Data Today
Просмотров 335 месяцев назад
Master Geospatial AI Transform Data Today
Python for Scientific Research: Welcome and Course Overview
Просмотров 485 месяцев назад
Python for Scientific Research: Welcome and Course Overview
Introduction to the Course and Installing R
Просмотров 215 месяцев назад
Introduction to the Course and Installing R
Harnessing AI and Machine Learning for Geospatial Analysis - Welcome and Course Overview
Просмотров 645 месяцев назад
Harnessing AI and Machine Learning for Geospatial Analysis - Welcome and Course Overview
Detecting and Counting Plants Using Computer Vision Techniques
Просмотров 1315 месяцев назад
Detecting and Counting Plants Using Computer Vision Techniques
Building a Machine Learning Model for Crop Health Analysis
Просмотров 625 месяцев назад
Building a Machine Learning Model for Crop Health Analysis
🌾 Crop Data Analysis: Unlocking Agricultural Insights with Geospatial Data 🌾
Просмотров 835 месяцев назад
🌾 Crop Data Analysis: Unlocking Agricultural Insights with Geospatial Data 🌾
Comprehensive Guide to Geospatial Analysis, Machine Learning, and Data Processing in Python - Part5
Просмотров 926 месяцев назад
Comprehensive Guide to Geospatial Analysis, Machine Learning, and Data Processing in Python - Part5
Comprehensive Guide to Geospatial Analysis, Machine Learning, and Data Processing in Python - Part 4
Просмотров 1316 месяцев назад
Comprehensive Guide to Geospatial Analysis, Machine Learning, and Data Processing in Python - Part 4
Comprehensive Guide to Geospatial Analysis, Machine Learning, and Data Processing in Python - Part 3
Просмотров 2136 месяцев назад
Comprehensive Guide to Geospatial Analysis, Machine Learning, and Data Processing in Python - Part 3
Comprehensive Guide to Geospatial Analysis, Machine Learning, and Data Processing Project: Part2
Просмотров 2026 месяцев назад
Comprehensive Guide to Geospatial Analysis, Machine Learning, and Data Processing Project: Part2
Comprehensive Guide to Geospatial Analysis, Machine Learning, and Data Processing in Python - Part 1
Просмотров 2066 месяцев назад
Comprehensive Guide to Geospatial Analysis, Machine Learning, and Data Processing in Python - Part 1

Комментарии

  • @AzadRasul1977
    @AzadRasul1977 7 часов назад

    www.udemy.com/course/mastering-django/?referralCode=43DF73452FECC31E90FC

  • @AzadRasul1977
    @AzadRasul1977 7 часов назад

    Deploy Django Project on Render Step 1: Prepare Your Django App for Deployment 1.1 Update settings.py Before deploying, ensure that ALLOWED_HOSTS includes your Render domain: ALLOWED_HOSTS = ['pdf-to-word.onrender.com'] # Domain of your website ________________________________________ 1.2 Configure Static Files In settings.py, add: STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') Then, collect static files by running: python manage.py collectstatic --noinput ________________________________________ 1.3 Configure Database If using SQLite, it works without modification. Step 2: Create requirements.txt Ensure requirements.txt includes the necessary packages for deployment: Django==5.1.5 gunicorn dj-database-url # For handling database connections psycopg2-binary # PostgreSQL adapter whitenoise # Serves static files in production requests # If your app makes HTTP requests pdfplumber # Required for PDF processing pdf2docx # Required for PDF to Word conversion PyMuPDF # PDF processing library pypdfium2 # PDF rendering and manipulation python-docx # Working with .docx files ________________________________________ Step 3: Create a Procfile Create a Procfile in your project root with the following content: web: gunicorn pdf2word.wsgi:application ________________________________________ Step 4: Configure render.yaml Create a render.yaml file to ensure necessary system dependencies are installed: services: - type: web name: pdf2word envVars: - key: DATABASE_URL sync: false buildCommand: | apt-get update && apt-get install -y build-essential cargo pip install -r requirements.txt startCommand: gunicorn pdf2word.wsgi:application Step 5: Commit and Push the Changes: git add . git commit -m "Update render.yaml with correct Gunicorn command" git push origin main # or your respective branch ________________________________________ Step 6: Deploy Your Django App on Render 6.1 Sign Up and Create a Web Service 1. Go to Render and sign up or log in. 2. Click New → Web Service. 3. Connect your GitHub repository (e.g., pdf-to-word-django). ________________________________________ 6.2 Configure Build and Start Commands In Render’s settings: Start Command: $ gunicorn pdf2word.wsgi:application ________________________________________ 2.3 Set Environment Variables Go to Environment Variables in Render and add: SECRET_KEY → your-secret-key-goes-here DEBUG → False ________________________________________ 2.4 Deploy Click Deploy. Then change allowed hosts in settings to the exact name of the domain: ALLOWED_HOSTS = ['pdf-to-word-5p6z.onrender.com']

  • @AzadRasul1977
    @AzadRasul1977 День назад

    www.udemy.com/course/mastering-django/?referralCode=43DF73452FECC31E90FC

  • @AzadRasul1977
    @AzadRasul1977 День назад

    Step 1: Install Git via Conda conda activate dj 1. Install Git by running the following command: conda install -c anaconda git ________________________________________ Step 2: Verify Installation: git --version ________________________________________ Step 3: Configure Git: git config --global user.name "Azad Rasul" git config --global user.email azad977@gmail.com ________________________________________ Step 4: Initialize a Git Repository 1. Navigate to your project folder: cd C:\Users\Azad\pdf2word 2. Initialize a new Git repository: git init ________________________________________ Step 5: Create a .gitignore: echo > .gitignore Then, add the following content: *.pyc __pycache__/ db.sqlite3 .env /media/ /staticfiles/ ________________________________________ Step 6: Add Files to the Repository: git add . ________________________________________ Step 7: Commit the Changes: git commit -m "Initial commit" ________________________________________ Step 8: Push to GitHub, link it and push the changes: git remote add origin github.com/Azad77/pdf-to-word.git git push -u origin main Possible Errors and Solutions: 1. Error: fatal: remote origin already exists. git remote remove origin git remote add origin github.com/Azad77/pdf-to-word.git 2. Error: error: src refspec main does not match any. git branch # Check if you're on the correct branch git push -u origin <your-branch-name> 3. Error: fatal: refusing to merge unrelated histories. git pull origin main --allow-unrelated-histories Resolve any conflicts, commit the changes, and then push again. 4. Error: hint: Updates were rejected because the remote contains work that you do not have locally. git pull origin main # Resolve conflicts if any, then add, commit, and push. 5. Error: error: failed to push some refs to <repository> git pull origin main --allow-unrelated-histories # Resolve conflicts, commit changes, then push.

  • @BordumanWaisi
    @BordumanWaisi День назад

    دەست خۆش کاک دکتور

  • @AzadRasul1977
    @AzadRasul1977 5 дней назад

    www.udemy.com/course/mastering-django/?referralCode=43DF73452FECC31E90FC

  • @AzadRasul1977
    @AzadRasul1977 5 дней назад

    www.udemy.com/course/mastering-django/?referralCode=43DF73452FECC31E90FC

  • @AzadRasul1977
    @AzadRasul1977 5 дней назад

    www.udemy.com/course/mastering-django/?referralCode=43DF73452FECC31E90FC

  • @AzadRasul1977
    @AzadRasul1977 5 дней назад

    www.udemy.com/course/mastering-django/?referralCode=43DF73452FECC31E90FC

  • @AzadRasul1977
    @AzadRasul1977 5 дней назад

    www.udemy.com/course/mastering-django/?referralCode=43DF73452FECC31E90FC

  • @AzadRasul1977
    @AzadRasul1977 5 дней назад

    www.udemy.com/course/mastering-django/?referralCode=43DF73452FECC31E90FC

  • @AzadRasul1977
    @AzadRasul1977 5 дней назад

    www.udemy.com/course/mastering-django/?referralCode=43DF73452FECC31E90FC

  • @AzadRasul1977
    @AzadRasul1977 5 дней назад

    www.udemy.com/course/mastering-django/?referralCode=43DF73452FECC31E90FC

  • @AzadRasul1977
    @AzadRasul1977 5 дней назад

    www.udemy.com/course/mastering-django/?referralCode=43DF73452FECC31E90FC

  • @AzadRasul1977
    @AzadRasul1977 5 дней назад

    www.udemy.com/course/mastering-django/?referralCode=43DF73452FECC31E90FC

  • @AzadRasul1977
    @AzadRasul1977 5 дней назад

    www.udemy.com/course/mastering-django/?referralCode=43DF73452FECC31E90FC

  • @AzadRasul1977
    @AzadRasul1977 5 дней назад

    www.udemy.com/course/mastering-django/?referralCode=43DF73452FECC31E90FC

  • @AzadRasul1977
    @AzadRasul1977 5 дней назад

    www.udemy.com/course/mastering-django/?referralCode=43DF73452FECC31E90FC

  • @AzadRasul1977
    @AzadRasul1977 6 дней назад

    Building a Real-World Snake Game Project ________________________________________ Project Structure snake_game/ ├── manage.py ├── db.sqlite3 ├── snake/ │ ├── __init__.py │ ├── admin.py │ ├── apps.py │ ├── migrations/ │ ├── models.py │ ├── tests.py │ ├── views.py │ ├── urls.py │ └── templates/ │ └── snake/ │ └── game.html │ └── static/ │ └── snake/ │ ├── css/ │ │ └── style.css │ └── js/ │ └── game.js ├── snake_game/ │ ├── __init__.py │ ├── asgi.py │ ├── settings.py │ ├── urls.py │ └── wsgi.py ________________________________________ Step 1: Project Setup 1.1 Create a Django Project django-admin startproject snake_game cd snake_game 1.2 Create a Django App python manage.py startapp snake 1.3 Register the App Add the snake app to the INSTALLED_APPS list in snake_game/settings.py: INSTALLED_APPS = [ ... 'snake', ] And at the end add: import os STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') ________________________________________ Step 2: Frontend Implementation 2.1 Create the Template Inside the snake app, create a folder structure for templates and static files: snake/ ├── templates/ │ └── snake/ │ └── game.html ├── static/ └── snake/ ├── css/ │ └── style.css └── js/ └── game.js Create game.html: {% load static %} <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Hungry Snake Game</title> <link rel="stylesheet" href="{% static 'snake/css/style.css' %}"> </head> <body> <div class="game-container"> <canvas id="gameCanvas" width="500" height="500"></canvas> </div> <script src="{% static 'snake/js/game.js' %}"></script> </body> </html> 2.2 Add CSS Styles Create static/snake/css/style.css to style the game: body { margin: 0; display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #1d3557; } .game-container { position: relative; width: 500px; height: 500px; border: 2px solid #457b9d; background-color: #a8dadc; } 2.3 Add JavaScript Create static/snake/js/game.js for game logic: const canvas = document.getElementById("gameCanvas"); const ctx = canvas.getContext("2d"); const tileSize = 20; const canvasSize = 500; let snake = [{ x: 240, y: 240 }]; let food = getRandomFoodPosition(); let direction = { x: 0, y: -tileSize }; function draw() { ctx.fillStyle = "#1d3557"; ctx.fillRect(0, 0, canvasSize, canvasSize); // Draw the snake ctx.fillStyle = "#e63946"; snake.forEach(segment => { ctx.fillRect(segment.x, segment.y, tileSize, tileSize); }); // Draw the food ctx.fillStyle = "#f1faee"; ctx.fillRect(food.x, food.y, tileSize, tileSize); } function update() { const head = { x: snake[0].x + direction.x, y: snake[0].y + direction.y }; // Check collision with walls if (head.x < 0 || head.x >= canvasSize || head.y < 0 || head.y >= canvasSize) { resetGame(); return; } // Check collision with self if (snake.some(segment => segment.x === head.x && segment.y === head.y)) { resetGame(); return; } snake.unshift(head); if (head.x === food.x && head.y === food.y) { food = getRandomFoodPosition(); } else { snake.pop(); } } function getRandomFoodPosition() { return { x: Math.floor(Math.random() * (canvasSize / tileSize)) * tileSize, y: Math.floor(Math.random() * (canvasSize / tileSize)) * tileSize }; } function resetGame() { snake = [{ x: 240, y: 240 }]; direction = { x: 0, y: -tileSize }; food = getRandomFoodPosition(); } function changeDirection(event) { const keyMap = { ArrowUp: { x: 0, y: -tileSize }, ArrowDown: { x: 0, y: tileSize }, ArrowLeft: { x: -tileSize, y: 0 }, ArrowRight: { x: tileSize, y: 0 } }; const newDirection = keyMap[event.key]; if (newDirection && (newDirection.x !== -direction.x || newDirection.y !== -direction.y)) { direction = newDirection; } } document.addEventListener("keydown", changeDirection); function gameLoop() { update(); draw(); setTimeout(gameLoop, 150); } gameLoop(); ________________________________________ Step 3: Backend Implementation 3.1 Create a View Edit snake/views.py to render the game: from django.shortcuts import render def game(request): return render(request, 'snake/game.html') 3.2 Add URLs Create snake/urls.py: from django.urls import path from . import views urlpatterns = [ path('', views.game, name='game'), ] Update snake_game/urls.py to include the app’s URLs: from django.contrib import admin from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), path('', include('snake.urls')), ] ________________________________________ Step 4: Run the Server 4.1 Collect Static Files python manage.py collectstatic 4.2 Start the Server Run the development server: python manage.py runserver Access your game at 127.0.0.1:8000/.

  • @AzadRasul1977
    @AzadRasul1977 10 дней назад

    Step 1: Define a ListView in views.py Create a view to display the list of questions: from django.views.generic import ListView from .models import Question class QuestionListView(ListView): model = Question # Model to display template_name = 'polls/question_list.html' # HTML file to use context_object_name = 'questions' # Variable name for template ________________________________________ Step 2: Create the Template Create a new HTML file at polls/templates/polls/question_list.html: <h1>Poll Questions</h1> <ul> {% for question in questions %} <li>{{ question.question_text }}</li> {% endfor %} </ul> ________________________________________ Step 3: Add the URL in urls.py Add the view to the URL configuration in polls/urls.py: from django.urls import path from .views import QuestionListView urlpatterns = [ path('questions/', QuestionListView.as_view(), name='question-list'), ] ________________________________________ Step 4: View the List in Browser Run the Django server and visit: 127.0.0.1:8000/polls/questions/ ________________________________________ 4. Displaying a Single Question Using DetailView Step 1: Define a DetailView in views.py from django.views.generic import DetailView from .models import Question class QuestionDetailView(DetailView): model = Question template_name = 'polls/question_detail.html' context_object_name = 'question' ________________________________________ Step 2: Create the Template Create a new file at polls/templates/polls/question_detail.html: <h1>{{ question.question_text }}</h1> <p>Published on: {{ question.pub_date }}</p> ________________________________________ Step 3: Add the URL in urls.py from django.urls import path from .views import QuestionDetailView urlpatterns += [ path('questions/<int:pk>/', QuestionDetailView.as_view(), name='question-detail'), ] ________________________________________ Step 4: View the Details in Browser Visit: 127.0.0.1:8000/polls/questions/1/ ________________________________________

  • @AzadRasul1977
    @AzadRasul1977 10 дней назад

    ________________________________________ 2. Writing the Templates a. index.html (Home Page) {% if latest_question_list %} <ul> {% for question in latest_question_list %} <li><a href="{% url 'detail' question.id %}">{{ question.question_text }}</a></li> {% endfor %} </ul> {% else %} <p>No polls are available.</p> {% endif %} <h2>Latest Questions:</h2> {% for question in latest_question_list %} <p>{{ question.question_text }}</p> {% empty %} <p>No questions available.</p> {% endfor %} b. detail.html (Question Details Page) <h1>{{ question.question_text }}</h1> <ul> {% for choice in question.choice_set.all %} <li>{{ choice.choice_text }}</li> {% endfor %} </ul> ________________________________________ 3. Updating Views to Use Templates from django.shortcuts import get_object_or_404, render from .models import Question def index(request): latest_question_list = Question.objects.order_by('-pub_date')[:5] return render(request, 'polls/index.html', {'latest_question_list': latest_question_list}) def detail(request, question_id): question = get_object_or_404(Question, pk=question_id) return render(request, 'polls/detail.html', {'question': question}) def results(request, question_id): question = get_object_or_404(Question, pk=question_id) return render(request, 'polls/results.html', {'question': question}) def vote(request, question_id): question = get_object_or_404(Question, pk=question_id) # Try to get the selected choice, handle errors if no choice is selected selected_choice = question.choice_set.filter(pk=request.POST.get('choice')).first() if not selected_choice: return render(request, 'polls/detail.html', { 'question': question, 'error_message': "You didn't select a choice." }) # Increment vote and save selected_choice.votes += 1 selected_choice.save() return redirect('polls:results', question_id=question.id) ________________________________________ ________________________________________ 1. Start the Django development server: python manage.py runserver 2. Open your web browser and visit: o 127.0.0.1:8000/polls/ → to see the index page

  • @AzadRasul1977
    @AzadRasul1977 11 дней назад

    1. Define Views in polls/views.py Open the polls/views.py file and add the following functions: from django.http import HttpResponse from .models import Question def index(request): latest_question_list = Question.objects.order_by('-pub_date')[:5] output = ', '.join([q.question_text for q in latest_question_list]) return HttpResponse(output) def detail(request, question_id): return HttpResponse(f"You're looking at question {question_id}.") def results(request, question_id): return HttpResponse(f"You're looking at the results of question {question_id}.") def vote(request, question_id): return HttpResponse(f"You're voting on question {question_id}.") ________________________________________ 2. Link Views to URLs in polls/urls.py Open the polls/urls.py file and add the following code: from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), path('<int:question_id>/', views.detail, name='detail'), path('<int:question_id>/results/', views.results, name='results'), path('<int:question_id>/vote/', views.vote, name='vote'), ] ________________________________________ Step 3: Testing the Views 1. Start the Django development server: python manage.py runserver 2. Open your browser and visit the following URLs: o localhost:8000/polls/ → Opens the index view. o localhost:8000/polls/1/ → Opens the detail view for question 1. o localhost:8000/polls/1/results/ → Opens the results view for question 1. o localhost:8000/polls/1/vote/ → Opens the vote view for question 1. ________________________________________

  • @AzadRasul1977
    @AzadRasul1977 11 дней назад

    Step 1: Creating a Superuser 1. Open your terminal and run: python manage.py createsuperuser 2. Enter the required details when prompted: o Username: Azad o Email: azad977@gmail.com o Password: (Choose a strong password) Once done, you will see: "Superuser created successfully." ________________________________________ Step 2: Accessing the Admin Interface 1. Start the Django development server: python manage.py runserver 2. Open the admin page in your browser: o Go to: 127.0.0.1:8000/admin o Enter your superuser username and password to log in. 1. Open the admin.py file in your app folder (e.g., polls): 2. Add the following code to register the Question model: from django.contrib import admin from .models import Question admin.site.register(Question) ________________________________________

  • @AzadRasul1977
    @AzadRasul1977 11 дней назад

    Steps to Define Models 1. Open the polls/models.py file. 2. Add the following code: from django.db import models class Question(models.Model): question_text = models.CharField(max_length=200) # Question text pub_date = models.DateTimeField('date published') # Date and time of publication class Choice(models.Model): question = models.ForeignKey(Question, on_delete=models.CASCADE) # Links to Question choice_text = models.CharField(max_length=200) # Choice text votes = models.IntegerField(default=0) # Vote count ________________________________________ Steps to Create Migrations • Open the terminal and run: python manage.py makemigrations polls • Apply the migrations to update the database: python manage.py migrate ________________________________________ Steps to Add Methods 1. Open polls/models.py and update the models: import datetime from django.db import models from django.utils import timezone class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') def __str__(self): return self.question_text def was_published_recently(self): now = timezone.now() return now - datetime.timedelta(days=1) <= self.pub_date <= now was_published_recently.admin_order_field = 'pub_date' was_published_recently.boolean = True was_published_recently.short_description = 'Published recently?' class Choice(models.Model): question = models.ForeignKey(Question, on_delete=models.CASCADE) choice_text = models.CharField(max_length=200) votes = models.IntegerField(default=0) def __str__(self): return self.choice_text Steps to Apply Changes 1. Run: python manage.py makemigrations polls 2. Apply the migrations: python manage.py migrate ________________________________________ Steps to Register Models 1. Open polls/admin.py and add: from django.contrib import admin from .models import Question, Choice class QuestionAdmin(admin.ModelAdmin): list_display = ('question_text', 'pub_date', 'was_published_recently') admin.site.register(Question, QuestionAdmin) admin.site.register(Choice) ________________________________________ Steps to Test 1. Run the development server: python manage.py runserver 2. Open your web browser and go to the Django admin panel at: 127.0.0.1:8000/admin/ ________________________________________

  • @AzadRasul1977
    @AzadRasul1977 11 дней назад

    📌 Commands used in this tutorial: python manage.py makemigrations polls python manage.py migrate python manage.py runserver

  • @AzadRasul1977
    @AzadRasul1977 12 дней назад

    Used codes: conda activate dj cd C:/Users/Azad/PollProject1 python manage.py migrate python manage.py dbshell • View all tables: .tables • View table structure (e.g., auth_user): PRAGMA table_info(auth_user); • View data from a table: SELECT * FROM auth_user; • Exit the database shell: .exit

  • @AzadRasul1977
    @AzadRasul1977 12 дней назад

    1: from django.http import HttpResponse def index(request): return HttpResponse("Welcome to the Polls Project! Ready to cast your vote?") 2: from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), # Connects index view to root URL ] 3: from django.contrib import admin from django.urls import path, include from django.http import HttpResponseRedirect urlpatterns = [ path('admin/', admin.site.urls), path('polls/', include('polls.urls')), # Includes polls app URLs path('', lambda request: HttpResponseRedirect('/polls')), ] 4: conda activate dj cd C:\Users\Azad\PollProject python manage.py runserver localhost:8000/polls/

  • @AzadRasul1977
    @AzadRasul1977 12 дней назад

    conda activate dj cd C:\Users\Azad\PollProject1 python manage.py startapp polls Go to your project folder and find the settings.py file 1. Look for the INSTALLED_APPS list in the file. 2. Add your app’s name, like this: python INSTALLED_APPS = [ ..., 'polls', ] Step 3: Save the File

  • @AzadRasul1977
    @AzadRasul1977 13 дней назад

    conda activate dj django-admin startproject PollProject cd PollProject python manage.py runserver Open your browser and go to 127.0.0.1:8000/

  • @AzadRasul1977
    @AzadRasul1977 13 дней назад

    Open the Anaconda Prompt or cmd as Administrator: conda create -n dj Django conda activate dj python --version pip --version python -m django --version

  • @AzadRasul1977
    @AzadRasul1977 16 дней назад

    🎓 For a more comprehensive learning experience, check out my Udemy course: AI for Geospatial Analysis. This course dives deeper into AI and machine learning applications for geospatial data analysis.: www.udemy.com/course/ai-for-geospatial-analysis/?referralCode=756925DC2106C34C6DBE

  • @AzadRasul1977
    @AzadRasul1977 16 дней назад

    The code for this tutorial is available on my blog: smartrs.hashnode.dev/step-by-step-guide-to-gpu-setup-for-machine-learning-deep-learning

  • @roob.i.ginning50
    @roob.i.ginning50 18 дней назад

    Is there a research paper on this code? I really need it for my study thank you very much sir

  • @jonnysua2165
    @jonnysua2165 27 дней назад

    Hi Dr Azad, did you manually select known areas of wheat and barley for the test data ?

    • @AzadRasul1977
      @AzadRasul1977 25 дней назад

      Yes, we manually selected known areas of wheat and barley for the test data. However, if you have ground truth data available, you can upload it to Google Earth Engine (GEE) and use it for training and validation. This approach allows you to leverage your existing ground truth data effectively in the analysis.

  • @yangyang3425
    @yangyang3425 3 месяца назад

    Hi Dr. Azad Rasul, thank you very much for the great tutorial! For Model 2 which has one more layer than Model 1, I wonder why its accuracy is lower than Model 1?

    • @AzadRasul1977
      @AzadRasul1977 3 месяца назад

      The reason Model 2, which has an additional layer compared to Model 1, might show a lower accuracy could be due to several factors related to overfitting, underfitting, or optimization challenges.

    • @yangyang3425
      @yangyang3425 2 месяца назад

      @@AzadRasul1977 Thank you.

  • @AzadRasul1977
    @AzadRasul1977 5 месяцев назад

    www.udemy.com/course/programming-for-scientific-research/?referralCode=6B1CDFAB54BF528832BF

  • @AzadRasul1977
    @AzadRasul1977 5 месяцев назад

    www.udemy.com/course/ai-for-geospatial-analysis/?referralCode=756925DC2106C34C6DBE

  • @mustafayousifmohammed5393
    @mustafayousifmohammed5393 5 месяцев назад

    ❤❤❤❤❤دەستت خۆشبێت کاک دکتۆر، کاک دکتۆر هەتا چەند Ai جێگای متمانەیە؟

    • @AzadRasul1977
      @AzadRasul1977 5 месяцев назад

      سلاو مامۆستا. کۆمەڵێک میتۆدی زانستی جیاوازن و بەکارهێنان و ئەکوڕەسی (متمانەی خیاوازیان هەیە)

    • @mustafayousifmohammed5393
      @mustafayousifmohammed5393 5 месяцев назад

      @@AzadRasul1977 ببوورە کاک دکتۆر دەتوانین Ai وەک سەرچاوە بەکاربهێنین

  • @AzadRasul1977
    @AzadRasul1977 5 месяцев назад

    www.udemy.com/course/python-for-researchers/?referralCode=886CCF5C552567F1C4E7

  • @AzadRasul1977
    @AzadRasul1977 5 месяцев назад

    www.udemy.com/course/r-for-research/?referralCode=B6DCFDE343F0592EA61A

  • @AzadRasul1977
    @AzadRasul1977 5 месяцев назад

    www.udemy.com/course/ai-for-geospatial-analysis/?referralCode=756925DC2106C34C6DBE

  • @mustafayousifmohammed5393
    @mustafayousifmohammed5393 5 месяцев назад

    ❤❤❤❤❤❤❤ دەستت خۆشبێت کاک دکتۆر گوڵ

    • @AzadRasul1977
      @AzadRasul1977 5 месяцев назад

      دەستی ئێوەش خۆش م گیان

  • @AzadRasul1977
    @AzadRasul1977 5 месяцев назад

    The link to the code on my GitHub repository is: github.com/Azad77/Detecting-and-Counting-Plants-Using-Computer-Vision-Techniques

  • @mustafayousifmohammed5393
    @mustafayousifmohammed5393 5 месяцев назад

    دەستت خۆشبێت کاک دکتۆر❤❤❤❤❤❤

    • @AzadRasul1977
      @AzadRasul1977 5 месяцев назад

      زۆر سوپاس برا دەستی ئێوەش خۆش

  • @mustafayousifmohammed5393
    @mustafayousifmohammed5393 5 месяцев назад

    ❤❤❤❤❤❤دەستت خۆشبێت کاک دکتۆر

    • @AzadRasul1977
      @AzadRasul1977 5 месяцев назад

      دەست خۆش بۆ هاندانی ئێوە

  • @AzadRasul1977
    @AzadRasul1977 5 месяцев назад

    The link to the code on my GitHub Repo: github.com/Azad77/Modeling-and-Predicting-Crop-Health-Using-RS-Data-and-Neural-Networks/tree/main

  • @raghebkamal1100
    @raghebkamal1100 5 месяцев назад

    Wonderful Dr. Azad keep it going.🙏

    • @AzadRasul1977
      @AzadRasul1977 5 месяцев назад

      Thank you for your positive comment!

  • @AzadRasul1977
    @AzadRasul1977 5 месяцев назад

    A link to the code is: github.com/Azad77/crop-data-analysis/blob/main/Crop%20Data%20Analysis.ipynb

  • @zerihunchere1036
    @zerihunchere1036 5 месяцев назад

    Thank you!

  • @mediaasaad1271
    @mediaasaad1271 6 месяцев назад

    Dastt xosh dktor