On Tue, Aug 30, 2022 at 1:41 PM Eric Fahlgren <ericfahlg...@gmail.com> wrote:
> On the other hand, you can add an (or modify the existing) argument parser > to supply those defaults in mysite.py's main. Neither of these requires > that you do anything to your PyInstaller spec (and I'm having a hard time > seeing where you would do this at the PyInstaller phase of deployment). > I agree -- the trick is to provide PyInstaller with a startup script that doesn't require any command line args. I'm not sure what startup script you're using -- but you can either alter it to have the defaults you want, or write a little wrapper that provides those defaults, and use that wrapper as your main script for PyInstaller. -CHB > > On Tue, Aug 30, 2022 at 12:31 AM Pierre <fendypie...@gmail.com> wrote: > >> Does anyone have a .spec file or example of a django implementation of >> pyinstaller? Currently I have to run: >> >> mysite.exe runserver localhost:8000 --noreload >> >> Where as I would like to be able to set that as the default behavior if a >> user clicks the executable. Even better would be to be able to run migrate >> before runserver. The client that will be receiving the file is not >> savvy and I would like to simplify the package installation as much as >> possible. >> >> Thank you! >> >> -- >> You received this message because you are subscribed to the Google Groups >> "PyInstaller" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to pyinstaller+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/pyinstaller/bda92104-09b8-4fb3-ae6f-7c172ddb3caen%40googlegroups.com >> <https://groups.google.com/d/msgid/pyinstaller/bda92104-09b8-4fb3-ae6f-7c172ddb3caen%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- > You received this message because you are subscribed to the Google Groups > "PyInstaller" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pyinstaller+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pyinstaller/CAP2Qz%2BUsHpHhBGAVe35a%2BLwpNB8yLjnXPa3jtpOMkHQ%3DSKkV%3Dg%40mail.gmail.com > <https://groups.google.com/d/msgid/pyinstaller/CAP2Qz%2BUsHpHhBGAVe35a%2BLwpNB8yLjnXPa3jtpOMkHQ%3DSKkV%3Dg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception chris.bar...@noaa.gov -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to pyinstaller+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/CALGmxE%2B4rfwTCE7Z7Uk3iPDha00oem03JoXJLYzbfhUvLv9gMw%40mail.gmail.com.