Django-powered backend for ticket management system.
- Django 5.1.7
- Django REST Framework 3.15.2
- Simple JWT 5.5.0
- PostgreSQL (psycopg 3.2.6)
- dj-database-url 2.3.0
- JWT Authentication
- djangorestframework_simplejwt 5.5.0
- django-cors-headers 4.7.0
- django-filter 25.1
- environs 14.1.1 (Environment management)
- python-dotenv 1.0.1
- Gunicorn 23.0.0
- Python 3.11+
- pip
- Virtual Environment
# Create virtual environment
python -m venv venv
# Activate
# Windows
venv\Scripts\activate
# macOS/Linux
source venv/bin/activate
# Install dependencies
pip install -r requirements.txt
- Create
.env
file - Add configuration:
SECRET_KEY=your-secret-key
DEBUG=True
DATABASE_URL=postgresql://username:password@host:port/database
ALLOWED_HOSTS=localhost,127.0.0.1
# Create migrations
python manage.py makemigrations
# Apply migrations
python manage.py migrate
# Create superuser
python manage.py createsuperuser
# Development
python manage.py runserver
# Production
gunicorn ticsol.wsgi:application
Server/
├── accounts/
├── tickets/
├── ticsol/
│ ├── settings.py
│ ├── urls.py
│ └── wsgi.py
└── manage.py
/admin/
: Django Admin/api/auth/
: User endpoints/api/tickets/
: Ticket endpoints
- Use PostgreSQL in production
- Set
DEBUG=False
- Configure
ALLOWED_HOSTS
- Use strong
SECRET_KEY
- Fork repository
- Create feature branch
- Commit changes
- Push to branch
- Open Pull Request
Aswin Das P V
Email: [email protected]
LinkedIn: pvaswindas