Skip to main content

A Django project structure generator

Project description

Django Default

banner

Django Default is a Django project structure generator that simplifies the process of setting up new Django projects. It automates the cloning of a predefined Django project structure from a GitHub repository, enabling developers to start their projects with a solid foundation.

Features

  • Automates the cloning of a Django project structure.
  • Customizable to fit specific project needs.
  • Streamlines the initial setup process for Django projects.

Installation

Install Django Default using pip:

pip install django-default

Usage

To generate a new Django project structure, execute the following command:

shinzo

This command clones the predefined Django project structure into your current working directory.

Configuration

After generating your project structure, configure it by setting up the database and adjusting the settings in settings.py to match your environment. Ensure to include the third-party apps listed in core/config/apps.py:

  • jazzmin
  • modeltranslation
  • django_ckeditor_5
  • corsheaders
  • rosetta
  • rest_framework
  • drf_spectacular
  • drf_spectacular_sidecar

Development

To contribute to Django Default, set up a development environment by cloning the project and installing its dependencies. Run tests to ensure your changes don't break existing functionality and follow the project's contribution guidelines when submitting pull requests.

API Documentation

If your project uses Django REST Framework, use drf_spectacular to auto-generate API documentation. Document your API endpoints, including information on request methods, parameters, and example responses.

License

Django Default is released under the MIT License. See the LICENSE file in the project repository for more information.

Acknowledgments

  • Thanks to all contributors who have helped to improve Django Default.
  • Special thanks to Jahongir Hakimjonov for creating and maintaining this project.

Contact

Please contact Jahongir Hakimjonov with any questions or concerns regarding this project.

pypi

Management Commands Documentation

This document provides an overview and usage instructions for custom management commands included in the Django project.

Commands

createadmin

  • Description: Creates superuser accounts with predefined credentials. Useful for quickly setting up admin users during development.
  • Usage: python manage.py createadmin

makeapp

  • Description: Automates the creation of a new Django app within the apps directory. It also modifies the app's apps.py to correctly reference the app's location and removes unnecessary files.
  • Usage: python manage.py makeapp <app_name>
    • <app_name>: The name of the app you want to create.

nginx

  • Description: Generates a new nginx configuration file based on user input for domain name, project name, and project port. The command simplifies the process of preparing nginx for new projects.
  • Usage: python manage.py nginx
    • Follow the prompts to enter the domain name, project name, and project port.

secret_key

  • Description: Generates a new Django secret key. This is particularly useful when setting up a new project or when you need to regenerate the secret key for security reasons.
  • Usage: python manage.py secret_key

General Information

These commands are designed to streamline common tasks in Django development and deployment. Ensure you have the necessary permissions and environment setup before running these commands.

Development

Pre-commit

Before adding any source code, it is recommended to have pre-commit installed on your local computer to check for all potential issues when comitting the code.

pip install pre-commit
pre-commit install
pre-commit install --hook-type commit-msg
pre-commit run --all-files # Check if everything is okay

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

django_default-0.0.4-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file django_default-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for django_default-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1ca85d160b8220a7dbf2e0a29ae41b3b44fb5ab59c2565123bcd7cac38b8b7d9
MD5 3437ff8f38302c4a63026a049fa803b7
BLAKE2b-256 3f01f624c09ea27e1c2326381da22133d626f82fc15ea50352ef4ea0fbc1dc78

See more details on using hashes here.

Supported by

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