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.3.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.3-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: create_app_savane-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 ac6388e3d9d79165efe387c4509a0aff0933f119456a7ad61f216f5046761ee9
MD5 1c9eba53ee848d5973638c2e771302b2
BLAKE2b-256 7b0b870250a9f42d3dcccfa03ad1feb0775b548cc756f14bf59f704630ef36cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for create_app_savane-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a17cab0fa7c3767bc2de32d1751fd3f8a5d8c412938014df8a74aebf4ce20874
MD5 54bb533879f930c7de4b1e3a028c01e5
BLAKE2b-256 f78352579d8c9ef857e487c49c0de0838503c72539a42eee381a74c46e3dd553

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