A secure, scalable, and modular Django-based web application designed for modern API-driven development. This project includes a professional configuration for multiple environments, robust security practices, and comprehensive test coverage.
- ✅ Django 4.x with environment-based settings (
dev
,prod
) - 🔒 Integrated security modules (rate-limiting, CAPTCHA, geoIP, OTP)
- 🌍 RESTful APIs with
django-rest-framework
- 📦 Modular structure (
gateway
,accounts
,api_gateway
) - 🧪 Pytest and unit test coverage
- 🧰 Logging, throttling, and monitoring support
- 🌐 Deployment-ready with ASGI and WSGI
- Python 3.8+
- PostgreSQL or SQLite
- Pipenv or virtualenv
# Clone the repository
$ git clone https://github.com/REZACODINNGCRAFTER/IRAN_gateway_project.git
$ cd project-name
# Set up virtual environment
$ python -m venv venv
$ source venv/bin/activate
# Install dependencies
$ pip install -r requirements.txt
# Set environment variables
$ cp .env.example .env
$ python manage.py migrate
$ python manage.py runserver
project_name/
├── accounts/ # User auth & management
├── api_gateway/ # API-specific logic and serializers
├── components/ # Logging, security, DRF configs
├── config/ # Settings, URLs, ASGI/WSGI entry points
├── gateway/ # Web views and site logic
├── security/ # Captcha, OTP, rate-limiting, etc.
├── templates/ # HTML templates
├── tests/ # Unit & integration tests
└── manage.py # Django admin utility
config/settings/base.py
- Shared settingsconfig/settings/dev.py
- Development settingsconfig/settings/prod.py
- Production settings.env
- Environment variables (see.env.example
)
$ python manage.py test
$ flake8 .
$ black .
This project is licensed under the MIT License.
- Your Name - Lead Developer
For contributions, issues, or questions, please open an issue or submit a pull request.