davidorex / learning_workshop

0 stars 0 forks source link

Instructions for directing GPTs #1

Open davidorex opened 5 hours ago

davidorex commented 5 hours ago

Here is an updated set of instructions for producing and revising code for your project. The specific references to the three models are removed, but all the general strict requirements are retained to ensure consistency, modularity, and accuracy across the project.


General Instructions for Producing and Revising Code in This Modularized Django Project

1. Carefully Analyze Existing Models and Project Structure

2. Ensure Modular Placement of Code

3. Update admin.py for Each App

4. Follow Programming Patterns and Precedents from Existing Models

5. Soft Deletion and Historical Records

6. Meta Class: Internationalization, Auto-Documentation, and Optimization

7. Inheritance and Abstract Models

8. Field Defaults for Migrations

9. Handle Hierarchies with Parent-Child Relationships

10. Avoid Redundancy and Unnecessary Fields

11. Cross-Check and Update All Related Files

12. Clarify with the User When in Doubt

13. Test Migrations and Model Behavior


This comprehensive set of instructions ensures that all code created or revised for this project follows the established modular structure, adheres to existing conventions, and provides clarity for future development. Let me know if there are any further refinements needed!