CLI tool for creating Django projects with a predefined structure.
Project description
๐ ldjango: Your Django Project Sidekick! ๐
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!
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
.gitignorefile. 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_modulesfolder 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
.gitignorefile to exclude unnecessary files from your repository.
๐ ๏ธ Installation
To get started with ldjango, follow these steps:
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- For Windows:
venv\Scripts\activate
- For macOS and Linux:
source venv/bin/activate
- For Windows:
-
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 wizardldjango -horldjango --help: Display help informationldjango --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!"
- App-tastic Organization: All your apps neatly tucked into the
appsfolder. No more app chaos! - URL Mastery: A pre-configured
urls.pyin theappsfolder to rule all your app URLs. - Ready, Set, Django:
corefolder with all the Django project essentials, ready to rock. - Static & Media: Dedicated folders for your static files and media. Marie Kondo would be proud!
- Git-Friendly: Comes with a
.gitignorefile. Because we care about your repo's cleanliness. - Tailwind CSS Integration: Enjoy the power of Tailwind CSS right out of the box!
- 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.
- Database: Uses SQLite by default, but you can easily switch to your preferred database.
- JavaScript Support: Includes a
node_modulesfolder 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.
๐ค 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
.gitignorefile. 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_modulesfolder 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ldjango-5.5.tar.gz.
File metadata
- Download URL: ldjango-5.5.tar.gz
- Upload date:
- Size: 13.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2de2918a6c02b5f4c4e75b167ed35e664e525656574b134b224515efc23749fb
|
|
| MD5 |
f1682bccd6c8b94e4a3deb17080d7f3e
|
|
| BLAKE2b-256 |
f22defd90aa6290e0920ceebd34386ad60f14a414241ff36da6be487717ab13d
|
File details
Details for the file ldjango-5.5-py3-none-any.whl.
File metadata
- Download URL: ldjango-5.5-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74654316283111d1dfd1464a5fbb515cef66471d08f3f14dea9a0e76bf407343
|
|
| MD5 |
4cb20ed2593ad49b83e22b10f391fa9c
|
|
| BLAKE2b-256 |
d375c7ec6cfc87dffa0aa0bc8a5ddd76e3340ce3a80bd0200fa5b69dddb3f091
|