Skip to main content

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.

Further Configuration

By Default, django-create-app adds DEFAULT_APPS_DIR at the end of the sys.path but sometime we need to add it to different index. For such case, create DEFAULT_APP_DIR_INDEX variable and assign the index at which the DEFAULT_APPS_DIR is inserted.

Example,

DEFAULT_APPS_DIR = "apps"
DEFAULT_APPS_DIR_INDEX = 0 # This causes python to look for any modules or packages inside "apps" directory first.

Metadata

Release files for django-create-app 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-create-app 1.0.1
File Size Uploaded
django_create_app-1.0.1.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-create-app 1.0.1
File Interpreter ABI Platform
django_create_app-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.4 kB

Release files / django_create_app-1.0.1.tar.gz

Download URL django_create_app-1.0.1.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
31bc99ca68507760c4527acd8ee3f344d824299bb5d2b6852585d4137579660b
BLAKE2b-256 checksum
How to use checksums
d9904f379348418d42ac80b21f734bfa89135b4fc5d926af3387d08b9c0fff6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.0

Release files / django_create_app-1.0.1-py3-none-any.whl

Download URL django_create_app-1.0.1-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
80889e575fcd9683ab3c25f037a1269184499587a2c9c5a38368fc6ab4b01a34
BLAKE2b-256 checksum
How to use checksums
d092c0dc9fb463020bca3430e79dd2318841bd7f8555a07b4d270735cc9d2f77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.0

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page