I can't figure out how to use Poetry for a Django project with custom (not third party) apps. Suppose we have a typical Django project structure:
[projectname]/
โโโ [projectname]/
โ โโโ __init__.py
โ โโโ settings.py
โ โโโ urls.py
โ โโโ wsgi.py
โโโ [app-1]/
โ โโโ __init__.py
โ โโโ models.py
โ โโโ views.py
โ โโโ urls.py
โโโ [app-2]/
โ โโโ __init__.py
โ โโโ models.py
โ โโโ views.py
โ โโโ urls.py
โโโ [app-n]/
โ โโโ __init__.py
โ โโโ models.py
โ โโโ views.py
โ โโโ urls.py
โโโ manage.py
What should I do to use poetry to manage project dependencies?
Or maybe poetry is designed to manage single app, but not a whole project?
Thanks,
Fabio
You can try to add a pyproject.toml next to the setup.py.
I usually run poetry init next to manage.py.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Closing this issue automatically because it has not had any activity since it has been marked as stale. If you think it is still relevant and should be addressed, feel free to open a new one.
Most helpful comment
I usually run
poetry initnext tomanage.py.