A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/maulik-0207/django-structurator below:

maulik-0207/django-structurator: django-structurator is a lightweight CLI tool that helps you create Django projects and apps with a clean, scalable architectureβ€”without boilerplate or repetitive setup.

πŸš€ django-structurator is a lightweight CLI tool that helps you create Django projects and apps with a clean, scalable architectureβ€”without boilerplate or repetitive setup.

No extra dependencies. No bloated templates. Just a clean, prompt-driven workflow.

pip install django-structurator
πŸ“‚ Create a New Django Project

Interactive CLI will ask:

🧱 Create a New Django App

CLI will prompt for:

πŸ—οΈ Example Project Structure
test/ 
β”‚
β”œβ”€β”€ docs/                     # Documentation files
β”‚   β”œβ”€β”€ ARCHITECTURE.md       # Project folder architecture guide
β”‚   β”œβ”€β”€ CHANGELOG.md          # Change log for the project
β”‚   └── README.md             # Main documentation file
β”‚
β”œβ”€β”€ local_db/                 # Local SQLite database for development
β”‚   └── db.sqlite3
β”‚
β”œβ”€β”€ logs/                     # Every level Log files will be here
β”‚   β”œβ”€β”€ critical.log      
β”‚   β”œβ”€β”€ debug.log          
β”‚   β”œβ”€β”€ error.log          
β”‚   β”œβ”€β”€ info.log          
β”‚   └── warning.log             
|
β”œβ”€β”€ requirements/             # Dependency management
β”‚   β”œβ”€β”€ base.txt              # Core dependencies
β”‚   β”œβ”€β”€ development.txt       # Development-specific dependencies
β”‚   β”œβ”€β”€ production.txt        # Production-specific dependencies
β”‚   └── test.txt              # Testing dependencies
β”‚
β”œβ”€β”€ src/                      # Main source code folder
β”‚   β”œβ”€β”€ apps/                 # All Django apps
|   |   β”œβ”€β”€ app-1/                    # Example Django app
|   |   β”‚   β”‚
|   |   β”‚   β”œβ”€β”€ api/                  # API for app-1
|   |   β”‚   β”‚   β”œβ”€β”€ v1/               # Version 1 of the API
|   |   β”‚   β”‚   β”‚   β”œβ”€β”€ __init__.py
|   |   β”‚   β”‚   β”‚   β”œβ”€β”€ serializers.py # Serializers for API data
|   |   β”‚   β”‚   β”‚   β”œβ”€β”€ urls.py        # API URL patterns
|   |   β”‚   β”‚   β”‚   └── views.py       # API views
|   |   β”‚   β”‚   └── __init__.py
|   |   β”‚   β”‚
|   |   β”‚   β”œβ”€β”€ migrations/           # Database migrations
|   |   β”‚   β”‚   └── __init__.py
|   |   β”‚   β”‚
|   |   β”‚   β”œβ”€β”€ templatetags/         # Custom template tags and filters
|   |   β”‚   β”‚   β”œβ”€β”€ __init__.py
|   |   β”‚   β”‚   β”œβ”€β”€ example_filter.py # Custom filter example
|   |   β”‚   β”‚   └── example_tag.py    # Custom tag example
|   |   β”‚   β”‚
|   |   β”‚   β”œβ”€β”€ __init__.py
|   |   β”‚   β”œβ”€β”€ admin.py              # Admin site configuration
|   |   β”‚   β”œβ”€β”€ apps.py               # App configuration
|   |   β”‚   β”œβ”€β”€ forms.py              # App-specific forms (optional)
|   |   β”‚   β”œβ”€β”€ models.py             # App models
|   |   β”‚   β”œβ”€β”€ signals.py            # Signal handlers (optional)
|   |   β”‚   β”œβ”€β”€ tasks.py              # Celery tasks (optional)
|   |   β”‚   β”œβ”€β”€ tests.py              # Unit tests
|   |   β”‚   β”œβ”€β”€ urls.py               # App-specific URL patterns
|   |   β”‚   β”œβ”€β”€ validators.py         # Custom validators (optional)
|   |   β”‚   └── views.py              # App views
|   |   β”‚
|   |   β”œβ”€β”€ app-2/                    # Another app
|   |   β”œβ”€β”€ app-3/
|   |   β”œβ”€β”€ ...
|   |   └── app-4/
β”‚   β”‚
β”‚   β”œβ”€β”€ common/               # Shared utilities, constants, and helpers
β”‚   β”‚   β”œβ”€β”€ __init__.py
β”‚   β”‚   β”œβ”€β”€ constants.py      # Commonly used constants
β”‚   β”‚   └── helpers.py        # Utility functions
β”‚   β”‚
β”‚   β”œβ”€β”€ config/               # Project configuration
β”‚   β”‚   β”œβ”€β”€ settings/         # Environment-specific settings
β”‚   β”‚   β”‚   β”œβ”€β”€ __init__.py
β”‚   β”‚   β”‚   β”œβ”€β”€ base.py       # Base settings
β”‚   β”‚   β”‚   β”œβ”€β”€ development.py # Development environment settings
β”‚   β”‚   β”‚   └── production.py # Production environment settings
β”‚   β”‚   β”œβ”€β”€ __init__.py
β”‚   β”‚   β”œβ”€β”€ .env              # Environment variables (in config directory)
β”‚   β”‚   β”œβ”€β”€ .env.example      # Example env file (in config directory)
β”‚   β”‚   β”œβ”€β”€ asgi.py           # ASGI configuration
β”‚   β”‚   β”œβ”€β”€ celery.py         # Celery configuration file if used
β”‚   β”‚   β”œβ”€β”€ urls.py           # URL configuration
β”‚   β”‚   └── wsgi.py           # WSGI configuration
β”‚   β”‚
β”‚   β”œβ”€β”€ media/                # Uploaded media files
β”‚   β”‚
β”‚   β”œβ”€β”€ static/               # Static files
β”‚   β”‚   β”œβ”€β”€ css/              # CSS files
β”‚   β”‚   β”œβ”€β”€ js/               # JavaScript files
β”‚   β”‚   └── images/           # Image files
β”‚   β”‚       └── favicon.ico   # Favicon
β”‚   β”‚
β”‚   β”œβ”€β”€ templates/            # HTML templates
β”‚   β”‚   β”œβ”€β”€ base.html         # Base HTML template
β”‚   β”‚   └── index.html        # Default landing page template
β”‚   β”‚
β”‚   └── manage.py             # Django's management script
β”‚
└── .gitignore                # Git ignore file

MIT License - See the LICENSE


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4