Skip to main content

A Django app (custom) that modifies the startapp command to ensure all apps are created inside a directory defined by DEFAULT_APPS_DIR in settings.py.

Project description

Django Create App

This Django package customizes the startapp command to create new apps inside a directory specified by the DEFAULT_APPS_DIR setting in your settings.py. This ensures that all your Django apps are neatly organized within a designated folder structure, helping you maintain a cleaner project structure.

Features

  • Modifies the startapp command to create apps inside a configurable directory (DEFAULT_APPS_DIR) in settings.py.
  • Simplifies managing apps within large Django projects by keeping them inside a specific directory.
  • Reduces the need to manually move apps after they are created.

Installation

To install the package, add it to your project’s requirements.txt or run the following command:

pip install django-create-app

Configuration

  1. Install the django-create-app like any python packages.

    pip install django-create-app
    
  2. Update settings.py

    Add DEFAULT_APPS_DIR variable inside your settings.py. This will define the directory where all the apps are to be included. If you left undeclared, "apps" will be used by default.

    # settings.py
    ...
    DEFAULT_APPS_DIR = "apps"
    ...
    
  3. Now, you can use modified startapp command to create new apps inside DEFAULT_APPS_DIR directory.


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

django_create_app-1.0.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

django_create_app-1.0.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file django_create_app-1.0.0.tar.gz.

File metadata

  • Download URL: django_create_app-1.0.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for django_create_app-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1938e8bf477f63299e8de2eee38b94e8e8c8a1a883a45edd9f4f40852f242933
MD5 34b035672444b24768b88581788d8199
BLAKE2b-256 a5b5cdf36e8800446aa30e3212a17f10fa1e196a7484cd5d9446eeada0dd3686

See more details on using hashes here.

File details

Details for the file django_create_app-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_create_app-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec36568839087baae1cfb45abe2adf9106cb15ef6ac2ec7201f5b611699ce27b
MD5 6894b553ce8a8b423e6309da436aeb60
BLAKE2b-256 d5d603c92bbefe54f7f8d14dfe9678d8c4355a214bc27b68f24e7e9df972cc30

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