create exe file

This commit is contained in:
Suherdy Yacob 2025-08-18 16:33:14 +07:00
parent e4c9a675b5
commit b8b9edf7d9
20 changed files with 129998 additions and 54 deletions

File diff suppressed because it is too large Load Diff

16356
build/start_server/EXE-00.toc Normal file

File diff suppressed because it is too large Load Diff

16334
build/start_server/PKG-00.toc Normal file

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,207 @@
This file lists modules PyInstaller was not able to find. This does not
necessarily mean this module is required for running your program. Python and
Python 3rd-party packages include a lot of conditional or optional modules. For
example the module 'ntpath' only exists on Windows, whereas the module
'posixpath' only exists on Posix systems.
Types if import:
* top-level: imported at the top-level - look at these first
* conditional: imported within an if-statement
* delayed: imported within a function
* optional: imported within a try-except-statement
IMPORTANT: Do NOT post this list to the issue-tracker. Use it as a basis for
tracking down the missing module yourself. Thanks!
missing module named 'org.python' - imported by copy (optional), xml.sax (delayed, conditional)
missing module named _frozen_importlib_external - imported by importlib._bootstrap (delayed), importlib (optional), importlib.abc (optional), zipimport (top-level), pip._vendor.distlib.resources (optional)
excluded module named _frozen_importlib - imported by importlib (optional), importlib.abc (optional), zipimport (top-level), pip._vendor.distlib.resources (optional)
missing module named org - imported by pickle (optional)
missing module named urllib.splittype - imported by urllib (conditional), pip._vendor.distlib.compat (conditional)
missing module named urllib.ContentTooShortError - imported by urllib (conditional), pip._vendor.distlib.compat (conditional)
missing module named urllib.pathname2url - imported by urllib (conditional), pip._vendor.distlib.compat (conditional)
missing module named urllib.url2pathname - imported by urllib (conditional), pip._vendor.distlib.compat (conditional)
missing module named urllib.unquote - imported by urllib (conditional), pip._vendor.distlib.compat (conditional)
missing module named urllib.quote - imported by urllib (conditional), pip._vendor.distlib.compat (conditional)
missing module named urllib.urlretrieve - imported by urllib (conditional), pip._vendor.distlib.compat (conditional)
missing module named posix - imported by os (conditional, optional), posixpath (optional), shutil (conditional), importlib._bootstrap_external (conditional)
missing module named resource - imported by posix (top-level), test.support (delayed, conditional, optional)
missing module named grp - imported by shutil (delayed, optional), tarfile (optional), pathlib (delayed, optional), subprocess (delayed, conditional, optional), distutils.archive_util (optional), setuptools._distutils.archive_util (optional)
missing module named pwd - imported by posixpath (delayed, conditional, optional), shutil (delayed, optional), tarfile (optional), pathlib (delayed, optional), subprocess (delayed, conditional, optional), getpass (delayed), http.server (delayed, optional), webbrowser (delayed), netrc (delayed, conditional), smtpd (conditional, optional), distutils.util (delayed, conditional, optional), distutils.archive_util (optional), setuptools._distutils.archive_util (optional), setuptools._distutils.util (delayed, conditional, optional)
missing module named pyimod02_importers - imported by D:\Pythoncode\Django_Basic_Manufacturing\.venv\Lib\site-packages\PyInstaller\hooks\rthooks\pyi_rth_pkgutil.py (delayed), D:\Pythoncode\Django_Basic_Manufacturing\.venv\Lib\site-packages\PyInstaller\hooks\rthooks\pyi_rth_pkgres.py (delayed)
missing module named _posixsubprocess - imported by subprocess (conditional), multiprocessing.util (delayed)
missing module named fcntl - imported by subprocess (optional), django.core.files.locks (conditional, optional), pty (delayed, optional)
missing module named _manylinux - imported by pip._vendor.packaging._manylinux (delayed, optional), packaging._manylinux (delayed, optional), setuptools._vendor.packaging._manylinux (delayed, optional), pkg_resources._vendor.packaging._manylinux (delayed, optional)
missing module named jinja2 - imported by django.template.backends.jinja2 (top-level), django.test.utils (optional), pkg_resources._vendor.pyparsing.diagram (top-level), setuptools._vendor.pyparsing.diagram (top-level)
missing module named pyparsing - imported by pkg_resources._vendor.pyparsing.diagram (top-level), setuptools._vendor.pyparsing.diagram (top-level)
missing module named railroad - imported by pkg_resources._vendor.pyparsing.diagram (top-level), setuptools._vendor.pyparsing.diagram (top-level)
missing module named termios - imported by django.utils.autoreload (optional), getpass (optional), tty (top-level)
missing module named readline - imported by code (delayed, conditional, optional), django.core.management.commands.shell (delayed, optional), rlcompleter (optional), cmd (delayed, conditional, optional), pdb (delayed, optional), site (delayed, optional), pstats (conditional, optional), django_extensions.management.commands.shell_plus (delayed, optional)
missing module named 'pkg_resources.extern.pyparsing' - imported by pkg_resources._vendor.packaging.markers (top-level), pkg_resources._vendor.packaging.requirements (top-level)
missing module named 'pkg_resources.extern.importlib_resources' - imported by pkg_resources._vendor.jaraco.text (optional)
missing module named 'pkg_resources.extern.more_itertools' - imported by pkg_resources._vendor.jaraco.functools (top-level)
missing module named 'win32com.shell' - imported by pkg_resources._vendor.appdirs (conditional, optional)
missing module named 'com.sun' - imported by pkg_resources._vendor.appdirs (delayed, conditional, optional)
missing module named com - imported by pkg_resources._vendor.appdirs (delayed)
missing module named win32api - imported by pkg_resources._vendor.appdirs (delayed, conditional, optional), setuptools._distutils.msvccompiler (optional)
missing module named win32com - imported by pkg_resources._vendor.appdirs (delayed)
missing module named _winreg - imported by platform (delayed, optional), pkg_resources._vendor.appdirs (delayed, conditional)
missing module named pkg_resources.extern.packaging - imported by pkg_resources.extern (top-level), pkg_resources (top-level)
missing module named pkg_resources.extern.appdirs - imported by pkg_resources.extern (top-level), pkg_resources (top-level)
missing module named 'pkg_resources.extern.jaraco' - imported by pkg_resources (top-level), pkg_resources._vendor.jaraco.text (top-level)
missing module named _scproxy - imported by urllib.request (conditional)
missing module named 'java.lang' - imported by platform (delayed, optional), xml.sax._exceptions (conditional)
missing module named vms_lib - imported by platform (delayed, optional)
missing module named java - imported by platform (delayed), pip._vendor.distlib.scripts (delayed, conditional)
missing module named win32con - imported by setuptools._distutils.msvccompiler (optional)
missing module named usercustomize - imported by site (delayed, optional)
missing module named sitecustomize - imported by site (delayed, optional)
missing module named _posixshmem - imported by multiprocessing.resource_tracker (conditional), multiprocessing.shared_memory (conditional)
missing module named multiprocessing.set_start_method - imported by multiprocessing (top-level), multiprocessing.spawn (top-level)
missing module named multiprocessing.get_start_method - imported by multiprocessing (top-level), multiprocessing.spawn (top-level)
missing module named multiprocessing.get_context - imported by multiprocessing (top-level), multiprocessing.pool (top-level), multiprocessing.managers (top-level), multiprocessing.sharedctypes (top-level)
missing module named multiprocessing.TimeoutError - imported by multiprocessing (top-level), multiprocessing.pool (top-level)
missing module named multiprocessing.BufferTooShort - imported by multiprocessing (top-level), multiprocessing.connection (top-level)
missing module named multiprocessing.AuthenticationError - imported by multiprocessing (top-level), multiprocessing.connection (top-level)
missing module named asyncio.DefaultEventLoopPolicy - imported by asyncio (delayed, conditional), asyncio.events (delayed, conditional)
missing module named 'setuptools.extern.pyparsing' - imported by setuptools._vendor.packaging.requirements (top-level), setuptools._vendor.packaging.markers (top-level)
missing module named collections.Sequence - imported by collections (optional), setuptools._vendor.ordered_set (optional)
missing module named collections.MutableSet - imported by collections (optional), setuptools._vendor.ordered_set (optional)
missing module named 'setuptools.extern.jaraco' - imported by setuptools._reqs (top-level), setuptools._entry_points (top-level), setuptools.command.egg_info (top-level), setuptools._vendor.jaraco.text (top-level)
missing module named setuptools.extern.importlib_resources - imported by setuptools.extern (conditional), setuptools._importlib (conditional), setuptools._vendor.jaraco.text (optional)
missing module named setuptools.extern.tomli - imported by setuptools.extern (delayed), setuptools.config.pyprojecttoml (delayed)
missing module named setuptools.extern.importlib_metadata - imported by setuptools.extern (conditional), setuptools._importlib (conditional)
missing module named setuptools.extern.ordered_set - imported by setuptools.extern (top-level), setuptools.dist (top-level)
missing module named setuptools.extern.packaging - imported by setuptools.extern (top-level), setuptools.dist (top-level), setuptools.command.egg_info (top-level), setuptools.depends (top-level)
missing module named 'setuptools.extern.more_itertools' - imported by setuptools.dist (top-level), setuptools.config.expand (delayed), setuptools._itertools (top-level), setuptools._entry_points (top-level), setuptools.msvc (top-level), setuptools._vendor.jaraco.functools (top-level)
missing module named 'setuptools.extern.packaging.version' - imported by setuptools.config.setupcfg (top-level), setuptools.msvc (top-level)
missing module named typing_extensions - imported by asgiref.current_thread_executor (conditional), asgiref.sync (conditional), pip._vendor.rich.live (conditional), pip._vendor.pkg_resources (conditional), pip._vendor.rich.progress (conditional), pip._internal.utils.retry (conditional), pip._internal.index.package_finder (conditional), setuptools.command.build (conditional)
missing module named 'setuptools.extern.packaging.utils' - imported by setuptools.wheel (top-level)
missing module named 'setuptools.extern.packaging.tags' - imported by setuptools.wheel (top-level)
missing module named trove_classifiers - imported by setuptools.config._validate_pyproject.formats (optional)
missing module named 'setuptools.extern.packaging.specifiers' - imported by setuptools.config.setupcfg (top-level), setuptools.config._apply_pyprojecttoml (delayed)
missing module named 'setuptools.extern.packaging.requirements' - imported by setuptools.config.setupcfg (top-level)
missing module named importlib_metadata - imported by setuptools._importlib (delayed, optional)
missing module named olefile - imported by PIL.FpxImagePlugin (top-level), PIL.MicImagePlugin (top-level)
missing module named numpy - imported by PIL.Image (delayed, conditional, optional), django.contrib.gis.shortcuts (optional)
missing module named cffi - imported by PIL.Image (optional), PIL.PyAccess (optional)
missing module named defusedxml - imported by PIL.Image (optional)
missing module named pytz - imported by django.utils.timezone (delayed, conditional), django.db.backends.base.base (delayed, conditional), django.templatetags.tz (delayed, conditional)
missing module named _typeshed - imported by asgiref.sync (conditional), pip._vendor.pkg_resources (conditional)
missing module named backports - imported by django.utils.timezone (optional), django.db.backends.base.base (optional), django.templatetags.tz (optional)
missing module named 'psycopg.types' - imported by django.db.backends.postgresql.psycopg_any (optional), django.db.backends.postgresql.operations (conditional), django.contrib.gis.db.backends.postgis.base (conditional), django.contrib.postgres.signals (conditional)
missing module named 'psycopg.pq' - imported by django.db.backends.postgresql.base (conditional), django.contrib.gis.db.backends.postgis.base (conditional)
missing module named 'psycopg.postgres' - imported by django.db.backends.postgresql.psycopg_any (optional)
missing module named psycopg - imported by django.db.backends.postgresql.base (conditional, optional), django.db.backends.postgresql.psycopg_any (optional), django_extensions.management.commands.drop_test_database (delayed, conditional), django_extensions.management.commands.reset_db (delayed, conditional)
missing module named cx_Oracle - imported by django.db.backends.oracle.base (optional), django.db.backends.oracle.introspection (top-level), django.contrib.gis.db.backends.oracle.adapter (top-level), django.contrib.gis.db.backends.oracle.introspection (top-level)
missing module named 'MySQLdb.converters' - imported by django.db.backends.mysql.base (top-level)
missing module named 'MySQLdb.constants' - imported by django.db.backends.mysql.base (top-level), django.db.backends.mysql.introspection (top-level), django.contrib.gis.db.backends.mysql.introspection (top-level)
missing module named MySQLdb - imported by django.db.backends.mysql.base (optional), django_extensions.management.commands.drop_test_database (delayed, conditional), django_extensions.management.commands.reset_db (delayed, conditional)
missing module named colorama - imported by django.core.management.color (optional)
missing module named win32evtlog - imported by logging.handlers (delayed, optional)
missing module named win32evtlogutil - imported by logging.handlers (delayed, optional)
missing module named redis - imported by django.core.cache.backends.redis (delayed), pip._vendor.cachecontrol.caches.redis_cache (conditional)
missing module named pymemcache - imported by django.core.cache.backends.memcached (delayed)
missing module named pylibmc - imported by django.core.cache.backends.memcached (delayed)
missing module named django.db.models.Max - imported by django.db.models (top-level), django.db.models.base (top-level)
missing module named django.db.models.IntegerField - imported by django.db.models (top-level), django.db.models.base (top-level), django.contrib.gis.db.models.functions (top-level), django.contrib.postgres.fields.array (top-level), django.contrib.postgres.aggregates.statistics (top-level)
missing module named django.db.models.NOT_PROVIDED - imported by django.db.models (top-level), django.db.models.base (top-level), django.db.migrations.operations.fields (top-level), django.db.migrations.state (top-level), django.db.migrations.questioner (top-level), django.db.backends.mysql.schema (top-level)
missing module named django.db.models.Field - imported by django.db.models (top-level), django.db.models.query (top-level), django.forms.models (delayed), django.contrib.admin.views.main (top-level), django.contrib.gis.db.models.fields (top-level), django.contrib.postgres.search (top-level), django.contrib.postgres.fields.array (top-level), django.contrib.postgres.fields.hstore (top-level)
missing module named django.db.models.DateTimeField - imported by django.db.models (top-level), django.db.models.query (top-level), django.contrib.postgres.functions (top-level), django_extensions.db.fields (top-level), django_extensions.management.commands.dumpscript (top-level)
missing module named django.db.models.DateField - imported by django.db.models (top-level), django.db.models.query (top-level), django_extensions.management.commands.dumpscript (top-level)
missing module named django.db.models.DurationField - imported by django.db.models (top-level), django.db.backends.oracle.functions (top-level)
missing module named django.db.models.DecimalField - imported by django.db.models (top-level), django.db.backends.oracle.functions (top-level)
missing module named django.db.models.BooleanField - imported by django.db.models (delayed), django.db.models.query_utils (delayed), django.db.models.sql.where (delayed), django.contrib.gis.db.models.functions (top-level), django.contrib.postgres.aggregates.general (top-level), django_extensions.management.commands.dumpscript (top-level)
missing module named django.db.models.UniqueConstraint - imported by django.db.models (top-level), django.db.models.options (top-level), django.db.backends.mysql.schema (top-level), django.db.backends.sqlite3.schema (top-level), django_extensions.db.fields (top-level), django_extensions.management.commands.sqldiff (top-level)
missing module named django.db.models.AutoField - imported by django.db.models (top-level), django.db.models.options (top-level), django.db.models.query (top-level), django.forms.models (delayed), django.db.backends.oracle.operations (top-level), django_extensions.management.commands.dumpscript (top-level)
missing module named pywatchman - imported by django.utils.autoreload (optional)
missing module named ConfigParser - imported by pip._vendor.distlib.compat (conditional), decouple (conditional)
missing module named 'pygments.lexers' - imported by django_extensions.templatetags.highlighting (optional), django_extensions.templatetags.syntax_color (optional)
missing module named 'pygments.formatters' - imported by django_extensions.management.debug_cursor (delayed, conditional, optional), django_extensions.templatetags.highlighting (optional), django_extensions.templatetags.syntax_color (optional)
missing module named pygments - imported by django_extensions.management.debug_cursor (delayed, conditional, optional), django_extensions.templatetags.highlighting (optional), django_extensions.templatetags.syntax_color (optional)
missing module named 'mongoengine.queryset' - imported by django_extensions.mongodb.models (top-level)
missing module named 'mongoengine.fields' - imported by django_extensions.mongodb.models (top-level), django_extensions.mongodb.fields (top-level)
missing module named 'mongoengine.document' - imported by django_extensions.mongodb.models (top-level)
missing module named IPython - imported by django_extensions.management.utils (delayed, optional), django_extensions.management.commands.shell_plus (delayed, optional)
missing module named ipdb - imported by django.test.runner (optional), django_extensions.management.utils (delayed, optional), django_extensions.management.commands.runserver_plus (delayed, conditional, optional)
missing module named mongoengine - imported by django_extensions.management.shells (delayed, optional)
missing module named boto - imported by django_extensions.management.commands.sync_s3 (optional)
missing module named 'prompt_toolkit.contrib' - imported by django_extensions.management.commands.shell_plus (delayed, optional)
missing module named 'ptpython.ipython' - imported by django_extensions.management.commands.shell_plus (delayed, optional)
missing module named 'ptpython.repl' - imported by django_extensions.management.commands.shell_plus (delayed, optional)
missing module named prompt_toolkit - imported by django_extensions.management.commands.shell_plus (delayed, optional)
missing module named ptpython - imported by django_extensions.management.commands.shell_plus (delayed, optional)
missing module named 'IPython.Shell' - imported by django_extensions.management.commands.shell_plus (delayed, optional)
missing module named bpython - imported by django.core.management.commands.shell (delayed), django_extensions.management.commands.shell_plus (delayed, optional)
missing module named 'notebook.notebookapp' - imported by django_extensions.management.commands.shell_plus (delayed, optional)
missing module named jupyterlab - imported by django_extensions.management.commands.shell_plus (delayed, optional)
missing module named 'IPython.frontend' - imported by django_extensions.management.commands.shell_plus (delayed, optional)
missing module named 'IPython.html' - imported by django_extensions.management.commands.shell_plus (delayed, optional)
missing module named notebook - imported by django_extensions.management.commands.shell_plus (delayed, optional)
missing module named django_pdb - imported by django_extensions.management.commands.runserver_plus (delayed, optional)
missing module named OpenSSL - imported by pip._vendor.urllib3.contrib.pyopenssl (top-level), django_extensions.management.commands.runserver_plus (optional)
missing module named 'werkzeug._internal' - imported by django_extensions.management.commands.runserver_plus (optional)
missing module named 'werkzeug.serving' - imported by django_extensions.management.commands.runserver_plus (optional)
missing module named 'werkzeug.debug' - imported by django_extensions.management.commands.runserver_plus (optional)
missing module named werkzeug - imported by django_extensions.management.commands.runserver_plus (optional)
missing module named hotshot - imported by django_extensions.management.commands.runprofileserver (delayed, optional)
missing module named yaml - imported by django.core.serializers.pyyaml (top-level), django_extensions.management.commands.print_settings (delayed, conditional)
missing module named requests - imported by django_extensions.management.commands.pipchecker (optional)
missing module named 'pip.req' - imported by django_extensions.management.commands.pipchecker (optional)
missing module named 'pip.download' - imported by django_extensions.management.commands.pipchecker (optional)
missing module named pip.get_installed_distributions - imported by pip (optional), django_extensions.management.commands.pipchecker (optional)
missing module named jnius - imported by pip._vendor.platformdirs.android (delayed, conditional, optional)
missing module named android - imported by pip._vendor.platformdirs.android (delayed, conditional, optional)
missing module named 'IPython.display' - imported by pip._vendor.rich.jupyter (delayed, optional), pip._vendor.rich.live (delayed, conditional, optional)
missing module named 'IPython.core' - imported by pip._vendor.rich.pretty (delayed, optional)
missing module named attr - imported by pip._vendor.rich.pretty (optional)
missing module named ipywidgets - imported by pip._vendor.rich.live (delayed, conditional, optional)
missing module named 'pip._vendor.rich.markdown' - imported by pip._vendor.rich.__main__ (top-level)
missing module named _abcoll - imported by pip._vendor.distlib.compat (optional)
missing module named dummy_thread - imported by pip._vendor.distlib.compat (optional)
missing module named thread - imported by pip._vendor.distlib.compat (optional)
missing module named collections.MutableMapping - imported by collections (optional), pip._vendor.urllib3._collections (optional), pip._vendor.distlib.compat (optional)
missing module named htmlentitydefs - imported by pip._vendor.distlib.compat (conditional)
missing module named HTMLParser - imported by pip._vendor.distlib.compat (conditional)
missing module named Queue - imported by pip._vendor.urllib3.util.queue (conditional), pip._vendor.distlib.compat (conditional)
missing module named xmlrpclib - imported by pip._vendor.distlib.compat (conditional)
missing module named httplib - imported by pip._vendor.distlib.compat (conditional)
missing module named urllib2 - imported by pip._vendor.distlib.compat (conditional)
missing module named urlparse - imported by pip._vendor.distlib.compat (conditional)
missing module named __builtin__ - imported by pip._vendor.distlib.compat (conditional)
missing module named StringIO - imported by pip._vendor.urllib3.packages.six (conditional), pip._vendor.distlib.compat (conditional)
missing module named dummy_threading - imported by pip._vendor.requests.cookies (optional), pip._vendor.distlib.util (optional)
missing module named urllib3_secure_extra - imported by pip._vendor.urllib3 (optional)
missing module named 'pip._vendor.urllib3.packages.six.moves' - imported by pip._vendor.urllib3.exceptions (top-level), pip._vendor.urllib3.connection (top-level), pip._vendor.urllib3.util.response (top-level), pip._vendor.urllib3.connectionpool (top-level), pip._vendor.urllib3.request (top-level), pip._vendor.urllib3.util.queue (top-level), pip._vendor.urllib3.poolmanager (top-level)
missing module named 'OpenSSL.crypto' - imported by pip._vendor.urllib3.contrib.pyopenssl (delayed)
missing module named 'cryptography.x509' - imported by pip._vendor.urllib3.contrib.pyopenssl (delayed, optional)
missing module named 'cryptography.hazmat' - imported by pip._vendor.urllib3.contrib.pyopenssl (top-level)
missing module named cryptography - imported by pip._vendor.urllib3.contrib.pyopenssl (top-level), pip._vendor.requests (conditional, optional)
missing module named 'OpenSSL.SSL' - imported by pip._vendor.urllib3.contrib.pyopenssl (top-level)
missing module named collections.Mapping - imported by collections (optional), pip._vendor.urllib3._collections (optional)
missing module named socks - imported by pip._vendor.urllib3.contrib.socks (optional)
missing module named pip.__file__ - imported by pip (top-level), pip._internal.build_env (top-level)
missing module named filelock - imported by pip._vendor.cachecontrol.caches.file_cache (delayed, conditional, optional)
missing module named pip._vendor.msgpack._cmsgpack - imported by pip._vendor.msgpack (conditional, optional)
missing module named '__pypy__.builders' - imported by pip._vendor.msgpack.fallback (conditional)
missing module named __pypy__ - imported by pip._vendor.msgpack.fallback (conditional)
excluded module named __main__ - imported by pip._vendor.pkg_resources (delayed, optional)
missing module named 'pip._internal.download' - imported by django_extensions.management.commands.pipchecker (optional)
missing module named 'pip._vendor.urllib3.proxymanager' - imported by pip._internal.network.session (conditional)
missing module named keyring - imported by pip._internal.network.auth (delayed)
missing module named pydot - imported by django_extensions.management.commands.graph_models (optional)
missing module named pydotplus - imported by django_extensions.management.commands.graph_models (optional)
missing module named pygraphviz - imported by django_extensions.management.commands.graph_models (optional)
missing module named vobject - imported by django_extensions.management.commands.export_emails (delayed, optional)
missing module named shortuuid - imported by django_extensions.db.fields (optional)
missing module named selenium - imported by django.test.selenium (delayed, conditional)
missing module named tblib - imported by django.test.runner (optional)
missing module named django.contrib.postgres.fields.ArrayField - imported by django.contrib.postgres.fields (top-level), django.contrib.postgres.expressions (top-level), django.contrib.postgres.aggregates.general (top-level)
missing module named 'geoip2.database' - imported by django.contrib.gis.geoip2.base (top-level)
missing module named geoip2 - imported by django.contrib.gis.geoip2 (optional)
missing module named 'psycopg.adapt' - imported by django.contrib.gis.db.backends.postgis.base (conditional)
missing module named 'docutils.parsers' - imported by django.contrib.admindocs.utils (optional)
missing module named 'docutils.nodes' - imported by django.contrib.admindocs.utils (optional)
missing module named docutils - imported by django.contrib.admindocs.utils (optional)
missing module named 'selenium.webdriver' - imported by django.contrib.admin.tests (delayed)

File diff suppressed because it is too large Load Diff

View File

@ -1,21 +0,0 @@
import os
import django
from django.contrib.auth import get_user_model
# Set up Django
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'manufacture_app.settings')
django.setup()
# Get the User model
User = get_user_model()
# Create a superuser
if not User.objects.filter(username='admin').exists():
User.objects.create_superuser(
username='admin',
email='admin@example.com',
password='admin123'
)
print('Superuser "admin" created successfully!')
else:
print('Superuser "admin" already exists!')

Binary file not shown.

BIN
dist/start_server.exe vendored Normal file

Binary file not shown.

6
start_server.py Normal file
View File

@ -0,0 +1,6 @@
import os
from django.core.management import execute_from_command_line
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'manufacture_app.settings')
execute_from_command_line(['manage.py', 'runserver', '--noreload'])

126
start_server.spec Normal file
View File

@ -0,0 +1,126 @@
# -*- mode: python ; coding: utf-8 -*-
import os
import sys
from pathlib import Path
# Get the base directory (current working directory)
base_dir = Path.cwd()
# Collect Django apps data
datas = []
# Add templates directory
templates_dir = base_dir / 'templates'
if templates_dir.exists():
for root, dirs, files in os.walk(templates_dir):
for file in files:
file_path = Path(root) / file
relative_path = file_path.relative_to(base_dir)
datas.append((str(file_path), str(relative_path.parent)))
# Add static files directory
static_dir = base_dir / 'static'
if static_dir.exists():
for root, dirs, files in os.walk(static_dir):
for file in files:
file_path = Path(root) / file
relative_path = file_path.relative_to(base_dir)
datas.append((str(file_path), str(relative_path.parent)))
# Add media files directory
media_dir = base_dir / 'media'
if media_dir.exists():
for root, dirs, files in os.walk(media_dir):
for file in files:
file_path = Path(root) / file
relative_path = file_path.relative_to(base_dir)
datas.append((str(file_path), str(relative_path.parent)))
# Add all Django apps with their migrations
django_apps = ['core', 'users', 'inventory', 'purchase', 'manufacture', 'sales']
for app in django_apps:
app_dir = base_dir / app
if app_dir.exists():
# Add the app directory
for root, dirs, files in os.walk(app_dir):
for file in files:
file_path = Path(root) / file
relative_path = file_path.relative_to(base_dir)
datas.append((str(file_path), str(relative_path.parent)))
# Add templates for this app if they exist
app_templates_dir = base_dir / 'templates' / app
if app_templates_dir.exists():
for root, dirs, files in os.walk(app_templates_dir):
for file in files:
file_path = Path(root) / file
relative_path = file_path.relative_to(base_dir)
datas.append((str(file_path), str(relative_path.parent)))
# Add the database
db_file = base_dir / 'db.sqlite3'
if db_file.exists():
datas.append((str(db_file), '.'))
# Hidden imports for Django
hiddenimports = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django_extensions',
'crispy_forms',
'crispy_bootstrap5',
'core',
'users',
'inventory',
'purchase',
'manufacture',
'sales',
'manufacture_app',
'django.contrib.admin.apps',
'django.contrib.auth.apps',
'django.contrib.contenttypes.apps',
'django.contrib.sessions.apps',
'django.contrib.messages.apps',
'django.contrib.staticfiles.apps',
]
a = Analysis(
['start_server.py'],
pathex=[],
binaries=[],
datas=datas,
hiddenimports=hiddenimports,
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
optimize=0,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='start_server',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)

View File

@ -1,33 +0,0 @@
import os
import django
from django.contrib.auth import get_user_model
# Set up Django
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'manufacture_app.settings')
django.setup()
# Get the User model
User = get_user_model()
# Check if admin user exists and update their user_type if needed
try:
admin_user = User.objects.get(username='admin')
print(f"Admin user found: {admin_user.username}")
print(f"Current user_type: {admin_user.user_type}")
# Set user_type to 'admin' if it's not already
if admin_user.user_type != 'admin':
admin_user.user_type = 'admin'
admin_user.save()
print("Updated admin user to 'admin' user_type")
else:
print("Admin user already has 'admin' user_type")
# Print permissions
print(f"Has purchase permission: {admin_user.has_purchase_permission()}")
print(f"Has user management permission: {admin_user.has_user_management_permission()}")
except User.DoesNotExist:
print("Admin user not found")
except Exception as e:
print(f"Error: {e}")