Giter Site home page Giter Site logo

shotastage / mirage-django-lts Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 2.0 2.58 MB

Advanced extended command line tool for Django.

License: Apache License 2.0

Python 96.51% Makefile 0.48% Shell 0.32% HTML 0.98% SCSS 0.54% TypeScript 1.17%
django python django-admin django-commands

mirage-django-lts's Introduction

Mirage

Build Status Updates Python 3 PyPI version PyPI GitHub release PyPI

mirage ~ ♪ extended django admin or manage.py command.

⬇️ Installation

Installing Mirage with Pipenv is recommended.

pipenv install -d mirage-django-lts

If you don't use pipenv, you can install it with pip.

pip install mirage-django-lts

You can build this package manually.

make before_node
make build_all

🖥 Usage

Usage:
    mg [action] option <--sub-option> <inputs>

    mg [action]:[subaction] option <--sub-option> <inputs>



[Create Project]

new                                         Create a new Django project.
new:react                                   Create a new Django API project with React.js front-end.
new:ng                                      Create a new Django API project with Angular.
                         --nebular          Create a new Angular project with Nebular.
                         --material         Create a new Angular project with Material theme.

[Utilities]

b             app         <app name>        Backup exsiting app.
browser                   <URL>             Launch browser set as default by system.
conf                      <config type>     Generate miragefile or reconfig mirage.
f                                           Create a new Python source file with copyrights doc string.


[Console]

c                                           Launch Django Python shell.
c:db                                        Launch databse shell.


[Database]

db:migrate                                  Make migrations and apply migrations.
db:merge                                    Discard & recreate migrations.
db:reset                                    Reset all database. ( Only debugging SQLite is supported. )


[Generator]

g             app         <app names...>    Create multiple Django apps at once.
g             model       <model class>     Create Django model class.
g             module      <module bane>     Create a new Python module with __init__.py


[Heroku]

heroku        configure                     Configure setting files for deploing to heroku.


[Management]

m             test                          Run test of Django application.
m             superuser                     Create super user for Django admin.
m             <manage.py command>           Run manage.py command.


[Server]

s                                           Launch debugging server.


[Help]

h                                           Show usage of Mirage.
v                                           Print version information.
?             update                        Check update.
?             system                        Check platform and Python version.

Detail documentation is now under construction.

More usage is here.

🤪 Author

  • Shota Shimazu

© License

Copyright © 2017-2018 Shota Shimazu All Rights Reserved.
This software is released under the Apache License, see LICENSE for detail.

mirage-django-lts's People

Contributors

dependabot[bot] avatar fossabot avatar pyup-bot avatar shotastage avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

mirage-django-lts's Issues

Mirage create wrong model if the type name is wrong.

Run g model command with wrong or none supported type name.

mg g model ModelClass data_name:miss_type hoge:int

Mirage does not raise error & create = None() ?? field!

class ModelClass(models.Model):
  data_name = None()
  hoge = models.IntegerField()

Failed to create new python script out of Mirage project.

Mirage: Failed to touch new python script "test.py"!
===== Error Detail =======================================================
Python Information:

Exceute func name : main
Exec Information  : (<class 'PermissionError'>, PermissionError(13, 'Permission denied'), <traceback object at 0x103061248>)
Object Info       : <bound method TouchWorkFlow.main of <mirage.workflows.Touch object at 0x1012fb160>>
Signature         : ()
==========================================================================

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.