CLI tool for creating Django projects with a predefined structure.
Project description
๐ ldjango: Your Django Project Assistant! ๐
Tired of manually setting up Django projects? Introducing ldjango - your magic wand to create perfectly structured Django projects in a snap! ๐ชโจ
๐ฅ See ldjango in Action!
See how ldjango makes creating Django projects easy and fast!
๐ What's Special?
- Swift Setup: Create a complete structured Django project with just one command!
- Smart App Creation: Automatically create multiple Django apps!
- Perfect Project Structure: Get an organized project layout that even Marie Kondo would approve!
- CLI Power: 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 special folder for easy management.
- Git Friendly: Comes with a
.gitignorefile. Because we care about the cleanliness of your repository. - Special Static Folder: Keep your static files organized and separate from your project.
- HTML Template: Use a basic HTML template to maintain consistency throughout your project.
- Django Settings: Well-organized settings file to manage your project configuration.
- URL Routing: 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 to manage 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. - Environment Variables: Uses a
.envfile to store environment variables for your project. - Django REST Framework: Option to install and configure Django REST Framework.
- API Key: Integration with djangorestframework-api-key for API security.
- Automatic Serializer: Automatically create serializer files for each app.
- Advanced Customization: Option to further customize your project structure.
๐ ๏ธ 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 command:
ldjango makeproject
Follow the prompts, and watch the magic happen! โจ
๐ Command Reference
ldjango makeproject: Start the interactive project creation wizardldjango -horldjango --help: Show help informationldjango --version: Show the version of ldjango you are usingldjango generate-secret-key: Generate a new secret key for Django
๐ Special ldjango: Project Structure
Your new Django project will look like this:
project_root/
โ
โโโ apps/ # Main folder containing all the applications in the Django project
โ โโโ app1/ # First application (app1) 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
โ โ โโโ serializers.py # Serializer for Django REST Framework
โ โ โโโ tests.py # File to write unit tests
โ โ โโโ views.py # Logic for handling views in this app
โ
โ โโโ app2/ # Second application (app2) in the project
โ โ โโโ ... # Same structure as app1
โ
โ โโโ 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
โ โโโ landing_page.html # Landing page 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
โโโ requirements.txt # File to specify Python dependencies
โโโ tailwind.config.js # Configuration file for Tailwind CSS
๐ญ Features That Will Make You Say "Wow!"
- App-tastic Organization: All your apps are neatly placed inside the
appsfolder. No more app confusion! - URL Mastery:
urls.pyalready configured inside theappsfolder to manage all your app URLs. - Ready, Set, Django:
corefolder with all the essential Django project, ready to rock. - Static & Media: Special folders for your static and media files. Marie Kondo would be proud!
- Git Friendly: Comes with a
.gitignorefile. Because we care about the cleanliness of your repository. - Tailwind CSS Integration: Enjoy the power of Tailwind CSS right out of the box!
- HTML Template: Use a basic HTML template to maintain consistency throughout your project.
- Django Settings: Well-organized settings file to manage your project configuration.
- Database: Uses SQLite by default, but you can easily switch to your preferred database.
- JavaScript Support: Includes a
node_modulesfolder to manage 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
.envfile to store environment variables for your project.
๐ค Why Choose ldjango?
- Highest Time Savings: Say goodbye to repetitive project setup tasks.
- Consistency Champion: Every project follows the same, clean, and logical structure.
- Best Friend for Beginners: Perfect for Django beginners to start with the right steps.
- Customization King: Flexible enough to adapt to your unique project needs.
- Tailwind CSS: Tailwind CSS 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 special folder for easy management.
- Git Friendly: Comes with a
.gitignorefile. Because we care about the cleanliness of your repository. - Special Static Folder: Keep your static files organized and separate from your project.
- HTML Template: Use a basic HTML template to maintain consistency throughout your project.
- Django Settings: Well-organized settings file to manage your project configuration.
- URL Routing: 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 to manage 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
.envfile to store environment variables for your project. - Django REST Framework Integration: Option to easily set up Django REST Framework.
- API Security: Integration with djangorestframework-api-key for better API security.
- Automatic Serializer: Automatically create serializer files to make API development easier.
- Advanced Customization: More options to customize the project to your needs.
๐ License
Distributed under the MIT License. See LICENSE for more information.
๐ Contact Us!
My Instagram - @lrnd.__
Project Link: ldjango
Ready to djangofy your development process? Try ldjango 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-8.5.tar.gz.
File metadata
- Download URL: ldjango-8.5.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3fa49b03bf06eaa5d2d18f9ed55d510e3fbd0a2a7b2d4e9904cc9ac5b6467645
|
|
| MD5 |
32c6bdadb66799631dea8bc8043e1ce2
|
|
| BLAKE2b-256 |
00086ae76961a310cf5650944da645e0d76f05f6758b3ad104bcf07917a7417b
|
File details
Details for the file ldjango-8.5-py3-none-any.whl.
File metadata
- Download URL: ldjango-8.5-py3-none-any.whl
- Upload date:
- Size: 14.6 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 |
18eed0ca7a10debf1c6e3e810be662c2d9b54e98197c7a58472eea5a1ddf21b1
|
|
| MD5 |
816c58e11435b7859c1c8763db78b864
|
|
| BLAKE2b-256 |
df3ba976e907629be28653c7cf60ee4e5faf6a74df5b1125078ede2ecbfcda64
|