Home > other >  Django project packaging can't find the urls
Django project packaging can't find the urls

Time:01-30

Use pyinstaller manage. Spec package
Project has an app, my, can the normal package is successful, but the use of the manage the. Exe runserver then executes the runtime, tip can't find my. Urls as shown in figure,
Development environment running without problems

CodePudding user response:

Windows and Linux system, the path of writing is not the same,
You this is written under Linux, Windows with the C: \ \...

CodePudding user response:

reference 1st floor shoppo0505 response:
Windows and Linux system, the path of writing is not the same,
You this is written under Linux, Windows with the C: \ \...


You said the path (' my/', include (' my. Urls')) the path here?
This should be a url, and domain name format is the same, not Windows local path

in addition, python version 3.6, Django version is 3.1
  • Related