美文网首页
How to create app under subfolde

How to create app under subfolde

作者: ccphantom | 来源:发表于2017-09-29 02:51 被阅读0次
  1. Create the folder that you want the app created, e.g. price
  2. Create the app
django-admin.py startapp app_name path-to-app/app-name
  1. Change AppConfig name in apps.py file.
class PriceAppConfig(AppConfig):
    name = 'path-to-app.price'
  1. put the app in INSTALLED_APP in settings.py file

相关文章

网友评论

      本文标题:How to create app under subfolde

      本文链接:https://www.haomeiwen.com/subject/ypjbextx.html