Step-by-step setup installation guide for a Django project named "ecommerce_prj." This assumes you have Python and Django already installed on your system. If not, make sure to install Python and set up a virtual environment first.
-
Open your command line or terminal.
-
Navigate to the directory where you want to store your Django project.
-
Clone the project from a Git repository (replace
<repository_url>
with the actual repository URL) or download from link and unzip file:git clone <repository_url> ecommerce_prj
-
Navigate to the project directory:
cd ecommerce_prj
-
Create a virtual environment (optional but recommended to isolate project dependencies):
python -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS and Linux:
source venv/bin/activate
- On Windows:
-
Ensure you're in the project directory with the virtual environment activated.
-
Install the project dependencies using pip:
pip install -r requirements.txt
-
Create the database tables and apply migrations:
python manage.py migrate
-
Create a superuser account (an admin account) by following the prompts:
python manage.py createsuperuser
-
Start the Django development server:
python manage.py runserver
-
Open your web browser and access the development server at http://127.0.0.1:8000/. You should see your Django project's homepage.
- To access the admin panel, go to http://127.0.0.1:8000/admin/ and log in using the superuser account credentials you created earlier.
You're now set up to start developing your Django project "ecommerce_prj." You can build and customize your application by adding models, views, templates, and other components as needed.
Remember to deactivate the virtual environment when you're done working on your project:
deactivate # On Windows
source venv/bin/deactivate # On macOS and Linux
That's it! You've successfully set up and installed your Django project. Happy coding!
Contact Me Immediately if you have any issues.