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.4.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.4-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ziyodev_django-0.3.4.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.4.tar.gz
Algorithm Hash digest
SHA256 e3db6624754bdd0b5c6395f1b557eb114c19efe8fd028e35b32745c681ffc9d1
MD5 94535c72b490e3d61b18ed36308b305b
BLAKE2b-256 c42a10983dc00dc81fb93d90335c9159228cd7ef1d68ff426eed20fa146da984

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ziyodev_django-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0cb3e7fc5251a3cff4ab9baf133d7a416f33920deb84e6abbf86af79604754d6
MD5 afdf280a4596b8deeb2b38216eae8ec7
BLAKE2b-256 cc5cb965ac8650e4936a4d6482bb5206b789a41df99abe126d0ef5a1ddc9de6a

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