Skip to content

coffee-and-debugging/CSIT4th

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚙️ Django Project Setup Guide

Welcome to the CSIT4th repository! Follow the instructions below to set up and run the project on your local machine.

This project is developed to familiarize CSIT 4th Semester students with Django web development.

  • College: Chitwan College of Technology
  • Faculty: CSIT
  • Batch: 2081

🚀 Getting Started

✅ Prerequisites

Make sure the following tools are installed on your system:

Verify installations:

python --version
git --version
node --version
npm --version

🛠️ Installation

1️⃣ Clone the Repository

For Windows, Mac & Linux:

git clone https://github.com/coffee-and-debugging/CSIT4th.git
cd CSIT4th

2️⃣ Create a Virtual Environment

For Windows:

python -m venv venv
cd venv/Scripts
activate.bat
cd ../../blog

For Mac/Linux:

python3 -m venv venv
source venv/bin/activate
cd blog

3️⃣ Install Python Dependencies

Install the required Python packages:

pip install -r requirements.txt

4️⃣ Install Node.js Dependencies

Navigate to the project directory (which contains manage.py) and install the TailwindCSS dependencies:

npm install

5️⃣ Configure Database Connection

Ensure that Postgres Server is running. For this project go to 'Servers/Databases' & create a database called "blog".

6️⃣ Apply Database Migrations

Run database migrations:

python manage.py makemigrations
python manage.py migrate

7️⃣ Start the Development Servers

Start the Django Development Server From Project Directory (which contains manage.py):

python manage.py runserver

Start the Node Server for TailwindCSS in Another Terminal From Project Directory (which contains manage.py)

npm start

Both commands should be executed from the project directory.

Open your browser and visit: http://127.0.0.1:8000/


📬 Contact


About

This project is developed to familiarize CSIT 4th Semester students with Python development.

Topics

Resources

Stars

Watchers

Forks

Contributors