Django Bootcamp🐍 With Atom Editor📝 - Part One

Introduction

 
In this article, we will start to learn web development with a Django-Python Web Development Framework with both very basic and deep concepts of web applications. This will help to create a professional and static web application which can be considered as a fully-functioning app. We have seen the basic development of the Django Environment using the command prompt. It's time to learn the best and latest technologies so we will go through Atom Editor and Full-Stack Development. 
 

What is the Web?

 
Let me explain this with an example.
 
Step 1
 
You start at home: www.abc.com
 
Step 2
 
IP address: This URL consumes an IP address: 123.123.456.56. This IP address refers the packet to Internet Service Providers.
 
Django Bootcamp🐍 With Atom Editor 
 
Step 3
 
Packets are sent to the ISP: This packet transfers through the copper wire, optical fiber or a satellite to the appropriate ISP. They check if the requested IP address is valid with the home page. It matches with the user requests and sends back to the user. 
 
Step 4
 
ISP sends back in form of instructions and is reassembled according to the IP address. 
 
It is on the Home IP address.
 
Django Bootcamp🐍 With Atom Editor 
 
All of these moves happens at close to the speed of light, so it happens very fast.
 
Let's discuss the website components.
 
There are two main website components:  Front-End and Back-End.
 

Front-End

 
The Front-End is what you see as a user on the website.
 

Back-End

 
The Back-End is the technology used to actually decide what to show you on the Front-End. 
 
Front-End requires mostly three key technologies,
  • HTML
  • CSS
  • Javascript
You also know jQuery and Bootstrap, but these both can be built with using these three core technologies only.
 
HTML
HTML is HyperText Markup Languange. 
HTML is the structure of the web page,  you can view it by right-clicking on the web page "View Page Source." 
 
CSS
 
CSS is Cascading Style Sheet.
CSS provides styling features like colors, borders, fonts, etc. to the web page contents.  
CSS is not mandatory but all websites have it.
 
Javascript
 
Javascript allows you to add interactivity to the website, including programming logic.
To make a static website Javascript plays a very crucial role.
 
Back-End requires major three components,
  • The Language: Python
  • The Framework: Django
  • The Database: SQLite
The Language : Python:
Python is a very simple, open-source and dynamically typed language with many libraries. For Machine Learning, data visualization, and gaming, there are different libraries available. 
 
The Framework: Django:
Django is fast, secure and very powerful for Web Development in Python. It is used by many popular websites such as Pinterest, Instagram, NASA, Spotify, etc. 
 
The Database: SQLite:
SQLite comes with Dango and Python, making it an easy choice. Today, this database engine is high in demand because it is self-contained, full-featured and small and fast.
 
Here, we will start with the latest editor for the Django Web Development Series, where we can find the in-built library features and easy to understand coding of the project. There are other options to go with Visual Studio and PyCharm too. The main purpose to choose this editor is that we will start from scratch: Full-Stack Development in Django. 
 
Let's learn the basics of this editor with its installation and the few HTML tags and attributes in detail. 
 

Install the IDE Atom Text Editor

 
In this editor there are in-built features available for HTML, JavaScript, CSS, and Node.js. Apart from these, it is an open-source text editor. 
 
Download the Atom Editor.
 
Django Bootcamp🐍 With Atom Editor 
 
Why we are using this IDE for the Django further Web Development
 
There are major features it has which will be very useful to the developers for Web Application Development. Here, we can find out the major specs  from the official website: https://atom.io/
 
Django Bootcamp🐍 With Atom Editor 
 
There are different themes as well as it has the main feature where we can develop a web application with the latest framework, Electron. This is a completely open-source editor for CSS, Javascript and Bootstrap development with Django. 
 
Django Bootcamp🐍 With Atom Editor 
 
Moreover, It is cross-platform: that means it can be compatible with Windows, Mac and Linux Operating Systems, It has a file system browser and a Find and Replace feature for files for your project.  
 
Atom has a built-in Package manager which is very useful for automation, AI and future development.  
 
For the in-built project file we will start with these following steps:
 
Step 1
 
Download Atom Editor
 
Step 2
 
Choose Open a Project
 
Django Bootcamp🐍 With Atom Editor 
 
In Atom you can open an individual file or a folder as a project.
 
In my previous article, I had already generated an environment and a project folder.
 
We will open that folder here and create a new HTML file as below.
 
Here, we will see the basic important tags and attributes of HTML.
 
In Part 1 we will see the paragraph and heading tags, list tags,a nd discuss the attributes with <a>-anchor and <img> tags.
 

PART 1

 
Step 1
 
Create an HTML file within the folder.
 
Right-click on the appropriate location and select New File. 
 
Django Bootcamp🐍 With Atom Editor 
 
Step 2
 
Give the name to the file with html extension. 
 
Django Bootcamp🐍 With Atom Editor 
 
Step 3
 
basics.html created, the best thing we can see here is that by just typing 'ht' we can get the whole basic format for our app/webpage, after clicking enter.
 
Check the below images. 
 
Django Bootcamp🐍 With Atom Editor 
 
Step 4
 
Here, we will update the title tag only.
 
By right-clicking on basics.html >> select copy full path.
 
Django Bootcamp🐍 With Atom Editor 
 
Step 5
 
Paste this path to the address bar in the Google Chrome web browser.
 
Django Bootcamp🐍 With Atom Editor 
 
Here, we can see the difference between these two images. 
 
Example 
  1. <!DOCTYPE html>  
  2. <html lang="en" dir="ltr">  
  3.     <head>  
  4.         <meta charset="utf-8">  
  5.             <title>This is a title!</title>  
  6.         </head>  
  7.         <body>  
  8.             <h1>Welcome to my website!</h1>  
  9.             <h4>I'm exited to eventually learn Django!</h4>  
  10.             <p>  
  11.                 <a href="https://www.djangoproject.com/">Here is the link to the official Django Website...</a>  
  12.             </p>  
  13.             <p>  
  14.                 <img src="python-logo.png" alt="python">  
  15.                 </p>  
  16.                 <p>Here is the three resons why Django is Cool!    
  17.   
  18.                     <ol>  
  19.                         <li>Fast</li>  
  20.                         <li>Secure</li>  
  21.                         <li>Scalable</li>  
  22.                     </ol>  
  23.                 </p>  
  24.                 <p>  
  25.                     <h2>This picture has link:</h2>  
  26.                 </p>  
  27.                 <p>  
  28.                     <img src="django.png" alt="django">  
  29.                     </p>  
  30.                 </body>  
  31.             </html>    
  32.      
After running this code we can see how different tags and attributes are used in this code. 
 
Django Bootcamp🐍 With Atom Editor 
 
That's all about the HTML Part 1 with its tags and attributes.
 
Next, we will see in Part 2 with Tables and Forms. 
 

Summary

 
In this article, we have discussed the Django Web Application development with the Full-Stack Concept. Here, we took a glace at HTML for the basic coding of the web page/app. We will continue with the second part of HTML and further development in upcoming articles. You can also see the attachment of this code file.


Similar Articles