Giter Club home page Giter Club logo

djangogenerator's Introduction

DjangoGenerator

This project was initiated to reduce workload when the database designer (SQL) and requirements had to work hard innovating the best design. This plug-and-play generator was to test and deploy APIs with Django-Rest-Framework. The format was written by using the developers' style to make it ready for further modification.

Requirements:

  • Python 2 and Django set up.
  • SQL CREATE Command from MySQLWorkBench.

What will it generate.

  1. admin.py: Enable Django-Rest-Framework APIs UI.
  2. models.py: Models generated in Django Class and Fields according the design from MySQLWorkBench.
  3. serializers.py: Nested and non-nested serializers for all tables generated.
  4. urls.py: A standard routing CRUD path for this application.
  5. views.py: CRUD Function-based views for all tables generated.
  6. easy.txt: Listed all the fields in every table (This one was created to reduce typo and typing time).

Steps:

  1. Create a "result" folder next to this file.
  2. Select table(s) from the design in MySQLWorkBench and copy SQL Command.
  3. Create a file named "xxx" and place it next to this file.
  4. Replace "'" with an empty string.
  5. Open the generator.py and change appName value to your application name, run generator.py.
  6. Copy the files in result folder to your Django application. Don't forget to install and route your new application!

djangogenerator's People

Contributors

natkus34cp36 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.