#34787: The 'runserver' command doesn't work when run from an installed script 
on
Windows
-------------------------------------+-------------------------------------
     Reporter:  Joël Larose          |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Core (Management     |                  Version:  4.2
  commands)                          |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Joël Larose):

 I created a minimal Django project with a `pyproject.toml` file to create
 the custom script `exe`.  I set the various versions of Django as optional
 dependencies to make it easy to switch between the versions without having
 to edit the file each time.

 Here's a summary of the results:
 - Django 3.0:
   - {{{C:\Python\v311\python.exe: can't open file
 'C:\\Users\\jplarose\\Projects\\django-windows-mvp\\venv\\Scripts\\djm':
 [Errno 2] No such file or directory}}}
 - Django 3.1 and 3.2:
   - Works properly
 - Django 4.0, 4.1, and 4.2:
   - {{{C:\Users\jplarose\Projects\django-windows-
 mvp\venv\Scripts\python.exe: Error while finding module specification for
 '__main__' (ValueError: __main__.__spec__ is None)}}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34787#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" 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/django-updates/0107018a2f04d108-1f4d9c29-f233-4078-b1ea-d0bca7730232-000000%40eu-central-1.amazonses.com.

Reply via email to