<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Python on Ahmad Muhammad</title><link>https://ahmadmuhammad.co.za/tags/python/</link><description>Recent content in Python on Ahmad Muhammad</description><generator>Hugo</generator><language>en-za</language><lastBuildDate>Thu, 11 Feb 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://ahmadmuhammad.co.za/tags/python/index.xml" rel="self" type="application/rss+xml"/><item><title>Adding a contact form to a Django site</title><link>https://ahmadmuhammad.co.za/posts/adding-a-contact-form-to-a-django-site/</link><pubDate>Thu, 11 Feb 2021 00:00:00 +0000</pubDate><guid>https://ahmadmuhammad.co.za/posts/adding-a-contact-form-to-a-django-site/</guid><description>&lt;p&gt;So, you&amp;rsquo;ve got a site set up with Django and you&amp;rsquo;ve got everything running. One small problem: There&amp;rsquo;s no way for users to contact you. Having this functionality is essential because sometimes users may have some questions about your site and/or any services you&amp;rsquo;re offering.&lt;/p&gt;&#10;&lt;p&gt;Django doesn&amp;rsquo;t come with built-in contact forms, however creating your own contact form is relatively easy. Let&amp;rsquo;s see how.&lt;/p&gt;&#10;&lt;p&gt;I&amp;rsquo;m not going to go too in-depth into creating a new Django project, since this article assumes you&amp;rsquo;ve already got a site up and running. However, I will quickly run through the steps again for the beginners.&lt;/p&gt;</description></item><item><title>To comment or to not comment?</title><link>https://ahmadmuhammad.co.za/posts/to-comment-or-to-not-comment/</link><pubDate>Mon, 18 Jan 2021 00:00:00 +0000</pubDate><guid>https://ahmadmuhammad.co.za/posts/to-comment-or-to-not-comment/</guid><description>&lt;p&gt;If you&amp;rsquo;re a newbie in the world of programming, you may have heard of comments. Most tutorials aimed towards beginners mention comments, but it can be confusing to figure out exactly &lt;em&gt;where&lt;/em&gt; to use them.&lt;/p&gt;&#10;&lt;h2 id="what-are-comments"&gt;&#10; What are comments?&#10; &lt;a class="heading-link" href="#what-are-comments"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;Comments are little snippets of information that the programmer can add to their code. Comments are used to make the code easier for humans to understand and are essential when working in teams where there are multiple people working on the same piece of code.&#10;Every programming language has a syntax for adding comments, and any text that goes inside of the comment is ignored by the compiler, allowing you to write whatever you want without breaking your code.&lt;/p&gt;</description></item><item><title>Revisiting Django and Flask</title><link>https://ahmadmuhammad.co.za/posts/revisiting-django-and-flask/</link><pubDate>Sat, 05 Dec 2020 00:00:00 +0000</pubDate><guid>https://ahmadmuhammad.co.za/posts/revisiting-django-and-flask/</guid><description>&lt;p&gt;A little over two and a half years ago, I decided to dabble in the world of Python web-apps by following the book &amp;ldquo;Django By Example&amp;rdquo;. Having done Python courses before, I knew my basic way around the language but I had never put together a proper application in any way, shape or form. &lt;/p&gt;&#10;&lt;p&gt;Starting Django from the book was a leap for me. I had heard of Django before, I knew it was a framework that let you make web-apps, but I had no idea how any of it worked. My lack of experience with proper Python apps didn&amp;rsquo;t help my position either. For a large chunk of the project, I was just following the book and not quite understanding what was happening.&lt;/p&gt;</description></item></channel></rss>