Giter Site home page Giter Site logo

abdenasser / dr_scaffold Goto Github PK

View Code? Open in Web Editor NEW
153.0 9.0 16.0 15.92 MB

scaffold django rest apis like a champion ๐Ÿš€

License: MIT License

Python 97.74% Makefile 2.26%
django rest-api django-rest-framework scaffolding command-line-tool python json-api scaffold generator hacktoberfest

dr_scaffold's Introduction

Hi there ๐Ÿ‘‹

Iโ€™m Abdenasser Elidrissi, a Software Engineer from Morocco, I love coffee and computers and I am passionate about bringing ideas to life. Iโ€™m a Senior Backend Engineer during the day (at Obytes), and an indie maker by night.

dr_scaffold's People

Contributors

abdenasser avatar aymanemx avatar dependabot[bot] avatar elmkarami avatar leogregianin avatar raphaelmro avatar rg3915 avatar yezz123 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dr_scaffold's Issues

Add max_digits and decimal_places on DecimalField

Issue Summary

In DecimalField max_digits=5, decimal_places=2, is essential.


If this is a bug instead of a question or feature request, please fill out the sections below.


Steps to Reproduce

This parameters is mandatory to make migrations.

What were you expecting to happen?

Add max_digits=5, decimal_places=2, on DecimalField.

Message error

In my example:

SystemCheckError: System check identified some issues:

ERRORS:
ecommerce.OrderItems.price: (fields.E130) DecimalFields must define a 'decimal_places' attribute.
ecommerce.OrderItems.price: (fields.E132) DecimalFields must define a 'max_digits' attribute.

Bug: Error: ImproperlyConfigured at /blog/posts/

Error: ImproperlyConfigured at /blog/posts/
Could not resolve URL for hyperlinked relationship using view name "user-detail". You may have failed to include the related model in your API, or incorrectly configured the `lookup_field` attribute on this field.

Describe the bug

This error occurs when entering the route.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '/blog/posts/'

Additional context

Sugestion

Resolve this bug or change serializers.HyperlinkedModelSerializer for serializers.ModelSerializer.

Fix second argument on the command line to remove special character

If type python manage.py dr_scaffold blog Article: title:char body:text

type : before or after model name

This generate

class Article:(models.Model):
    title = models.CharField(max_length=255, null=True, blank=True)
    body = models.TextField(null=True, blank=True)
    create_date = models.DateTimeField(auto_now_add=True)

    class Meta:
        verbose_name_plural = "Article:s"

Article with two points.

Suggestion

Address this in the argument on command line.

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.