BeePlugin by Andolasoft – Dynamic Discount Plugin for WooCommerce Store now Available

Hello, 

We couldn’t be more happier to welcome BeePlugin into the Andolasoft family.

Andolasoft, with a global presence of over 14 years, is introducing ‘Beeplugin’ – a plugin development brand. Hereby we announce the launching of the plugin called “Custom WooCommerce Discount For User”.

Our User Discount WooCommerce Plugin allows you to offer targeted discounts to specific customers or user groups based on their purchase history, cart value, and other criteria.

User Discount WooCommerce Plugin

We understand that E-commerce store owners need an easy solution that is reliable, flexible, and scalable. Some essential features of the plugin include promotional discounts, Product category discount, quantity discount, bulk discount, percentage off on total order etc.

Take a Tour How the Plugin Handles Discount Rules

Set up multiple discount rules for an individual product effortlessly.

>>Select a Customer from the customer list and apply a 15% discount on multiple products or set a specific discount % on individual products.


Encourage customers to sign up to know their discount eligibility. 

>>After users log in to the account they can see the discount % off on products like 12% off on X product and 20% off on Y product

Never miss an update from us. Join 10,000+ marketers and leaders.

Apply bulk discounts to selected categories & subcategories with a single click.

>> Select a customer and set a discount like 10% discount on a selected category or subcategory. All the products under the respective category will display 10% off the regular price

You can also set different discount levels for different user roles

>Select multiple customers and assign them to a group like a Wholesaler, Retailer, or VIP User. Assign a discount of 20% to Retailer, 15% to VIP User, and 30% off to Wholesaler on a selected category, subcategory, or product.

Conclusion

We are proud to be a part of the development community that brings such a powerful and versatile tool that can adapt to the evolving needs of the WooCommerce industry.

Now, our Custom WooCommerce Discount For Users is available to be integrated into your online store built on the WooCommerce platform. You can download from https://wordpress.org/plugins/user-custom-discount . For more information about the Discount Plugin, visit BeePlugin

Everything You Need To Know About WordPress Firewall Security

Website security basically refers to the measures taken to protect a website from potential security threats, such as hacking, data theft, or malware infections. Website security is crucial for protecting sensitive information and ensuring that a website remains accessible to users. The goal of website security is to ensure the confidentiality, integrity, and availability of the website and its data.

Some common security measures of a WordPress website are,

  • Using strong passwords and implementing two-factor authentication
  • Keeping the website and its components (e.g., themes, plugins) up to date
  • Using a reputable web host with built-in security features
  • Implementing an SSL/TLS certificate for encryption
  • Installing a security plugin, such as a firewall or antivirus software
  • Regularly backing up the website’s data
  • Monitoring the website for suspicious activity
  • Educating users on safe browsing practices.

A firewall is a security tool that monitors and controls incoming and outgoing network traffic based on predetermined security rules. In the context of WordPress website security, a WordPress firewall acts as a barrier between your website and potential security threats, such as hacking attempts, malware infections, or data theft.

Never miss an update from us. Join 10,000+ marketers and leaders.

Here are some of the benefits of using a WordPress firewall for your website security:

  • Protects against hacking attempts: Firewall helps to prevent unauthorized access to your website by blocking malicious traffic & suspicious IP addresses.
  • Prevents malware infections: A WordPress firewall can detect and block malware-infected requests before they reach your website.
  • Increases website speed: By blocking malicious traffic, a WordPress firewall can improve the overall speed and performance of your website.
  • Enhances security: A WordPress firewall provides an additional layer of security to complement other security measures, such as SSL certificates, anti-virus software, and regular backups.
  • Simplifies security management: Many WordPress firewalls come with user-friendly interfaces that make it easy for non-technical users to manage security settings.

What is WordPress Firewalls?

A WordPress firewall is a security tool that helps protect a WordPress website from various online threats, such as hacking attempts, malware, and malicious traffic. It acts as a barrier between the website and the internet, analyzing incoming traffic and blocking any requests that may be harmful to the site.

The firewall helps to prevent unauthorized access, data theft, and other security breaches, making the site more secure and reliable. Some popular WordPress firewalls include Sucuri, Wordfence, and All In One WP Security and Firewall.

Why use WordPress Firewall

Using a WordPress firewall in a website provides several benefits, like;

  • Improved security: A firewall helps to protect the website from various online security threats, such as hacking attempts, malware, and malicious traffic. It acts as an extra layer of security, filtering out harmful traffic and blocking potential attacks before they can cause damage.
  • Protection against attacks: A firewall helps to prevent unauthorized access, data theft, and other security breaches, making the site more secure and reliable.
  • Real-time monitoring: A firewall provides real-time monitoring of incoming traffic and alerts administrators if any suspicious activity is detected.
  • Enhanced website performance: By blocking malicious traffic and reducing the load on the server, a firewall can help improve the overall performance and speed of the website.
  • Easy to install and use: Many WordPress firewall plugins are easy to install and configure, making it simple for website owners to implement this extra layer of security without needing technical expertise.

Therefore, using firewall is a smart and effective way to secure a WordPress website and protect it from potential security threats.

Best WordPress Firewalls

There are many options available for WordPress firewalls, and the best one for a specific website will depend on its unique needs. Here are some popular and well-regarded WordPress firewalls below,

  • Sucuri: A comprehensive security solution that offers a firewall, malware scanning, and website monitoring.
  • Wordfence: A security plugin that includes a firewall, malware scanning, and real-time traffic monitoring.
  • All In One WP Security and Firewall: A security plugin that provides a range of security features, including a firewall, malware scanning, and website optimization.
  • Jetpack Security: A security solution that offers a firewall, automatic backups, and real-time security scanning.
  • IThemes Security: A security plugin that provides a firewall, two-factor authentication, and malware scanning.

These are just a few examples of the many WordPress firewalls available. It’s important to research and compare different options to find the one that best fits your site’s needs and budget.

How to Install a WordPress Firewall on Website

Installing a WordPress firewall on a website typically involves the following steps:

Choose a firewall plugin:

Choose a WordPress firewall plugin that fits the needs of your website. Some popular options include Sucuri, Wordfence, and All in One WP Security and Firewall.

Install the plugin:

Login to the WordPress admin dashboard and go to the “Plugins” section. Click “Add New” and search for the firewall plugin you’ve chosen. Install and activate the plugin.

Configure the plugin:

Once the plugin is installed and activated, navigate to its settings page to configure it according to your preferences. Some plugins may offer default settings that you can use or adjust as needed.

Test the firewall:

After configuring the firewall, test it to make sure it’s working correctly. You can do this by visiting your website and checking for any errors or issues.

Regularly update the plugin:

To ensure the firewall remains effective, it’s important to regularly update the plugin to the latest version. This will help to address any known security vulnerabilities and improve the overall security of your website.

Are you looking for a WordPress Developer

Contact Us

These are the general steps for installing a WordPress firewall. However, the exact steps may vary depending on the specific plugin you choose, so it’s recommended to consult the plugin’s documentation for detailed instructions.

Conclusion

WordPress firewall security is a crucial aspect of maintaining the security of your website. By using a combination of security plugins, server-side security measures, and best practices for website management, you can significantly reduce the risk of your site being hacked or compromised.

Regularly updating your WordPress software, plugins, and themes, and backing up your website regularly can also help ensure that your site remains secure and protected from potential threats.

Security must be taken seriously: a breached website can lead to sensitive data loss, reputational harm, and costly losses.

How To Migrate Your WordPress Website Manually

Migrating a WordPress website manually can seem daunting, but with the right steps and preparation, it can be a relatively straightforward process. Here in this article I will walk you through the process of manually migrating your WordPress site, including how to backup your current site, install a new version of WordPress, import your content, update URLs and file paths, test your new site, and finally go live.

Whether you’re moving to a new hosting provider or simply want to change the domain of your website, this guide will provide the information you need to successfully migrate your site.

Keep in mind that the process can be complex and time-consuming, so it’s always best to consult with an expert if you’re not sure about how to proceed.

Manually WordPress website Migrating steps –

Migrating a WordPress website manually involves several steps, including:

1. Backing up your current site:

This includes creating a full backup of your site’s files, as well as a database export. Backing up your current website is an essential step in the process of manually migrating a WordPress website. Here are the steps to create a full backup of your site:

  1. Database Backup: Using a plugin like “Duplicator” or phpMyAdmin, export a copy of your database. This will save all of your posts, pages, comments, and settings.
  2. File Backup: Use an FTP client like FileZilla to download a copy of all the files from your website. This includes all of your themes, plugins, images, and other media.
  3. Store the Backup: Store the backups in a safe place, like an external hard drive or cloud storage service.

It’s important to regularly backup your site to have a recent copy to restore if something goes wrong during the migration process. Once you have created a backup of your website, you can then proceed to the next step, which is installing a new version of WordPress on your new server or hosting account.

Note: You also can use various backup plugins for WordPress to automate the backup process

2. Installing a new version of WordPress:

Installing a new version of WordPress is the next step after you have backed up your current website. Download and install the latest version of WordPress on your new server or hosting account. Here are the steps to install a new version of WordPress:

  1. Download WordPress: Go to the WordPress.org website and download the latest version of WordPress.
  2. Upload WordPress: Use an FTP client like FileZilla to upload the WordPress files to your new server or hosting account.
  3. Create a Database: Create a new database on your new server or hosting account. Make sure to note the database name, username, and password, as you will need them during the installation process.
  4. Run the Installation: Go to the URL of your new server or hosting account and run the WordPress installation process. This will involve entering the information for your new database, such as the name, username, and password.
  5. Complete the Installation: Follow the prompts to complete the installation process, including setting up your site title, creating a username and password, and selecting a theme.

Once the installation is complete, you can proceed to the next step, which is importing your content into the new site.

It’s important to note that, before installing the new version of WordPress, you must check the server requirements and also the compatibility of the theme and plugins you’re going to use with the latest version of WordPress.

3. Importing your content:

Importing your content is the next step after installing a new version of WordPress. Here are the steps to import your content:

  1. Install the Import/Export Plugin- Go to the WordPress plugin repository and install an import/export plugin such as “All-in-One WP Migration” or “Duplicator”.
  2. Import the Database: Using the plugin, import the database export file that you created earlier in the process. This will import all of your posts, pages, comments, and settings into your new site.
  3. Import Media Files: Use the plugin to import the media files from your file backup. This will include all of your images, videos, and other media.
  4. Check your content: Once the import process is complete, check your new site to make sure that all of your content has been imported correctly. You should also check that all of your links are working properly.
  5. Update Permalinks: Go to the permalink settings page and update the permalinks structure.

It’s important to note that, depending on the size of your website, the import process may take some time. Also, some plugins can have limitations in importing large files, in that case, you may need to split the database into smaller chunks and import them one by one.

Once your content has been imported, you can proceed to the next step, which is updating URLs and file paths.

4. Updating URLs and file paths:

Update any URLs and file paths that have changed, such as when moving from a development domain to a live domain.

Updating URLs and file paths is an important step in the process of manually migrating a WordPress site. This step ensures that all of your links and media files are working properly on your new site. Here are the steps to update URLs and file paths:

  1. Update the URLs: Go to the general settings page in your WordPress dashboard and update the site URL and home URL to the new URL of your site.
  2. Update the file paths: If your file paths have changed, you will need to update them in the database. You can use a plugin such as “Better Search Replace” to do this.
  3. Check your links: After updating the URLs and file paths, check your site to ensure that all of your links and media files are working properly.
  4. Update hard coded links: If you have any hard coded links in your theme or plugin files, you will need to update them manually.
  5. Update internal links: Go through your website and update any internal links that may have changed as a result of the migration.

It’s important to note that, Updating the URLs and file paths can be a tedious task, so it’s essential to double-check everything to avoid any broken links. A broken link can harm the user experience and your SEO ranking.

Once you have updated the URLs and file paths, you can then proceed to the next step which is testing your new site to ensure that everything is working properly.

5. Testing your new site:

Test your new site to ensure that all of your content has been transferred correctly, and that all of your links are working properly.

Testing your new site is an important step in the process of manually migrating a WordPress site. This step ensures that everything is working properly on your new site before you make it live. Here are the steps to test your new site:

  1. Test all the links: Go through your site and test all of the links to ensure that they are working properly.
  2. Test forms: Test all the forms on your site, such as contact forms and registration forms, to ensure that they are submitting and sending properly.
  3. Test media: Check that all of your media, such as images and videos, are displaying correctly.
  4. Test e-commerce functionality: If you have an e-commerce site, test the checkout and payment process to ensure that everything is working correctly.
  5. Test on different devices: Test your site on different devices, such as desktops, laptops, tablets, and smartphones, to ensure that it is responsive and working correctly on all devices.
  6. Test on different browsers: Test your site on different web browsers, such as Chrome, Firefox, Safari, and Edge, to ensure that it is working correctly on all browsers.

It’s important to note that, testing your new site thoroughly is crucial before you make it live, as any issues found after going live can be harmful to your users and your business.

Once you have thoroughly tested your new site and are satisfied that everything is working properly, you can then proceed to the final step, which is going live.

6. Going live:

Once you are satisfied that your new site is working as expected, you can update your DNS settings and make your new site live.

Going live is the final step in the process of manually migrating a WordPress site. This step makes your new site live and accessible to the public. Here are the steps to go live:

  1. Update DNS settings: Update the DNS settings of your domain to point to the new server or hosting account where your new site is located.
  2. Update the CDN: If you’re using a Content Delivery Network (CDN), make sure to update the CDN settings to point to your new site’s IP address.
  3. Set up redirects: Set up redirects from your old site to your new site, to ensure that any incoming traffic to your old site is redirected to your new site.
  4. Monitor your site: Monitor your site’s performance and uptime after going live, to ensure that everything is working as expected.
  5. Update Google Analytics: Update the tracking code of your Google Analytics account with the new site’s tracking code
  6. Notify your visitors: Inform your visitors that the site has been moved and provide them with the new site’s URL

It’s important to note that, going live is a critical step, so make sure to double-check everything before making the switch. It’s also recommended to schedule the migration during a low traffic time to minimize the impact on your visitors.

By following these steps, you can ensure that your site migration is successful, and your new site is up and running smoothly for your visitors.

It’s important to note that this process can be complex and time-consuming, and it’s always recommended to consult with an expert if you’re not sure about how to proceed.

Conclusion:

Manually migrating a WordPress website can be a complex process, but with the right steps and preparation, it can be done successfully. The key to a successful migration is to create a full backup of your site, including both files and database export. Additionally, it’s important to install the latest version of WordPress, import your content, update URLs and file paths, test your new site, and finally go live.

It’s important to note that migrating a site can be time-consuming and may require some technical expertise, so it’s always recommended to consult with an expert if you’re not sure about how to proceed. Here is the quick recap,

  1. Backup your current site.
  2. Install the latest version of WordPress.
  3. Import your content.
  4. Update URLs and file paths.
  5. Test your new site.
  6. Go live.

By following these steps, you can ensure that your migration goes smoothly and your site is up and running on your new server or hosting account in no time. Andolasoft has experienced and skillful experts for consultation. So feel free to communicate with us and schedule a free consultation now.

How to Choose Best Mobile Game Development Company

With the rapid growth in the use of smartphones, the mobile market is shooting up. Many companies are coming up with new ideas to develop gaming mobile applications in android and iOS. So companies are searching for a well-experienced app development company to convert their ideas into an engaging game app to blast in the market.

I understand, you have awesome ideas to develop mobile games but don’t know how to make them successful.

In this article, I will share the best tips to select the right mobile game app development company and the list of top mobile app development companies.

Before that let’s have a quick look at the below information,

Number of smartphone users on a global basis –

Smartphones Users In million Global(Source – mordorintelligence.com)

Gaming market growth by regions –

Global gaming market Gaming Market(Source – mordorintelligence.com)

Worldwide consumers spending on games –

World wide mobile game consumers(Source- sea.mashable.com)

Weekly mobile games downloads by regions –

(Source – sea.mashable.com)Weekly Mobile Game Download(Source – sea.mashable.com)

Here are the tips to choose the right mobile game app development company,

1. Experienced Company with a dedicated mobile app developer

It’s always important to consider the industry experience of a company’s in-game mobile app development. Developing innovative, engaging, and fun games is not a small task for mobile app developers. Technology expertise and creative thinking are much needed for the desired output. One experienced company with dedicated mobile app developers can deliver quality solutions on time. Also, you need to check and consider the market reputation and customer reviews of that company.

2. Mobile Game Development Portfolio

Before going for consultation or hiring a mobile app development company you need to check the services they are offering and what they have done in the near past on game mobile app development.

Typically, a good game development company offers a wide range of services for android, iOS, and hybrid platforms. They must be familiar with developing various types of games like playing, adventure, family, puzzle games, action educational games, and many more.

Andolasoft has developed a Christmas tree puzzle game by our android developers. Your kids would like it for sure!

3. Comprehensive Mobile App Development Process

A smooth and comprehensive development process is another point of consideration when choosing the right game mobile app development company. You need to check each and every step of your development and app developers must include you in every stage so that your idea can be implemented in the right way. The app development company or the developer must be comfortable discussing each and every step of your app development from scratch to the app launch.

4. Quick Turnaround and Development Cost

We understood every good thing needs time to shape up but mobile app development should be a faster and quick turnaround to avoid market competition. The faster you complete and launch the app in the market the more there is a chance of generating more revenue. So you should discuss the same at the beginning and they should commit to going with a fast turnaround, without compromising on quality.

 Andolasoft is a leading web and mobile app development company offering custom app development services at a cost-effective price. It has long experience in developing and delivering world-class mobile application development solutions that empower your business, and enhance your business growth. Its dedicated mobile app developers are familiar with developing mobile apps using AI and ML technologies. They develop user-friendly and custom mobile applications on iOS and Android platforms and also have expertise in developing cross-platform mobile applications in platforms like Flutter, Xamarin, PhoneGap, etc.

Andolasoft has developed so many gaming apps and the Christmas tree puzzle is one of them

Conclusion:

Mobile games have higher market value but the development is a little challenging. The game industry has changed a lot to bring innovative, engaging, and unique games to the market to generate more revenue. So developing a game mobile application needs unique and high-tech skills to develop the app according to the market demand and satisfy the customers. At Andolasoft we have highly skilled dedicated mobile app developers to develop your game mobile application in different categories. Hire Us now

How NodeJS Is Better Than JavaScript

Both JavaScript and NodeJS are the most popular programming languages in the tech world. JavaScript has long been the language of choice for front-end developers because it’s so simple.

However, due to its versatility, NodeJS is starting to become a popular choice for back-end programming. NodeJS offers a completely different experience than traditional JavaScript development.

Let’s take a closer look at the key features and differences between JavaScript VS NodeJS programming languages.

As per the stack overflow reports JavaScript is one of the most commonly used programming languages and NodeJS become the sixth most popular language.

Programming Language(Source: https://insights.stackoverflow.com/survey/2021#key-territories-country)

What is JavaScript?

JavaScript is a simple object-oriented programming language for creating interactive HTML pages. JavaScript is also widely used in the development of games and mobile applications. The program can only be executed in an Internet browser because it is interpreted as scripting. To run the code outside the browser, we can use NodeJS.

What is NodeJS?

NodeJS is an open-source and cross-platform JavaScript runtime environment that allows JavaScript to be run on the server side. It has lots of modules that are mostly used for web development. NodeJS also allows JavaScript code to run outside the browser.

So, what is the difference between these two?

The below Infographic will let you know the differences and benefits.

JavaScript VS NodeJS Which One Is Best From Other

Our Products
orangescrum
Wakeupsales

We transform your ideas into engaging Web and Mobile Apps

andolasoft

Conclusion

JavaScript is the most popular a widely-used programming language utilized by nearly every online application developer. NodeJS is a JavaScript library extension, but it includes certain undefined utilities, such as non-blocking operating system operation, which is often critical for meeting company objectives.

Being a developer, you have to take the right decision, depending on your requirement and scenarios. It is always great to take the decision at the beginning and get clarity on this comparison, JavaScript vs. NodeJS, before working on your project because you can still change your mind and make more informed decisions. Otherwise, switching from one language to another in the middle of your development project can be a headache.

If you are still confused about selecting the programming language then feel free to discuss it with us. We have experts to guide you on the right path and help you in your application development.

Django Workflow and Architecture

What is Django?

Django is a free and open-source web application framework written in Python. A framework is nothing over a group of modules that create development easier. They’re sorted along, and permit you to make applications or websites from associated existing supplies, rather than from scratch.

When you are building a website, you mostly would like the same set of components: how to handle user authentication (signing up, signing in, sign language out), a management panel for your website, forms, how to transfer files, etc.

Frameworks exist to save lots of you from having to reinvent the wheel and to assist alleviate a number of the overhead once you’re building a replacement website and the Django framework is one of all them.

The official project website describes Django as “a high-level Python net framework that encourages fast development and clean, pragmatic style. It takes care of a lot of effort of net development, thus you’ll be able to target writing your app with no need to reinvent the wheel. It’s free and open supply.”

Django offers an enormous assortment of modules that you’ll be able to use on your own. Primarily, frameworks exist to save lots of developers tons of wasted time and headaches and Django isn’t any totally different.

Django Architecture

Django follows the MVT framework for architecture.

  • M stands for Model
  • V stands for View
  • T stands for Template

MVT is generally very similar to that MVC which is a Model, View, and Controller. The distinction between MVC and MVT here is that Django itself will do the work done by the controller half within the MVC design. Django will do this work of the controller by victimization templates. Precisely, the template file may be a mixture of hypertext markup language half and Django example Language conjointly referred to as DTL.

DijangoBenefits of Django Architecture

The Django Framework is predicated on this design and it really communicates between these 3 elements without having to put in writing complicated code. That’s why Django is gaining quality.

This design of Django has numerous blessings like:

1. Rapid Development:

Django design that separates in different components makes it easy for multiple developers to work on different aspects of the same application simultaneously. That’s additionally one among the options of Django.

2. Loosely Coupled:

Django has totally different elements that need one another at bound elements of the application, at each instant, that will increase the safety of the general website. Because the model file can currently solely save on our server instead of saving on the webpage.

3. Ease of Modification:

This can be a crucial fact of development as there is a unit of totally different elements in Django design. If there’s a modification in numerous elements, we tend not to modify it in alternative elements. This can be really one of the special options of Django, as here it provides us a way with more ability of our website than alternative frameworks.

4. Security:

When building high-end internet applications, security becomes a really crucial facet to reflect on. Django understands this concern and provides its best defender to avoid wasting your efforts. Using click-jacking, cross-site scripting, and SQL injections Django builds a robust wall for the application’s safety. User authentication is additionally a crucial feature to securely manage user accounts and passwords that Django provides.

5. Scalable:

Scalability can be understood as an ability of an application to work well when the size or volume of the platform increases. Django works effortlessly during this issue. Websites created with Django have the capability to handle multiple users at one time. Some well-liked websites victimization Django embody Spotify, Netflix, YouTube, Mozilla, Quora, etc.

Creating a New Project in Django

To start a new Django project, run the command below:

[code language=”css”]
django-admin startproject myproject
[/code]

After we run the command above, it will generate the base folder structure for a Django project.

Right now, our myproject directory looks like this:

[code language=”css”]
myproject/ <– higher level folder
|– myproject/ <– django project folder
| |– myproject/
| | |– __init__.py
| | |– settings.py
| | |– urls.py
| | |– wsgi.py
| +– manage.py
[/code]

  • manage.py: a shortcut to use the django-admin command-line utility. It’s used to run management commands related to our project. We will use it to run the development server, run tests, create migrations, and much more.
  • __init__.py: this empty file tells Python that this folder is a Python package.
  • settings.py: this file contains all the project’s configurations. We will refer to this file all the time!
  • urls.py: this file is responsible for mapping the routes and paths in our project. For example, if you want to show something in the URL /about/, you have to map it here first.
  • wsgi.py: this file is a simple gateway interface used for deployment.

Now everything is set up and we can run the server using the below command

[code language=”css”]
python manage.py runserver
[/code]

Now open the URL in a Web browser: http://127.0.0.1:8000 and you should see the success page, which means the server is running correctly.

Creating Django Apps

Django project contains many apps within it. An app can’t run without a project. You can create app by the following command

[code language=”css”]
django-admin startapp articles
[/code]

This will give us the following directory structure:

[code language=”css”]
myproject/
|– myproject/
| |– articles/ <– our new django app!
| | |– migrations/
| | | +– __init__.py
| | |– __init__.py
| | |– admin.py
| | |– apps.py
| | |– models.py
| | |– tests.py
| | +– views.py
| |– myproject/
| | |– __init__.py
| | |– settings.py
| | |– urls.py
| | |– wsgi.py
| +– manage.py
+– venv
[/code]

So, let’s first explore what each file does:

  • migrations: here Django stores some files to keep track of the changes you create in the py file, and to keep the database and the models.py synchronized.
  • admin.py: this is a configuration file for a built-in Django app called Django Admin.
  • apps.py: this is a configuration file of the app itself.
  • models.py: here is where we define the entities of our Web application. The models are translated automatically by Django into database tables.
  • tests.py: this file is used to write unit tests for the app.
  • views.py: this is the file where we handle the request/response cycle of our Web application.

Now that we created our first app, let’s configure our project to use it. Open settings.py file and find installed_apps block.

settings.py

[code language=”css”]
INSTALLED_APPS = [
‘django.contrib.admin’,
‘django.contrib.auth’,
‘django.contrib.contenttypes’,
‘django.contrib.sessions’,
‘django.contrib.messages’,
‘Django.contrib.staticfiles’,
‘articles’
]
[/code]

Here we have added ‘articles’ in the installed apps section. Now the app is ready to run with the Django project.

Configuring Database

By default Django project comes with sqlite3 database but you can customize it to use MySQL or Postgresql as per the requirements.

settings.py

[code language=”css”]
DATABASES = {
‘default’: {
‘ENGINE’: ‘django.db.backends.postgresql_psycopg2’,
‘NAME’: ‘blog’,
‘USER’: ‘postgres’,
‘PASSWORD’: ‘**********’,
‘HOST’: ‘localhost’,
‘PORT’: 5432,
}
}
[/code]

Now your project is connected with Postgres database and ready to run.

So now, we have learned how the MVT pattern works and the structure of the Django application along with the database configuration.