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! ๐Ÿช„โœจ

๐ŸŒŸ 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.

๐Ÿ› ๏ธ 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

๐Ÿ“ 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
โ”œโ”€โ”€ 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.

๐Ÿค” 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.

๐Ÿ“œ License

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

๐Ÿ“ž Let's Connect!

Liaranda - @lrnd.__ - hafiztamvan15@gmail.com

Project Link: Liaranda


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-2.9.tar.gz (7.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-2.9-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ldjango-2.9.tar.gz
Algorithm Hash digest
SHA256 8744e4072548679b3c275f3508086f6561cd1df3ccc41b2d3a0ee84b2abd5f10
MD5 8cd5230c11d94b8f780b90914172f44f
BLAKE2b-256 414a9dd47e9252d4957fda6931f243352c89a4c4f6207ff9789d418cc553620b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ldjango-2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 6ad0af13141d27111f6d6b86acd53b819adab4778116180c684ea0fb8d53bbe9
MD5 5835f96750d1b6494298fb80c263a847
BLAKE2b-256 d4388720b60b734c8d59cf3a9204f7cad33b1432c94657f58c590fc8ae02d2a8

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