<?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>Forem: Py-Contributors</title>
    <description>The latest articles on Forem by Py-Contributors (@py-contributors).</description>
    <link>https://forem.com/py-contributors</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%2Forganization%2Fprofile_image%2F2911%2F794fd0d8-bc9f-4c3e-85f1-26c96bcb5247.png</url>
      <title>Forem: Py-Contributors</title>
      <link>https://forem.com/py-contributors</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/py-contributors"/>
    <language>en</language>
    <item>
      <title>How I am managing ton of Issue and Pull request message with Discord-Webhooks?</title>
      <dc:creator>Deepak Raj</dc:creator>
      <pubDate>Fri, 25 Sep 2020 19:29:08 +0000</pubDate>
      <link>https://forem.com/py-contributors/how-i-am-managing-ton-of-issue-and-pull-request-message-with-discord-webhooks-4n5f</link>
      <guid>https://forem.com/py-contributors/how-i-am-managing-ton-of-issue-and-pull-request-message-with-discord-webhooks-4n5f</guid>
      <description>&lt;p&gt;Hey Maintainers, &lt;/p&gt;

&lt;p&gt;HacktoberFest is next week and you are getting a lot of issues and Pull request and finding a way to receive every update for that to manage your code.&lt;/p&gt;

&lt;p&gt;it may sometimes hard to find issues and Pull request. what if you receive push-notification on your Pc/Mobile.&lt;/p&gt;

&lt;p&gt;Have you ever used webhooks or Discord? With the help of Discord webhooks, you can get your GitHub Repository notification directly into your Discord Channel.&lt;/p&gt;

&lt;h3&gt;
  
  
  Here I will tell you the step by step guide for that
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Create a person discord server and create a channel for your Github Repository where you will get notifications.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click on edit channel and click on &lt;code&gt;integrations&lt;/code&gt; and make a webhook &amp;amp; copy URL for that&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fla2mgmjzulig2o9co2su.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fla2mgmjzulig2o9co2su.png" alt="Alt Text" width="800" height="319"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Open your GitHub repository and click on &lt;code&gt;settings/webhooks&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Paste your WEBHOOK_URl there in &lt;code&gt;payload_url&lt;/code&gt; and add &lt;code&gt;/github&lt;/code&gt; in the last of URL&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example- &lt;br&gt;
&lt;a href="https://discordapp.com/api/webhooks/758896663891935243/ek_EDuBu-w04zy7Ym1GbUWGDACR5xBKvcts6eCYCfFVibY1F34ZQlw_fqiGAxIBb3MyF/github" rel="noopener noreferrer"&gt;https://discordapp.com/api/webhooks/758896663891935243/ek_EDuBu-w04zy7Ym1GbUWGDACR5xBKvcts6eCYCfFVibY1F34ZQlw_fqiGAxIBb3MyF/github&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;select content type to application/json.
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fs2qtx2p42iygh5609f3q.png" alt="Alt Text" width="800" height="356"&gt;
&lt;/li&gt;
&lt;li&gt;Click to send me everything and add webhooks.&lt;/li&gt;
&lt;li&gt;Click on a star to test notification in your Discord-server.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can Like this Post if It helps you somehow.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>hacktoberfest</category>
      <category>github</category>
      <category>git</category>
    </item>
    <item>
      <title>Deploy Your First Django App With Heroku</title>
      <dc:creator>Deepak Raj</dc:creator>
      <pubDate>Tue, 18 Aug 2020 14:02:17 +0000</pubDate>
      <link>https://forem.com/py-contributors/deploy-your-first-django-app-with-heroku-359m</link>
      <guid>https://forem.com/py-contributors/deploy-your-first-django-app-with-heroku-359m</guid>
      <description>&lt;p&gt;This article was originally published on &lt;a href="http://codeperfectplus.herokuapp.com/deploy-your-first-django-app-with-heroku" rel="noopener noreferrer"&gt;CodePerfectPlus.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Heroku is a cloud platform as a service supporting several programming languages. They support several programming languages like Python, Javascript, Java, Php, Go, Scala and Ruby.&lt;br&gt;
Heroku offer a free plan, it's great to start learning and for the host demo application.&lt;/p&gt;

&lt;h3&gt;
  
  
  Install Heroku CLI Tool
&lt;/h3&gt;

&lt;p&gt;Create an account on &lt;a href="https://www.heroku.com/" rel="noopener noreferrer"&gt;Heroku&lt;/a&gt; and then install the Heroku CLI tool from &lt;a href="https://devcenter.heroku.com/articles/heroku-cli" rel="noopener noreferrer"&gt;here&lt;/a&gt;. It's Command line tool to deploy and manage your Django application.&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;heroku login
heroku: Press any key to open up the browser to login or q to &lt;span class="nb"&gt;exit&lt;/span&gt;: 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h3&gt;
  
  
  Prepare the Django Application
&lt;/h3&gt;

&lt;p&gt;In this tutorial, I will deploy my existing project of GitHub API. It's GitHub API project developed 6 months ago and it's also available on &lt;a href="https://github.com/codePerfectPlus/Deploy-Django-Applications-on-Heroku" rel="noopener noreferrer"&gt;Github&lt;/a&gt; and you can clone the repository and try it by yourself.&lt;/p&gt;

&lt;p&gt;I will be using Heroku CLI with Git. Your application will be saved in a remote git repository in the Heroku Cloud.&lt;/p&gt;

&lt;p&gt;Before starting You Have to add some file to your projects.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Add a  &lt;strong&gt;Procfile&lt;/strong&gt;  in the project root;&lt;/li&gt;
&lt;li&gt;  Add  &lt;strong&gt;Gunicorn&lt;/strong&gt;  to  &lt;strong&gt;virtualenv&lt;/strong&gt;;&lt;/li&gt;
&lt;li&gt;  A  &lt;strong&gt;runtime.txt&lt;/strong&gt;  to specify the correct Python version in the project root;&lt;/li&gt;
&lt;li&gt;  Configure  &lt;strong&gt;whitenoise&lt;/strong&gt;  to serve static files.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  The Procfile
&lt;/h3&gt;

&lt;p&gt;Create a file named &lt;strong&gt;Procfile&lt;/strong&gt; in the project root with the following content:&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;web: gunicorn base.wsgi &lt;span class="nt"&gt;--log-file&lt;/span&gt; -
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;Note: change &lt;strong&gt;base&lt;/strong&gt; with the name of your Django project.&lt;/p&gt;

&lt;h3&gt;
  
  
  Gunicorn
&lt;/h3&gt;

&lt;p&gt;install Gunicorn in VirtualEnv by command:&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;pipenv &lt;span class="nb"&gt;install &lt;/span&gt;gunicorn
&lt;span class="nv"&gt;$ &lt;/span&gt;pipenv &lt;span class="nb"&gt;install &lt;/span&gt;whitenoise
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h3&gt;
  
  
  The runtime.txt
&lt;/h3&gt;

&lt;p&gt;create a filename &lt;code&gt;runtime.txt&lt;/code&gt;&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python-3.7.6
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h3&gt;
  
  
  Set Up The Static Assets
&lt;/h3&gt;

&lt;p&gt;Configure the STATIC-related parameters on  &lt;strong&gt;settings.py&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;Add whienoise to settings.py then in the last of MIDDLEWARE List.&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="s2"&gt;"whitenoise.middleware.WhiteNoiseMiddleware"&lt;/span&gt;,
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
  
  
  Deployment
&lt;/h2&gt;

&lt;p&gt;Almost all configurations are completed.&lt;/p&gt;

&lt;p&gt;clone the Repository here if you haven't downloaded from upper link.&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/codePerfectPlus/Deploy-Django-Applications-on-Heroku
&lt;span class="nb"&gt;cd &lt;/span&gt;Deploy-Django-Applications-on-Heroku
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h4&gt;
  
  
  Login to Heroku CLI
&lt;/h4&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;heroku login
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h4&gt;
  
  
  Create a Heroku App
&lt;/h4&gt;

&lt;p&gt;This will be your app name. appname.herokuapp.com.&lt;br&gt;
choose clearly the name for the app.&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;heroku create gitapi-project
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h4&gt;
  
  
  Output
&lt;/h4&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;Creating ⬢ gitapi-project... &lt;span class="k"&gt;done
&lt;/span&gt;https://gitapi-project.herokuapp.com/https://git.heroku.com/gitapi-project.git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;You can simply run &lt;code&gt;heroku create&lt;/code&gt; then Heroku will find the app name by itself.&lt;/p&gt;

&lt;p&gt;Now login to &lt;a href="https://id.heroku.com/login" rel="noopener noreferrer"&gt;Heroku Dashboard&lt;/a&gt; and access your recently created app:&lt;/p&gt;

&lt;h4&gt;
  
  
  Click on Deploy
&lt;/h4&gt;

&lt;p&gt;Run the following command for the deployment of Django App.&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;heroku config:set &lt;span class="nv"&gt;DEBUG_COLLECTSTATIC&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;1

&lt;span class="nv"&gt;$ &lt;/span&gt;git add &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;span class="nv"&gt;$ &lt;/span&gt;git commit &lt;span class="nt"&gt;-am&lt;/span&gt; &lt;span class="s2"&gt;"make it better"&lt;/span&gt;
&lt;span class="nv"&gt;$ &lt;/span&gt;git push heroku master
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;Your Application in Live. Enjoy Your Day, Don't forget to comment.&lt;/p&gt;

&lt;h3&gt;
  
  
  More Articles by Author
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="http://codeperfectplus.herokuapp.com/deploy-your-first-django-app-with-heroku" rel="noopener noreferrer"&gt;Deploy Your First Django App With Heroku&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://codeperfectplus.herokuapp.com/neural-networks-in-machine-learning-perceptrons" rel="noopener noreferrer"&gt;Single-layer Neural Networks in Machine Learning (Perceptrons)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://codeperfectplus.herokuapp.com/5-tips-for-computer-programming-beginners" rel="noopener noreferrer"&gt;5 Tips for Computer Programming Beginners&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://codeperfectplus.herokuapp.com/what-is-git-and-gitHub" rel="noopener noreferrer"&gt;What Is Git and GitHub?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://codeperfectplus.herokuapp.com/what-is-simple-linear-regression" rel="noopener noreferrer"&gt;What is Simple Linear Regression?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://codeperfectplus.herokuapp.com/introduction-to-machine-learning-and-its-type" rel="noopener noreferrer"&gt;Introduction to Machine Learning and it's Type.&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://codeperfectplus.herokuapp.com/difference-between-machine-learning-and-AI" rel="noopener noreferrer"&gt;Difference Between Machine Learning and Artificial Intelligence&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Join for Weekly Updates.
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://chat.whatsapp.com/H8lJop5N3AI0BgY9CbKze8" rel="noopener noreferrer"&gt;Whatapp Group&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://t.me/codeperfectplus" rel="noopener noreferrer"&gt;Telegram Channel&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>webdev</category>
      <category>python</category>
      <category>django</category>
      <category>html</category>
    </item>
  </channel>
</rss>
