Skip to content

Latest commit

 

History

History
80 lines (60 loc) · 1.33 KB

Setup_Instructions.md

File metadata and controls

80 lines (60 loc) · 1.33 KB

Setup Environment

  1. Create a virtual environment:

    python -m venv env
  2. Activate the virtual environment:

    On Windows:

    .\env\Scripts\activate

    On macOS/Linux:

    source env/bin/activate
  3. Install required packages:

    pip install -r requirements.txt

Make Migrations

  1. Make migrations for the event app:

    python manage.py makemigrations event
  2. Make migrations for the home app:

    python manage.py makemigrations home
  3. Make migrations for the initiative app:

    python manage.py makemigrations initiative
  4. Make migrations for the insight app:

    python manage.py makemigrations insight
  5. Make migrations for the team app:

    python manage.py makemigrations team

Apply Migrations

  1. Apply migrations to the database:
    python manage.py migrate

Run Initialization Scripts

  1. Populate the database:
    python manage.py populate_db

Create Superuser

  1. Create a superuser for the Django admin:
    python manage.py createsuperuser

Run the Server

  1. Start the Django development server:
    python manage.py runserver