Posts

Django 3 : Configuring the application

Louis SanchezAugust 15th 2021, 12:10
To configure our project or our application, we need to edit the settings.py file in the project folder. This file contains variables. These variables are the settings that Django reads when initializing the web app. The following are a few of these variables: Step 1 : DEBUG: This parameter must...
1286

Django 3 : Creating a Django Project

Louis SanchezAugust 15th 2021, 12:11
Starting your project with Django Before you start using Django, you need to create an environment for your applications. We will create a Django project. This project will then contain our applications. Step 1 : To create the project of our application, we need to run the following command using...
1275

Django 3 : Installing Django 3

Louis SanchezAugust 15th 2021, 12:04
What is Django? Django was born in 2003 in a press agency of Lawrence, Kansas. It is a web framework that uses Python to create websites. Its goal is to write very fast dynamic websites. In 2005, the agency decided to publish the Django source code in the BSD license....
1616

Python Variables

Louis SanchezAugust 15th 2021, 12:12
Variables in Python can reference values of different data types such as strings, integers, floating point values, Booleans, and different data types and data structures. Python, in contrast to statically typed languages such as Java or C++, doesn't require you to pre-declare a variable's data type. It determines the type...
1439

Python : Writing and Running Simple Scripts

Louis SanchezAugust 15th 2021, 12:11
Python allows you to run your instructions from a saved file. A file containing Python instructions is called a module. A script is a module that can be run. By convention, Python scripts should have the file extension .py. The filename should be a valid filename, as defined by your...
1392

Python : Working with the Python Interactive Shell

Louis SanchezAugust 15th 2021, 12:11
We are going to be writing our first program through the Python interactive shell. Before we begin, ensure that you have Python installed on your machine. Checking our Python Installation Step 1 : Open the terminal Step 2 : Type in the command python3 and press Enter. This should open...
1606

How To Install Python 3 on Ubuntu 20.04

Louis SanchezAugust 15th 2021, 5:36
Step 1 : To see which version of Python 3 you have installed, open a command prompt and run python3 --version Step 2 : To use a more current Python, we recommend using the deadsnakes PPA to install Python 3.9 sudo apt-get install software-properties-common sudo add-apt-repository ppa:deadsnakes/ppa Step 3 :...
3419

How to do CRUD operations in MongoDB (Ubuntu 20.04)

Louis SanchezAugust 15th 2021, 8:24
CRUD operations create, read, update, and delete documents. Follow these steps to store and retrieve data with MongoDB Step 1 : Open a shell to interact with the Mongo server mongo Step 2 : To create and start using a new database, type use dbname. Since schemas in MongoDB are...
2297

How to Install and Configure MongoDB on Ubuntu 20.04

Louis SanchezAugust 15th 2021, 8:24
Use this tutorial to install and configure MongoDB, which is a not only SQL (NoSQL) document storage server. You will need access to a root account or an account with sudo privileges. To get the latest version of MongoDB, we need to add the MongoDB source to Ubuntu installation sources:...
1871

How to Secure Ubuntu server 20.04

Louis SanchezAugust 15th 2021, 3:55
Linux is considered to be a well secured operating system. It is quite easy to maintain the security and protect our systems from unauthorized access by following a few simple norms or rules. You will need access to a root or account with sudo privileges. These steps are intended for...
16123