s54a / MyPartnerisBusy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MyPartnerisBusy

Screenshot 2023-12-24 at 3 00 19 PM

Getting Started

These instructions will help you set up and run the project on your local machine for development and testing purposes.

Prerequisites

  • Python (3.x recommended)
  • pip (Python package installer)
  • Virtualenv (optional but recommended)
  • Twillio Account

Installing

  1. Clone the repository to your local machine:

    git clone https://github.com/your-username/MyPartnerisBusy.git
  2. Navigate to the project directory:

    cd mypartnerisbusy
  3. Create a virtual environment (optional but recommended):

    python -m venv venv
  4. Activate the virtual environment:

    • On Windows:

      venv\Scripts\activate
    • On macOS/Linux:

      source venv/bin/activate
  5. Install project dependencies:

    pip install -r requirements.txt

Database Setup

  1. Apply database migrations:

    python manage.py migrate
  2. Create a superuser account (for admin access):

    python manage.py createsuperuser

Running the Server

Start the development server:

python manage.py runserver

Finally Update The Settings.py

TWILIO_ACCOUNT_SID = 'YOUR TWILIO ACCOUNT SID' TWILIO_AUTH_TOKEN = 'YOUR TWILIO AUTH_TOKEN' TWILIO_PHONE_NUMBER = 'YOUR TWILLIO PHONE NUMBER'

Update Your Webhook URL in myapp/views.py line 46 You can use ngrok to generate a url

status_callback='https://7264-103-212-158-183.ngrok-free.app/twilio_webhook/',

About


Languages

Language:JavaScript 46.8%Language:CSS 44.4%Language:Python 4.4%Language:HTML 4.4%