Skip to main content

Production-ready Django starter template with authentication system, REST API, deployment configs, and modular architecture.

Project description

Ziyodev Django

Production-ready Django starter template with authentication system, REST API support, deployment configuration, and scalable project structure.

This template is designed for quickly building modern Django applications with clean architecture and reusable components.


Features

  • Django REST Framework
  • Authentication system
  • Login / Register
  • Forget password
  • Change password
  • Change email
  • OTP verification
  • SMTP email integration
  • Environment variables support
  • Jazzmin admin panel
  • Gunicorn configuration
  • Nginx deployment config
  • Modular architecture
  • Ready for production

Project Structure

project/
│
├── deployment/
│   ├── gunicorn.service
│   ├── gunicorn.socket
│   └── nginx.conf
│
├── src/
│   ├── api/
│   ├── apps/
│   ├── config/
│   ├── images/
│   ├── requirements/
│   ├── static/
│   ├── templates/
│   ├── .env
│   ├── .env.example
│   ├── db.sqlite3
│   └── manage.py
│
├── venv/
├── .gitignore
└── README.md

Installation

1. Install package

pip install ziyodev-django

Create New Project

Initialize new Django project:

ziyodev-django init .

Virtual Environment if not exists

Linux / macOS

Create venv:

python3 -m venv venv

Activate:

source venv/bin/activate

Windows

Create venv:

python -m venv venv

Activate:

venv\Scripts\activate

Install Requirements

pip install -r src/requirements/dev.txt

Run migrations:

cd src
python manage.py migrate

Create superuser:

python manage.py createsuperuser

Run Development Server

python manage.py runserver

Server:

http://127.0.0.1:8000/

Authentication System

Included authentication features:

  • User registration
  • Login
  • Logout
  • Forget password
  • Change password
  • Change email
  • OTP verification
  • Email verification
  • SMTP integration

Deployment

Deployment configurations included:

deployment/

Contains:

  • gunicorn.service
  • gunicorn.socket
  • nginx.conf

Suitable for:

  • Ubuntu Server
  • Nginx
  • Gunicorn
  • Systemd

Admin Panel

Jazzmin admin panel included.

Admin URL:

/admin/

API Support

Django REST Framework preconfigured.

Create APIs inside:

src/api/

Static & Media Files

Static files:

src/static/

Images:

src/images/

Templates:

src/templates/

Installed Packages

Main packages included:

  • Django
  • Django REST Framework
  • Django Environ
  • Django Jazzmin
  • Gunicorn

Production

Install production requirements:

pip install -r src/requirements/prod.txt

Collect static files:

python manage.py collectstatic

License

MIT License


Author

Ziyodullo Aliyev

GitHub: https://github.com/Ziyodullodev


Happy coding 🚀

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ziyodev_django-0.3.3.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ziyodev_django-0.3.3-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file ziyodev_django-0.3.3.tar.gz.

File metadata

  • Download URL: ziyodev_django-0.3.3.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for ziyodev_django-0.3.3.tar.gz
Algorithm Hash digest
SHA256 574a07eeb47299a50b531fe7710f564a6f87b959496090d908e94ade366c4a0d
MD5 e5c18f099dfca544318c4ac3114c6868
BLAKE2b-256 e49f8b22dd46a8c2bb88b71e1a6bcfdf7d98ff4e69153d5d1c299e97ce3b6a34

See more details on using hashes here.

File details

Details for the file ziyodev_django-0.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for ziyodev_django-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c955427320f44ef2dfcde59918a0ca7e248369524a11bdf5468d1372bddf66ad
MD5 e945fb3fba69d4911c9f7c899e5061c7
BLAKE2b-256 3e010625b9de4f8db5cc80f3bd12e0c9386b8f946520e426d76619cb5f585ccb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page