The application leverages a PowerShell script to fully automate the setup of a Django environment, streamlining the initial development process significantly. This automation script is designed to execute a series of commands that systematically set up a Python virtual environment, install necessary dependencies, initialize a Django project and app, and configure the database with a pre-defined User model.
The PowerShell script automates the following tasks:
- Creating a virtual environment for the Django project.
- Installing all necessary Python packages.
- Initializing a Django project and app.
- Setting up a basic model, view, and template structure.
- Populating the database with fake data using the Faker library.
Before running the script, ensure you have the following installed on your system:
- Python 3.x
- pip (Python package installer)
- PowerShell (for Windows users)
Download the PowerShell script provided in the repository to your local machine.
Open PowerShell as an administrator and navigate to the directory where you saved the script. Execute the script by running:
.\setup_project.ps1