How can I include custom modules in a Django app

后端 未结 1 2047
醉话见心
醉话见心 2020-12-10 21:07

I\'m really new to Python and Django. I created a class in Python that I would like to use in a Django application. It doesn\'t seem like it belongs in it\'s own application

1条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-10 21:32

    Put it in a module somewhere and import it.

    0 讨论(0)
提交回复
热议问题