<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Dev Duniya</title>
    <description>The latest articles on DEV Community by Dev Duniya (@devduniya).</description>
    <link>https://dev.to/devduniya</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F834616%2Faecc768e-3c89-4c79-bff5-6ec63293b4c7.jpg</url>
      <title>DEV Community: Dev Duniya</title>
      <link>https://dev.to/devduniya</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/devduniya"/>
    <language>en</language>
    <item>
      <title>How to Send Email in Django | Django Email Project – DevDuniya</title>
      <dc:creator>Dev Duniya</dc:creator>
      <pubDate>Thu, 24 Mar 2022 09:28:57 +0000</pubDate>
      <link>https://dev.to/devduniya/how-to-send-email-in-django-django-email-project-devduniya-46ok</link>
      <guid>https://dev.to/devduniya/how-to-send-email-in-django-django-email-project-devduniya-46ok</guid>
      <description>&lt;p&gt;In this article, we are going to see How to Send Email in Django. Sending an email is quite simple in Django and so, We are going to create such kind of Django Project.&lt;br&gt;
You will have to do the first complete setup for this project then follow the steps given below. To follow along with this tutorial, you need a Gmail account, prior knowledge of Django is required, and Basic HTML. If you don’t have a Gmail account then follow this link to create a new Gmail account or google account.&lt;/p&gt;

&lt;p&gt;Before starting the project, Download python programming from their official website and install it in your system. Once python is installed then you can simply check its version by command prompt. Enter the below command in CMD.&lt;/p&gt;

&lt;p&gt;python --version&lt;br&gt;
After downloading the python programming, Now install Django with the help of Command Prompt. Enter the command given below:-&lt;/p&gt;

&lt;p&gt;pip install django&lt;br&gt;
python -m django --version&lt;br&gt;
Table of Contents  Hide &lt;br&gt;
1 Step:-1&lt;br&gt;
2 Step:-2&lt;br&gt;
3 Step:-3&lt;br&gt;
4 Step:-4&lt;br&gt;
5 Step:-5&lt;br&gt;
6 Step:-6&lt;br&gt;
7 Conclusion:&lt;br&gt;
7.1 Follow me to receive more useful content:&lt;/p&gt;

&lt;h2&gt;
  
  
  Step:-1
&lt;/h2&gt;

&lt;p&gt;Now we will first create a project then we will create an app for that project. Do follow the below steps :&lt;/p&gt;

&lt;p&gt;django-admin startproject mailproject&lt;br&gt;
cd mailproject&lt;br&gt;
python manage.py startapp mailapp&lt;br&gt;
python manage.py migrate&lt;br&gt;
python manage.py runserver&lt;br&gt;
After these steps, Now your Django server has been started.&lt;/p&gt;

&lt;p&gt;Now you can navigate to &lt;a href="http://127.0.0.1:8000/"&gt;http://127.0.0.1:8000/&lt;/a&gt; using your browser to see the default Django homepage.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step:-2
&lt;/h2&gt;

&lt;p&gt;Add your app in the settings.py file.&lt;/p&gt;

&lt;h1&gt;
  
  
  Application definition
&lt;/h1&gt;

&lt;p&gt;INSTALLED_APPS = [&lt;br&gt;
    'django.contrib.admin',&lt;br&gt;
    'django.contrib.auth',&lt;br&gt;
    'django.contrib.contenttypes',&lt;br&gt;
    'django.contrib.sessions',&lt;br&gt;
    'django.contrib.messages',&lt;br&gt;
    'django.contrib.staticfiles',&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#add app
'mailapp'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;]&lt;/p&gt;

&lt;h2&gt;
  
  
  Step:-3
&lt;/h2&gt;

&lt;p&gt;Now in the same file settings.py, below all code add some SMTP configuration code.&lt;/p&gt;

&lt;p&gt;EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'&lt;br&gt;
EMAIL_HOST = "smtp.gmail.com"&lt;br&gt;
EMAIL_PORT = 587&lt;br&gt;
EMAIL_HOST_USER = ""  #add here your actual mail id&lt;br&gt;
EMAIL_HOST_PASSWORD = "" #password of your mail id that you have added above&lt;br&gt;
EMAIL_USE_TLS= True&lt;br&gt;
Step:-4 Now add some code into your views.py file of mailapp folder. So that it will look like this:&lt;/p&gt;

&lt;p&gt;from django.shortcuts import render&lt;br&gt;
from django.core.mail import send_mail&lt;/p&gt;

&lt;h1&gt;
  
  
  Create your views here.
&lt;/h1&gt;

&lt;p&gt;def mailfunction(request):&lt;br&gt;
    send_mail(&lt;br&gt;
        'Title of mail',&lt;br&gt;
        'Messagee',&lt;br&gt;
        '&lt;a href="mailto:from@gmail.com"&gt;from@gmail.com&lt;/a&gt;',&lt;br&gt;
        ['&lt;a href="mailto:to@gmail.ccom"&gt;to@gmail.ccom&lt;/a&gt;'],&lt;br&gt;
        fail_silently=False,&lt;br&gt;
    )&lt;br&gt;
    return render(request, 'index.html')&lt;/p&gt;

&lt;h2&gt;
  
  
  Step:-4
&lt;/h2&gt;

&lt;p&gt;Now make a folder in mailapp with ‘templates’ name, then create a file name index.html. Past the below code in index.html.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;a href="https://devduniya.com/send-email-with-django-framework/"&gt;Read Continue&amp;gt;&amp;gt;&amp;gt;&lt;/a&gt;
&lt;/h2&gt;

&lt;p&gt;Thankyou&lt;/p&gt;

</description>
      <category>django</category>
      <category>python</category>
      <category>programming</category>
    </item>
    <item>
      <title>Top 10 Python Projects Ideas for Beginners in 2022 - DevDuniya</title>
      <dc:creator>Dev Duniya</dc:creator>
      <pubDate>Thu, 24 Mar 2022 09:25:13 +0000</pubDate>
      <link>https://dev.to/devduniya/top-10-python-projects-ideas-for-beginners-in-2022-devduniya-4hnf</link>
      <guid>https://dev.to/devduniya/top-10-python-projects-ideas-for-beginners-in-2022-devduniya-4hnf</guid>
      <description>&lt;p&gt;Python Projects are essential for beginners who want to be Master in Python Programming and its industrial application. As we know Python Programming is a widely used, high-level, and object-oriented programming language with dynamic semantics. Python was first released on February 20, 1991, and now it is the second-most used language on GitHub. Python Programming is one of the most popular programming languages among developers and it is a leading programming language in data analysis, scientific computing, machine learning, AI, and backend web development. Python Programming is used by many big tech companies because it is so easy to learn, simple in structure, and easy to maintain. If you want to learn python programming with basic then you will have to do Simple Python Projects also so that you can become a master in python programming. If you will do Simple Python Projects then you can understand how Python Programming words. Your small queries will also be resolved and you will learn a lot from projects.&lt;br&gt;
In this article, we have listed the Top 10 Easy Python Projects Ideas that beginners can try in 2022. These Projects ideas are simple and easy and Best for Beginners.&lt;/p&gt;

&lt;h2&gt;
  
  
  Simple Python Projects for Beginners in 2022
&lt;/h2&gt;

&lt;h2&gt;
  
  
  No.1:- Mad Libs Generator
&lt;/h2&gt;

&lt;p&gt;One of the best ideas to start your journey in software development is to start working on the Mad Lab generator. This is the perfect project for beginners who start their journey in python programming. Mad Libs generator Project teaches to manipulate user-inserted data as a series of inputs that will be considered as a Mad Lib. After entering all inputs data, the application will take the data and arrange the inputs into a story template form and input can be anything a noun or a pronoun, etc.&lt;/p&gt;

&lt;h2&gt;
  
  
  No.2:- Password Generator
&lt;/h2&gt;

&lt;p&gt;This project will help you to learn how to build a random password generator with python programming. They will collect data from users and then generate a collection of passwords with random characters. This project will help you to create a strong password with high security&lt;/p&gt;

&lt;h2&gt;
  
  
  No.3:- Number Guessing
&lt;/h2&gt;

&lt;p&gt;This is one of the simple Python projects for beginners yet exiting one and you can call it a mini-game. It is a program in which a computer chooses random numbers within a range. This program will generate a random number from 1 to 10, 1 to 100, or any range that is specified. If the user chooses the right number then his score will increase and if the user chooses the wrong number then his score constantly keeps falling and they are promoted with more hints to make it easier for them.&lt;/p&gt;

&lt;h2&gt;
  
  
  No.4:- Student Management System Project
&lt;/h2&gt;

&lt;p&gt;Student Management System Project is like a register where you can add students, delete students, edit any students and you can update the information of any student. &lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;a href="https://devduniya.com/simple-python-projects-for-beginners/"&gt;Read Continue&amp;gt;&amp;gt;&amp;gt;&lt;/a&gt;
&lt;/h2&gt;

&lt;p&gt;Thankyou&lt;/p&gt;

</description>
      <category>python</category>
      <category>programming</category>
      <category>tutorial</category>
      <category>machinelearning</category>
    </item>
    <item>
      <title>10 Best Python Libraries for Machine Learning You Should Know in 2022 - DevDuniya</title>
      <dc:creator>Dev Duniya</dc:creator>
      <pubDate>Thu, 24 Mar 2022 09:20:27 +0000</pubDate>
      <link>https://dev.to/devduniya/10-best-python-libraries-for-machine-learning-you-should-know-in-2022-devduniya-pjk</link>
      <guid>https://dev.to/devduniya/10-best-python-libraries-for-machine-learning-you-should-know-in-2022-devduniya-pjk</guid>
      <description>&lt;p&gt;Python is one of the most popular programming language for Machine Learning Projects. And on the other side, Machine Learning is a leading field in the 21st century. To grasp machine learning or Artificial Intelligence, you need to know complete python programming. Python Programming is used in Machine Learning, Deep Learning and Artificial Intelligence is becoming popular day by day. Python programming is a simple and easy programming language.&lt;/p&gt;

&lt;p&gt;In this article, We are going to introduce the Top 10 Most Popular Python Libraries for Machine Learning. We have listed the best Python libraries for machine learning for beginners. If you want to be a master of machine learning then you will have to learn these python libraries, so let’s start.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Pandas
&lt;/h2&gt;

&lt;p&gt;Pandas is mainly used for data analysis, which is one of the most popular Python libraries. Pandas library is developed for extracting and organizing data and it also offers built-in functions and methods to the group, combine, and filter datasets. Data can be prepared, loaded, manipulate and analyze with the panda’s library. Pandas library has powerful data frames, flexible data handling, and low-level python libraries. Some of the features of Pandas Library are:- Aggregations, Visualizations, Concatenations, Iteration and Sorting, etc.&lt;br&gt;
Developed by Wes Mckinney&lt;br&gt;
Launched in – 2008&lt;br&gt;
Written in Python, C, and Cython&lt;/p&gt;

&lt;h2&gt;
  
  
  2. NumPy
&lt;/h2&gt;

&lt;p&gt;NumPy stands for Numerical Python used to process the python NumPy array and support n-dimensional arrays. NumPy Library is used to handle linear algebra and Fourier series transformations. NumPy is used by Tensorflow and other libraries for their internal calculations. NumPy has many built-in functions for numerical routines that make it so popular. Some of the features of Numpy Libraries are:- Easy to use and interact, Enhances performance, Has a large community of programmers and Manages garbage collection, etc.&lt;br&gt;
Developed by Travis Oliphant&lt;br&gt;
Launched in – 2005&lt;br&gt;
Written in Python, C, and Cython&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Scikit-Learn
&lt;/h2&gt;

&lt;p&gt;Scikit Learning is one of the best Python machine Learning Libraries for building Machine Learning Algorithms. It was first introduced as a third-party extension to the Scipy Library. Scikit Learn Library can be used to build machine learning models because it contains a large number of tools for predictive modeling and analysis. Some of the features of Scikit Learning Libraries are:- contains massive potential algorithms, fast community support, etc.&lt;br&gt;
Developed by David Cournapeau&lt;br&gt;
Launched in – 2007&lt;br&gt;
Written in– Python, C++, and Cyhton&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Matplotlib
&lt;/h2&gt;

&lt;p&gt;Matplotlib is one of the best python libraries used for data visualization. It is used to draw patter or graphs because it offers lots of features and tools controlling line style, font properties, and many more. It is one of the top machine learning libraries to explore. You can create Bar Charts, Error Charts, Histograms and scatter plots, etc. The main use of Matplotlib is Data Visualization and plotting.&lt;br&gt;
Developed by– Michael Droettboom et al&lt;br&gt;
Launched in – 2003&lt;br&gt;
Written in– Python&lt;/p&gt;

&lt;h2&gt;
  
  
  5. SciPy
&lt;/h2&gt;

&lt;p&gt;SciPy stands for Scientific Python which is an open-source python library. SciPy is used in Scientific computing and mathematical functions derived from NumPy. There are many features of the SciPy Library, as it-is-easy to use the library, fast computational power, and improved computations. SciPy Python Library is used for Scientific computation and technical computing. Some Features of SciPy are Fast Fourier transform, image optimization, linear algebra, etc.&lt;br&gt;
Developed by– Community library project&lt;br&gt;
Launched in – 2001&lt;br&gt;
Written in– Python, C++, C, and Fortran&lt;/p&gt;

&lt;h2&gt;
  
  
  6. TensorFlow
&lt;/h2&gt;

&lt;p&gt;TensorFlow is one of the most popular Machine Learning Libraries based on neural networks. TensorFlow was created by the Google Brain research team in 2015 to use in google. But after some time it started to gain a lot of popularity among big companies and now it is one of the top python machine learning libraries. TensorFlow is an&lt;br&gt;
open-source library used for numerical computation and it runs and trains neural networks. TensorFlow uses a multidimensional array known as ten&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;a href="https://devduniya.com/best-python-libraries-for-machine-learning/"&gt;Read Continue&amp;gt;&amp;gt;&amp;gt;&lt;/a&gt;
&lt;/h2&gt;

&lt;p&gt;Thankyou&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>python</category>
      <category>deeplearning</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
