Opened 14 years ago
Closed 14 years ago
#16616 closed Bug (worksforme)
startproject should use virtualenv compatible /usr/bin/env python hashbang for manage.py
| Reported by: | Odin Hørthe Omdal | Owned by: | nobody |
|---|---|---|---|
| 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: | yes | UI/UX: | no |
Description
Always after doing django-admin.py startproject test I need to change #!/usr/bin/python to #!/usr/bin/env python in order for it to work without problem with virtualenv.
Using #!/usr/bin/env python as a hashbang is a very common idiom in python, and I believe there shouldn't be any problems using that.
Change History (1)
comment:1 by , 14 years ago
| Resolution: | → worksforme |
|---|---|
| Status: | new → closed |
Version 0, edited 14 years ago by (next)
Note:
See TracTickets
for help on using tickets.
I found only one instance of
#!/usr/bin/pythonin the current source tree, and it's an example in the fastcgi docs:All the other files use
#!/usr/bin/env python, in particularproject_template/manage.pydoes:Either you're using an old version of Django where this problem existed, or you packaging / distribution tools change the hash bang.