Skip to main content

Générateur de structure d'app Django personnalisée

Project description

create-app-savane

create-app-savane est un générateur d’application Django personnalisée, conçu pour créer rapidement une structure claire, modulaire et professionnelle d’app Django, avec les bons dossiers et fichiers dès le départ.


✨ Fonctionnalités

  • Génère une app Django prête à l’emploi
  • Crée des dossiers models/ et views/ au lieu des fichiers models.py et views.py
  • Crée automatiquement :
    • urls.py
    • admin.py
    • apps.py
    • tests.py
    • le dossier migrations/ avec son __init__.py
  • Fonctionne avec n’importe quel projet Django

📦 Installation

Pour installer ce package depuis PyPI :

pip install create-app-savane

## Utilisation

Une fois installé, utilisez la commande suivante pour créer une nouvelle application Django :

create-app nom_de_mon_app


## Exemple 

create-app blog


Cela va générer un dossier blog/ avec la structure suivante :

blog/
├── __init__.py
├── admin.py
├── apps.py
├── migrations/
│   └── __init__.py
├── models/
│   └── __init__.py
├── views/
│   └── __init__.py
├── urls.py
└── tests.py


## 🧠 Comment ça fonctionne ?

La commande create-app :

Crée un dossier portant le nom de l’application.
Génère les sous-dossiers models/, views/, migrations/ (avec leurs __init__.py respectifs).
Crée les fichiers essentiels à une app Django : admin.py, apps.py, tests.py, urls.py.
Prépare une app prête à être intégrée dans un projet Django existant.


## 🔧 Intégration dans un projet Django

Voici un exemple d'utilisation :

django-admin startproject monprojet
cd monprojet
create-app boutique

Puis, dans monprojet/settings.py, ajoute 'boutique' à la liste INSTALLED_APPS :

INSTALLED_APPS = [
    ...
    'boutique',
]


## ✅ Avantages

Gagnez du temps à chaque création d'application Django
Structure claire et modulaire
Prêt pour des projets évolutifs ou en équipe
🧑‍💻 Auteur

SAVANE Mouhamed
📧 savanemouhamed05@gmail.com
🛠️ Licence : MIT
🌍 Côte d’Ivoire

📚 Exigences

Python  3.6
Django  3.2 recommandé

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

create_app_savane-0.0.2.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

create_app_savane-0.0.2-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file create_app_savane-0.0.2.tar.gz.

File metadata

  • Download URL: create_app_savane-0.0.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for create_app_savane-0.0.2.tar.gz
Algorithm Hash digest
SHA256 6099ebb8d20abfa103e7b649a9b433be29fe716fe8c56921b3a5c77f453cf454
MD5 bc9bbe41605c704e9b53246706263222
BLAKE2b-256 dd5ab81e33cb866a89542c6a998496b6c3a0623598f32700cce64c2904910022

See more details on using hashes here.

File details

Details for the file create_app_savane-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for create_app_savane-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b616b177b01db0625dc5d83ccaefb32d7420052ff2893bb2bb80fe7372ae269c
MD5 e9f9f2f1174e28fdb605a56f2e362445
BLAKE2b-256 d098b383e1aaa9a2b54aec197862e0a0b6938f0a08d610f215e292fafcf246ed

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