Re: Where to include libraries I write in a django app

2023-03-14 Thread Scott McKissock
Thanks, that makes sense. On Monday, 13 March 2023 at 14:23:19 UTC-4 bck...@gmail.com wrote: > Hi Scott, > > Yes, generally single-app relevant utility code should be included as > additional modules within that app. Some examples: > my_app ├── __init__.py ├── apps.py ├── models.py ├── urls.py ├

Re: Where to include libraries I write in a django app

2023-03-13 Thread bck...@gmail.com
Hi Scott, Yes, generally single-app relevant utility code should be included as additional modules within that app. Some examples: my_app ├── __init__.py ├── apps.py ├── models.py ├── urls.py ├── utils.py # include utility code as another module └── views.py ​ my_app ├── __init__.py ├── apps.py

Where to include libraries I write in a django app

2023-03-11 Thread Scott McKissock
Django/Python noob question. What is the convention for including utility packages/modules within a django app? I have a bit of code that will only be used in a single django app, and I'd like to write tests for it and use it within the app. Should I just put it in a directory/package in the ro