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.2.tar.gz (31.1 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.2-py3-none-any.whl (58.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ziyodev_django-0.3.2.tar.gz
  • Upload date:
  • Size: 31.1 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.2.tar.gz
Algorithm Hash digest
SHA256 0f2a60a745397975cb30d5c2f70100dddf2da249fc96dd99c2424202d18953f3
MD5 489b991a7bacc7d2319169cd61c7440a
BLAKE2b-256 242514b0ed635914403638ccad01b6947e94983f186193f6d5a35e889937b591

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ziyodev_django-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 58.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c4dc773b718aa92d4491cc18d779561996f1a15b988f57a41191fb3a8047214e
MD5 17f0b2717c9ffee2eb7ec65eff593929
BLAKE2b-256 3c09850e8fca0a0edf68cf82971f117d85df95a76522fb598fe440d2750782ed

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