Я нашел решение, добавив 'runsslserver': 'sslserver' в команды словарь в
PyInstaller\loader\rthooks\pyi_rth_django.py
файле.
import django.core.management
import django.utils.autoreload
def _get_commands():
# Django groupss commands by app.
# This returns static dict() as it is for django 1.8 and the default project.
commands = {
'changepassword': 'django.contrib.auth',
'check': 'django.core',
'clearsessions': 'django.contrib.sessions',
'collectstatic': 'django.contrib.staticfiles',
'compilemessages': 'django.core',
'createcachetable': 'django.core',
'createsuperuser': 'django.contrib.auth',
'dbshell': 'django.core',
'diffsettings': 'django.core',
'dumpdata': 'django.core',
'findstatic': 'django.contrib.staticfiles',
'flush': 'django.core',
'inspectdb': 'django.core',
'loaddata': 'django.core',
'makemessages': 'django.core',
'makemigrations': 'django.core',
'migrate': 'django.core',
'runfcgi': 'django.core',
'runserver': 'django.core',
'runsslserver':'sslserver',
'shell': 'django.core',
'showmigrations': 'django.core',
'sql': 'django.core',
'sqlall': 'django.core',
'sqlclear': 'django.core',
'sqlcustom': 'django.core',
'sqldropindexes': 'django.core',
'sqlflush': 'django.core',
'sqlindexes': 'django.core',
'sqlmigrate': 'django.core',
'sqlsequencereset': 'django.core',
'squashmigrations': 'django.core',
'startapp': 'django.core',
'startproject': 'django.core',
'syncdb': 'django.core',
'test': 'django.core',
'testserver': 'django.core',
'validate': 'django.core'
}
return commands