Installation & Configuration for Django Application
Chatper 1 – Download
1.1. Software to be downloaded
Download All Links
- Python https://www.python.org/downloads/release/python-390/
- XAMPP 8.1 – 64 bit
- Download Link Or https://www.apachefriends.org/download.html
- Notepad https://notepad-plus-plus.org/downloads/v7.8.2/
- WinRar Download Link
Install the following libraries
pip install –upgrade pip
pip install django
pip install django-crispy-forms
pip install django-filter
pip install mysqlclient
pip install crispy-forms-foundation-demo
pip install django-bootstrap4
pip install django-bootstrap5
pip install crispy-bootstrap4
pip install crispy-bootstrap5
pip install Pillow
pip install django-import_export
1.2. Installation Video Tutorial
Chatper 2 – Installation
2.1. Installation of Xampp
- Click Yes when prompted. This will open the XAMPP setup window.
- Click Next. It’s at the bottom of the setup window.
- Select aspects of XAMPP to install. Review the list of XAMPP attributes on the left side of the window; if you see an attribute that you don’t want to install as part of XAMPP, uncheck its box.
- Click Next. It’s at the bottom of the window.
- Select an installation location. Click the folder-shaped icon to the right of the current installation destination, then click a folder on your computer.
- If you have the UAC activated on your computer, avoid installing XAMPP in your hard drive’s folder (e.g., OS (C:)).
- You can select a folder (e.g., Desktop) and then click Make New Folder to create a new folder and select it as the installation destination.
- Click Next. You’ll find it at the bottom of the page.
- Begin installing XAMPP.
- Click Finish when prompted.
- Resolve issues with Apache refusing to run. On some Windows 10 computers, Apache won’t run due to a “blocked port”. This can happen for a couple of reasons, but there’s a relatively easy fix.
- Click Config to the right of the “Apache” heading.
- Click Apache (httpd.conf) in the menu.
- Scroll down to the “Listen 80” section (you can press Ctrl+F and type in listen 80 to find it faster).
- Replace 80 with any open port (e.g., 81 or 8080).
- Press Ctrl+S to save the changes, then exit the text editor.
- Restart XAMPP by clicking Quit and then re-opening it in administrator mode from its folder.
2.2 OPEN THE “XAMPP control panel”
2.3 Start the “Apache and MySql”.
2.4 Click “Admin” button from MySql.
2.5 Now open the “phpmyAdmin” window in browser
2.6 Backend configuration
A. Open “phpmyAdmin” in brower
B. Click “Database”
C. Enter Database “Name” and Enter collection “Utf8_bin” and click “ create”
D. Click created Database from the left side
E. Click “import” from the top bar
F. Click “ browser” select the sql file and click “ go”
3. Installation of Python
- Click Yes when prompted. This will open the Python setup window.
- Click check box “Add python 3.9 to the path”. It’s at the bottom of the setup window.
- Click the Install Now . Its at the top of setup window.
- Begin installing Process of Python.
- Click Close when prompted.
4. Run the Django project in Command Prompt
G. Open the “readme” file in the project folder
H. Open the “readme” file and copy the “project url”
I. Open the Command Prompt . To change the Path Directory Give this command ==> cd “paste project url”
J. Inside the Project url path in Command prompt
Django run command -> python manage.py runserver
K. If python manage.py runserver occurs any error like showing some library missing
Install the following libraries
- pip install django-crispy-forms
- pip install django-filter