Opened 19 hours ago

Closed 18 hours ago

#35968 closed Uncategorized (invalid)

src layout and startapp

Reported by: Stuart Axon Owned by:
Component: Core (Management commands) Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I recently moved to src layout for new projects, it's been good - though when I used startapp in my project root, I was suprised to get the app in the project root directory and not the src folder.

When using src layout should django be able to default to creating apps in the src folder in that case ?

python src/manage.py startapp ingest

Resulted in "ingest" in the current directory, not "src".

Change History (1)

comment:1 by Natalia Bidart, 18 hours ago

Component: UncategorizedCore (Management commands)
Resolution: invalid
Status: newclosed
Version: 5.1dev

Hello Stuart, thank you for taking the time to create this ticket. Django does not perform any special handling of any folder, particularly does not consider src different in any way. The documentation for startapp clearly indicates that the app is created in the current directory.

I'll be closing this ticket accordingly, but if you have more questions regarding how to use Django, you can use any of the several user support channels available. Please refer to TicketClosingReasons/UseSupportChannels for ways to get help.

Note: See TracTickets for help on using tickets.
Back to Top