🚀 Main Features
1. Smart Conversion
-
Static Assets: Automatically converts
src="img.png"andhref="style.css"into{% static '...' %}. -
Internal Links: Converts
.htmllinks into{% url '...' %}tags. -
Security: Automatically injects
{% csrf_token %}into all POST forms.
2. “Base Extraction” Mode (Split & Merge)
-
Merges two HTML files (e.g.,
index.htmlandcontact.html) to detect common parts such as the header and footer. -
Automatically generates a
base.htmlfile. -
Cleans the child files, keeping only their unique content and adding
{% extends %}.
3. Productivity Tools
-
Loop Tool: Select an element (e.g., a product card), name your variable, and the tool generates a
{% for %}loop while intelligently removing duplicates. -
Diff Viewer: Preview line-by-line changes (GitHub-style) before copying the updated code.
-
Snippets: Quickly insert blocks for authentication, date, or comments.
🛠️ Local Installation
git clone https://github.com/votre-nom/django-automator.git
cd django-automator
npm install
npm run dev
🤝 Contribution & Open Source
This project is 100% Open Source and free for the community.
Contributions are welcome: bug fixes, new features (Jinja2 support, other frameworks), UI improvements, and more.
-
Fork the repository
-
Create your branch (
git checkout -b feature/AmazingFeature) -
Commit your changes (
git commit -m "Add some AmazingFeature") -
Push to your branch (
git push origin feature/AmazingFeature) -
Open a Pull Request
👥 Contributors
📄 License
Distributed under the MIT License.