a-shell
a-shell copied to clipboard
Django cannot runserver
I installed django and start a new project. When I am trying to run server, I got the following message:
$ python manage.py runserver Fatal Python error: _Py_InitializeCore_impl: no thread state found
That is interesting. As Django runs multiple process, I think it is not directly portable inside a-Shell. I'll keep it in mind.
Found a workaround: python manage.py runserver --noreload
I installed django but where to find the django-admin command to start a project?
It is installed in the $PATH
, so just django-admin startproject newApp
works (unless you redefined the $PATH
).
It's not in the autocomplete the first time, because the list of commands is created when the App starts.
To be complete, it is installed in ~/Library/bin
.
Perfect!
Found a workaround: python manage.py runserver --noreload
is there a way to activate “auto-reload” and not to run the server with “—noreload” ?
great job with the a-shell and Carnets! 🍻 from me when visiting Romania ! 🍻
is there a discord or any other chat/mailing list for this project?
I don't know enough about Django to answer that question, I'm sorry.
For discord, we do have one now, see #368 for the invite link.