Package: django3scaffold
Django 3 Scaffold PackageOverviewimagine that you need to build a customized admin panel from scratch or maybe you need a second panel just for your customers, regular users or something like that  , then you need this package to do it very fast.this package creates models and views and forms and URLs and tests and templates for crud in one single command!for example, you just run a single command in your command-line like this :python manage.py scaffold forum --model Forum char:name char:readsand this package generates these files for you :└── forum
   ├── __init__.py
   ├── admin.py
   ├── apps.py
   ├── forms.py
   ├── migrations
   │   └── __init__.py
   ├── models.py
   ├── templates
   │   ├── base.html
   │   └── forum
   │       ├── details.html
   │       └── list.html
   ├── tests.py
   ├── urls.py
   └── views.pyInstallationInstall django3scaffold (ideally in your virtualenv!) using pip or simply getting a copy of the code and putting it in a directory in your codebase.pip install django3scaffoldAdddjango3scaffoldto your Django settingsINSTALLED_APPS\ :INSTALLED_APPS = [
# ...
"django3scaffold",
]Add the following to your settings.py with appropriate values:IS_DEVIS_PRODDOMAIN_NAMEWWW_ROOTDOMAIN_NAME= 'localhost'
WWW_ROOT = BASE_DIR
IS_DEV = True
IS_PROD = FalseAdddjango3scaffoldto your Django settingsTEMPLATE_CONTEXT_PROCESSORS\ :'OPTIONS': {
     'context_processors': [
         ...
         'django3scaffold.context_processors.django3scaffold_settings',
         ...

     ],usage#. RunTo run scaffold type:python manage.py scaffold APPNAME --model MODELNAME [fields]APPNAME is app name. If app does not exists it will be created.
MODELNAME is model name. Just enter model name that you want to create (for example: Blog, Topic, Post etc). It must be alphanumerical. Only one model per run is allowed![fields] - list of the model fields.#. Field typesAvailable fields:char - CharField
    text - TextField
    int - IntegerFIeld
    decimal -DecimalField
    datetime - DateTimeField
    foreign - ForeignKeyAll fields requires name that is provided after:sign, for example:char:title  text:body int:posts datetime:create_dateTwo fieldsforeignanddecimalrequires additional parameters:"foreign" as third argument takes foreignkey model, example:foreign:blog:Blog, foreign:post:Post, foreign:added_by:UserNOTICE: All foreign key models must alread exist in project. User and Group model are imported automatically.decimal field requires two more argumentsmax_digitsanddecimal_places\ , example:decimal:total_cost:10:2NOTICE: To all models scaffold automatically adds two fields: update_date and create_date.#. How it works?Scaffold creates models, views (CRUD), forms, templates, admin, urls and basic tests (CRUD). Scaffold templates are using two blocks extending from base.html:{% extends "base.html" %}
    {% block page-title %} {% endblock %}
    {% block conent %} {% endblock %}So be sure you have your base.html set up properly.Scaffolding example usageLet's create very simpleforumapp. We needForum,TopicandPostmodel.Forum modelForum model needs just one fieldname:python manage.py scaffold forum --model Forum char:nameTopic modelTopics are created by site users so we need:created_by,titleandForumforeign key (update_dateandcreate_dateare always added to models):python manage.py scaffold forum --model Topic foreign:created_by:User char:title foreign:forum:ForumPost modelLast one are Posts. Posts are related to Topics. Here we need:title,body,created_byand foreign key toTopic\ :python manage.py scaffold forum --model Post char:title text:body foreign:created_by:User foreign:topic:TopicAll data should be in place!Now you must addforumapp toINSTALLED_APPS:``
INSTALLED_APPS = [
    # ...
    "forum",
]
``Now you must include app inurls.pyfile by adding into urlpatterns:from django.conf.urls import url
from django.urls import include

   urlpatterns = patterns('',

       url(r'', include('forum.urls')),

   )Now syncdb new app and you are ready to go::
add include and url and path ro url file
add app name to settings
fix from django.urls import reverse in viewspython manage.py migrate --run-syncdb
  python manage.py makemigrations
  python manage.py migrateRun your server:python manage.py runserverAnd go to forum main page:http://localhost:8000/forum/All structure are in place. Now you can personalize models, templates and urls.At the end you can test new app by runing test:python manage.py test forumCreating test database for alias 'default'...
.......Ran 7 tests in 0.884sOKHappy scaffolding!This open-source app is brought to you by Tokyo Developers, Inc. (http://tokyodevs.com/)