Thanks Chris! I have tested it with a new project, but the problem is still the same. I have tried to write all the hiddenimports, and it runs without any errors, but it is strange that the functionality of the application is lost, Maybe PyInstaller not support for Django so well.
在 2020年3月5日星期四 UTC+8上午12:02:19,Shi James写道: > > I created the most simple Python/Django project following to the standard > procedure: virtual environment => startproject, startapp, simple model with > one Char field. Also I add my model to the admin.py file. Then I ran > makemigrations, migrate, createsuperuser. > > If I run like python manage.py runserver then everything is perfect: I > can view and edit my model. > > But I need to run my program as a single exe-file. For that purpose I use > PyInstaller with default settings. The exe file is generated with no errors. > > And here is the problem: there is no my model at the Admin Panel except > User and User Groups. > > My environment is Python 3.7, Django 2.2, Pyinstaller 3.4, Windows 7. > Everything is under a virtual environment. > > Have anyone run into that problem? Is there any workaround to it? > > Thanks in advance. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/e3eadb0f-d2dc-4493-8bec-d0289f7d80af%40googlegroups.com.
