Skip to main content

CLI tool for creating Django projects with a predefined structure.

Project description

๐Ÿ ldjango: Your Django Project Sidekick! ๐Ÿš€

PyPI version License: MIT

Tired of setting up Django projects manually? Meet ldjango - your magical wand for creating perfectly structured Django projects in a snap! ๐Ÿช„โœจ

๐ŸŽฅ See ldjango in Action!

Demo ldjango

Watch how ldjango creates a Django project easily and quickly!

๐ŸŒŸ What's So Special?

  • Lightning-Fast Setup: Create a fully structured Django project with just one command!
  • Smart App Generation: Craft multiple Django apps automagically!
  • Perfect Project Structure: Get an organized project layout that even Marie Kondo would approve!
  • CLI Superpowers: Use intuitive command-line options to customize your project creation.
  • Tailwind CSS Integration: Enjoy the power of Tailwind CSS right out of the box!
  • Static Files: Static files are automatically compiled and ready for production.
  • Media Files: Media files are stored in a dedicated folder for easy management.
  • Git-Friendly: Comes with a .gitignore file. Because we care about your repo's cleanliness.
  • Dedicated Static Folder: Keep your static files organized and separate from your project.
  • HTML Templates: Use a base template for your HTML to maintain consistency across your project.
  • Django Settings: A well-organized settings file to manage your project configurations.
  • URL Routing: A centralized URL routing system to manage all your app URLs.
  • Database: Uses SQLite by default, but you can easily switch to your preferred database.
  • JavaScript Support: Includes a node_modules folder for managing JavaScript dependencies.
  • NPM Scripts: Use NPM scripts to compile your CSS and run other development tasks.
  • Django Commands: Use Django commands to manage your project and apps.
  • Version Control: Includes a .gitignore file to exclude unnecessary files from your repository.
  • Environment Variables: Uses a .env file to store environment variables for the project.

๐Ÿ› ๏ธ Installation

To get started with ldjango, follow these steps:

  1. Create a virtual environment:

    python -m venv venv
    
  2. Activate the virtual environment:

    • For Windows:
      venv\Scripts\activate
      
    • For macOS and Linux:
      source venv/bin/activate
      
  3. Install ldjango:

    pip install ldjango
    

Now ldjango is ready to use in your virtual environment!

๐Ÿš€ Quickstart

Launch your Django rocket with this simple command:

ldjango makeproject

Follow the prompts, and watch the magic happen! โœจ

๐Ÿ“š Command Reference

  • ldjango makeproject: Start the interactive project creation wizard
  • ldjango -h or ldjango --help: Display help information
  • ldjango --version: Show the version of ldjango you're using
  • ldjango generate-secret-key: Generate a new secret key for Django

๐Ÿ“ The ldjango Special: Project Structure

Your shiny new Django project will look like this:

project_root/
โ”‚
โ”œโ”€โ”€ apps/                       # Main folder containing all the applications in the Django project
โ”‚   โ”œโ”€โ”€ apps1/                   # First application (apps1) in the project
โ”‚   โ”‚   โ”œโ”€โ”€ migrations/          # Folder to store database migration files
โ”‚   โ”‚   โ”œโ”€โ”€ admin.py             # Configuration for Django's admin panel
โ”‚   โ”‚   โ”œโ”€โ”€ apps.py              # Configuration for the app in Django
โ”‚   โ”‚   โ”œโ”€โ”€ models.py            # Defines the database models for this app
โ”‚   โ”‚   โ”œโ”€โ”€ tests.py             # File to write unit tests
โ”‚   โ”‚   โ”œโ”€โ”€ views.py             # Logic for handling views in this app
โ”‚
โ”‚   โ”œโ”€โ”€ apps2/                   # Second application (apps2) in the project
โ”‚   โ”‚   โ”œโ”€โ”€ migrations/          # Folder to store database migration files
โ”‚   โ”‚   โ”œโ”€โ”€ admin.py             # Configuration for Django's admin panel
โ”‚   โ”‚   โ”œโ”€โ”€ apps.py              # Configuration for the app in Django
โ”‚   โ”‚   โ”œโ”€โ”€ models.py            # Defines the database models for this app
โ”‚   โ”‚   โ”œโ”€โ”€ tests.py             # File to write unit tests
โ”‚   โ”‚   โ”œโ”€โ”€ views.py             # Logic for handling views in this app
โ”‚
โ”‚   โ”œโ”€โ”€ More another apps/       # More apps in the project
โ”‚
โ”‚   โ”œโ”€โ”€ urls.py                  # URL routing for all the apps inside the `apps` folder
โ”‚
โ”œโ”€โ”€ core/                        # Core folder containing overall project configuration
โ”‚   โ”œโ”€โ”€ asgi.py                  # ASGI configuration for running asynchronous servers
โ”‚   โ”œโ”€โ”€ settings.py              # Main configuration file for the Django project
โ”‚   โ”œโ”€โ”€ urls.py                  # Global URL routing for the entire project
โ”‚   โ”œโ”€โ”€ wsgi.py                  # WSGI configuration for running web servers
โ”‚
โ”œโ”€โ”€ media/                       # Folder for storing user-uploaded files (images, documents, etc.)
โ”‚
โ”œโ”€โ”€ node_modules/                # Folder containing JavaScript dependencies from npm (e.g., for Tailwind CSS)
โ”‚
โ”œโ”€โ”€ static/                      # Folder for static files like CSS, JavaScript, and images
โ”‚   โ””โ”€โ”€ css/
โ”‚       โ”œโ”€โ”€ input.css            # Input CSS file (e.g., Tailwind CSS)
โ”‚       โ”œโ”€โ”€ output.css           # Output CSS file after processing
โ”‚
โ”œโ”€โ”€ staticfiles/                 # Folder to store static files that are ready for production
โ”‚   โ”œโ”€โ”€ admin/                   # Static files for Django's admin panel
โ”‚   โ””โ”€โ”€ css/                     # Additional CSS files for the app
โ”‚
โ”œโ”€โ”€ templates/                   # Folder for storing HTML templates
โ”‚   โ”œโ”€โ”€ base.html                # Base HTML template for the application
โ”‚
โ”œโ”€โ”€ .gitignore                   # File to specify files/folders that Git should ignore
โ”œโ”€โ”€ .env                         # Environment variables for the project
โ”œโ”€โ”€ .env.example                 # Example environment variables for the project
โ”œโ”€โ”€ db.sqlite3                   # SQLite database used by the project
โ”œโ”€โ”€ manage.py                    # Command-line script to manage the Django project
โ”œโ”€โ”€ package-lock.json            # File locking the versions of npm dependencies
โ”œโ”€โ”€ package.json                 # Configuration file for npm dependencies
โ””โ”€โ”€ tailwind.config.js           # Configuration file for Tailwind CSS

๐ŸŽญ Features That'll Make You Go "Wow!"

  1. App-tastic Organization: All your apps neatly tucked into the apps folder. No more app chaos!
  2. URL Mastery: A pre-configured urls.py in the apps folder to rule all your app URLs.
  3. Ready, Set, Django: core folder with all the Django project essentials, ready to rock.
  4. Static & Media: Dedicated folders for your static files and media. Marie Kondo would be proud!
  5. Git-Friendly: Comes with a .gitignore file. Because we care about your repo's cleanliness.
  6. Tailwind CSS Integration: Enjoy the power of Tailwind CSS right out of the box!
  7. HTML Templates: Use a base template for your HTML to maintain consistency across your project.
  8. Django Settings: A well-organized settings file to manage your project configurations.
  9. Database: Uses SQLite by default, but you can easily switch to your preferred database.
  10. JavaScript Support: Includes a node_modules folder for managing JavaScript dependencies.
  11. NPM Scripts: Use NPM scripts to compile your CSS and run other development tasks.
  12. Django Commands: Use Django commands to manage your project and apps.
  13. Environment Variables: Uses a .env file to store environment variables for the project.

๐Ÿค” Why Choose ldjango?

  • Time-Saver Supreme: Say goodbye to repetitive project setup tasks.
  • Consistency Champion: Every project follows the same clean, logical structure.
  • Beginner's Best Friend: Perfect for Django newbies to start on the right foot.
  • Customization King: Flexible enough to adapt to your unique project needs.
  • Tailwind CSS: Tailwind CSS is integrated into the project, so you can start styling your project right away.
  • Static Files: Static files are automatically compiled and ready for production.
  • Media Files: Media files are stored in a dedicated folder for easy management.
  • Git-Friendly: Comes with a .gitignore file. Because we care about your repo's cleanliness.
  • Dedicated Static Folder: Keep your static files organized and separate from your project.
  • HTML Templates: Use a base template for your HTML to maintain consistency across your project.
  • Django Settings: A well-organized settings file to manage your project configurations.
  • URL Routing: A centralized URL routing system to manage all your app URLs.
  • Database: Uses SQLite by default, but you can easily switch to your preferred database.
  • JavaScript Support: Includes a node_modules folder for managing JavaScript dependencies.
  • NPM Scripts: Use NPM scripts to compile your CSS and run other development tasks.
  • Django Commands: Use Django commands to manage your project and apps.
  • Environment Variables: Uses a .env file to store environment variables for the project.

๐Ÿ“œ License

Distributed under the MIT License. See LICENSE for more information.

๐Ÿ“ž Let's Connect!

My Instagram - @lrnd.__

Project Link: ldjango


Ready to djangofy your development process? Give ldjango a spin and watch your productivity soar! ๐Ÿš€๐Ÿ

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

ldjango-7.6.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

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

ldjango-7.6-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file ldjango-7.6.tar.gz.

File metadata

  • Download URL: ldjango-7.6.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for ldjango-7.6.tar.gz
Algorithm Hash digest
SHA256 8140fcecf8963992e6af5afdbad68be1dd077b07b0d6b5af9bbedbab1ec261b7
MD5 e3e2d87d08fc7058f0bc349cbdc338a9
BLAKE2b-256 b00803eb7dfb7a6de6791be51b3a8cf4ffd241961cc8ff2fa34a589f199efa8c

See more details on using hashes here.

File details

Details for the file ldjango-7.6-py3-none-any.whl.

File metadata

  • Download URL: ldjango-7.6-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for ldjango-7.6-py3-none-any.whl
Algorithm Hash digest
SHA256 54b7a5946353c2b41e447988eeb851d0a8e46b814ec91dc13b8136440707f8fb
MD5 d5f58198f643d30e7706bc94d78db5a1
BLAKE2b-256 a5e2769acbbab07b6dda4e849b3eb89ef54302322652b2435255449a98e458bf

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