Re: [PyInstaller] Django Pyinstaller

2022-08-30 Thread Eric Fahlgren
So, from the '.exe' I'm assuming a Windows environment?  If so, you have a
couple ways to do this.  You can create a Windows shortcut to the
executable that contains those arguments, the shortcut's "Target" would
look exactly like your specified command line.  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).

On Tue, Aug 30, 2022 at 12:31 AM Pierre  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
> 
> .
>

-- 
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.


[PyInstaller] Django Pyinstaller

2022-08-30 Thread Pierre
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.