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.0.tar.gz (27.4 kB 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.0-py3-none-any.whl (52.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ziyodev_django-0.3.0.tar.gz
  • Upload date:
  • Size: 27.4 kB
  • 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.0.tar.gz
Algorithm Hash digest
SHA256 a76a0cbd6f9476b8ed77dc772c20ac9ad6a82c7e45960e48470ff33425b05ec2
MD5 7e76ef9d0febf6f98424f92cb4e68f99
BLAKE2b-256 39a1f6918c3c2d9db75e4120a62d376bea709007f1ddb9af5c37aa99e4ac120e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ziyodev_django-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 52.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for ziyodev_django-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f3b332c0f3773582a1e85d745f2cc7eee90f75d35f188d7e4d40ddbccd3042ea
MD5 6f06ec1594fc838025a12a18f8f76ca2
BLAKE2b-256 43cfbf1d1944f709ba4a48317212faad5c3047565e1b663a2d41998b6f402abd

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