<?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: Manish Yadav</title>
    <description>The latest articles on DEV Community by Manish Yadav (@devmanish1290).</description>
    <link>https://dev.to/devmanish1290</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%2F356587%2F8d511eed-6450-4d07-b9aa-e1caa8642c6d.jpg</url>
      <title>DEV Community: Manish Yadav</title>
      <link>https://dev.to/devmanish1290</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/devmanish1290"/>
    <language>en</language>
    <item>
      <title>A simple API using Django,Postgresql and Celery</title>
      <dc:creator>Manish Yadav</dc:creator>
      <pubDate>Thu, 14 May 2020 10:17:21 +0000</pubDate>
      <link>https://dev.to/devmanish1290/a-simple-api-using-django-postgresql-and-celery-4fi4</link>
      <guid>https://dev.to/devmanish1290/a-simple-api-using-django-postgresql-and-celery-4fi4</guid>
      <description>&lt;p&gt;Day 1&lt;br&gt;
A Django rest framework API for Air pollution data of India. Air pollution data resource is from &lt;a href="https://data.gov.in/"&gt;Govt. Of India Open Data Source&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;A simple django project with some models and restfull api support. I am using Celery(A python lib.) to fetch data using celery tasks scheduler. I will store all data to Postgresql database.&lt;/p&gt;

&lt;p&gt;All code will be available on Github. I will create a link in my next post.&lt;/p&gt;

&lt;p&gt;For now i will simply start with project installations.&lt;/p&gt;

&lt;p&gt;I am using windows system for this project. We need to install Python latest version from &lt;a href="https://www.python.org/downloads/windows/"&gt;Download Python&lt;/a&gt;. After Installing Python successfully, we will install virtualenv library, virtualenv is a tool to create isolated Python environments. virtualenv creates a folder which contains all the necessary executable to use the packages that a Python project would need. It can be used standalone, in place of Pipenv. Install virtualenv via pip, since i am using windows system, so every command will run inside command prompt:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;strong&gt;pip install virtualenv&lt;/strong&gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;After installing virtualenv we will create a virtual environment by using:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;strong&gt;mkdir test_django&lt;/strong&gt; to create a dir for project(Choose any name.)&lt;br&gt;
&lt;strong&gt;cd test_django&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;virtualenv env_name&lt;/strong&gt; to create a virtualenv.&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;After creating virtualenv, check that environment is activated.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;(env_name)C:\test_django&amp;gt;&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For deactivating environment use deactivate command and for re activate:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;cd test_django&lt;/code&gt;&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;&lt;code&gt;Scripts\activate and hit enter&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;First we need to install Django, which we will do by using Pyhton Pip. I am using Django version 2.2 and Django Rest Framework, you can use any latest version.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;(env_name)C:\test_django&amp;gt; pip install django==2.2&lt;/code&gt;&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;&lt;code&gt;(env_name)C:\test_django&amp;gt; pip install djangorestframework&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We are almost set to start the project. I will create another post to start project.&lt;/p&gt;

&lt;p&gt;Please let me know if anyone is facing any issue, i will keep updating post here.&lt;/p&gt;

&lt;p&gt;Thanks and hope you enjoy the article.&lt;/p&gt;

&lt;p&gt;Cheers!!!&lt;/p&gt;

</description>
      <category>python</category>
      <category>django</category>
      <category>postgres</category>
    </item>
  </channel>
</rss>
