Posted almost 4 years ago. Visible to the public. Draft.
django create app in subdir
To create a "polls" app in the "apps" sub-directory, do the following first to make the directory (assuming you are at the root of your django project):
Copymkdir apps/polls
Next, run startapp to create "polls" in under the "app" project directory.
Copystartapp polls apps/polls
Install the app;
CopyINSTALLED_APPS = [ 'apps.polls' ]
migrate:
Copymakemigrations polls migrate
optional:
main urls.py
Copyurlpatterns = [ path('polls/',include('apps.polls.urls'), ]