New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Misc Django import finder bugs #3824
Misc Django import finder bugs #3824
Conversation
* Cannot use hasattr on a dict
* split settings on '.settings' and assume first part is abs app module
…LED_APPS * Also remove long defunct TEMPLATE_CONTEXT_PROCESSORS & TEMPLATE_LOADERS
Hi i pulled in your PR and rebased it on top of pyinstaller/develop. I faced some issues, i have uploaded a couple of gists. This log is when i tried to run the manage.exe runserver Did you face this? I am on Django 1.11, Python 2.7 |
I saw this too, presumably safe to ignore if not using
Yes, templatetags are another issue, I resolved this by explicitly registering under But other than that, I'd recommend using your own |
@ciarancourtney Sorry was off for a couple of days. Will try it now |
Using Django 1.11 on Python 3.6, don't think it will make much difference |
Ah okay! I did fix by adding a little more data to my .spec file.
After 'Must be one of:' it is blank. I think i am missing more hidden imports here. |
Look at #1717 (comment) for i18n error And you need to bundle your templates as data files. See helper function |
@ciarancourtney Okay it did start to work on python3.5. I still had the bug in python2.7 weirdly! |
I also have couple of fixes to django_import_finder.py to support django 2.0+ |
I am using django 1.11 with Python 2.7.16 and PyInstaller 3.2, getting this error when running my app: [11/Jun/2019 15:50:25] INFO [webservice:188] service is starting from main... Here are my templates settings: TEMPLATES = [
] I have tried to add the import to my PyInstaller hook file for hiddenimports, but doesn't seem to be helpful: hiddenimports = [] I think for some reason PyInstaller is having a hardtime locating django/temaplate/loaders/ module. |
Stale |
Will probably fix #2281 among other issues where Django <1.8 settings were assumed, This PR assumes only Django >=1.8 is supported.