#27163: Unable to specify multiple pythonpath in django-admin
-------------------------------------+-------------------------------------
     Reporter:  AlJohri              |                    Owner:  nobody
         Type:  Uncategorized        |                   Status:  new
    Component:  Core (Management     |                  Version:  1.10
  commands)                          |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by AlJohri):

 Yeah, that makes sense.

 It was a pretty weird reason to need the parameter. I was sourcing a bash
 script that set my `PYTHONPATH` and other environment variables when
 developing locally. I tried doing the same thing when moving to docker via
 `docker-compose run myapp source myscript && django-admin dbshell
 --settings=myapp.settings`  but apparently you can't do that. So my next
 option was `docker-compose run myapp django-admin dbshell
 --settings=myapp.settings --pythonpath="lib:admin"`. After submitting that
 PR, I realized I could just set `PYTHONPATH` as an environment variable in
 docker-compose like a normal person and that solved my issue.

--
Ticket URL: <https://code.djangoproject.com/ticket/27163#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.7a5ba562fe9dc99423e6b61448511dd7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to