A Django-based customer service system for gas utility companies that allows customers to submit and track service requests online.
- User authentication and authorization
- Service request submission and tracking
- File attachments for service requests
- Comments and internal notes
- Status updates and notifications
- RESTful API for integration
- Responsive web interface
- Python 3.8+
- Django 5.2+
- Other dependencies listed in requirements.txt
- Clone the repository:
git clone <repository-url>
cd gas-utility- Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Set up environment variables:
cp .env.example .env
# Edit .env with your configuration- Run migrations:
python manage.py migrate- Create a superuser:
python manage.py createsuperuser- Run the development server:
python manage.py runserver- Access the admin interface at
/adminto manage users and service requests - Customers can register and log in at
/accounts/login - Submit new service requests at
/create - View and track service requests at
/ - API documentation available at
/api/
GET /api/requests/- List all service requestsPOST /api/requests/- Create a new service requestGET /api/requests/{id}/- Get service request detailsPUT /api/requests/{id}/- Update a service requestPOST /api/requests/{id}/add_comment/- Add a commentPOST /api/requests/{id}/add_attachment/- Add an attachmentPOST /api/requests/{id}/update_status/- Update request status
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.