a-shell icon indicating copy to clipboard operation
a-shell copied to clipboard

Django cannot runserver

Open izewang opened this issue 4 years ago • 7 comments

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

izewang avatar Jun 09 '20 04:06 izewang

That is interesting. As Django runs multiple process, I think it is not directly portable inside a-Shell. I'll keep it in mind.

holzschu avatar Jun 09 '20 14:06 holzschu

Found a workaround: python manage.py runserver --noreload

izewang avatar Nov 06 '20 16:11 izewang

I installed django but where to find the django-admin command to start a project?

ifuchs avatar Mar 05 '21 16:03 ifuchs

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.

holzschu avatar Mar 05 '21 16:03 holzschu

Perfect!

ifuchs avatar Mar 05 '21 16:03 ifuchs

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?

ghost avatar Jan 28 '22 15:01 ghost

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.

holzschu avatar Jan 28 '22 16:01 holzschu