[Python] Running Django on Google Colab

Discussão em 'Python' iniciado por Stack, Janeiro 26, 2025.

  1. Stack

    Stack Membro Participativo

    I was trying to run the Django on Colab, by following the instruction here, however, after the !python manage.py runserver step, I tried to


    access the server using Google Colab link you printed by running the eval_js method earlier.
    ​

    there is a error msg:


    This page isn’t working0yztv6fmakbj-496ff2e9c6d22116-8000-colab.googleusercontent.com is currently unable to handle this request. HTTP ERROR 500
    ​

    then I tried to access the link http://127.0.0.1:8000/,

    and it appears error msg as follows


    This page isn’t working127.0.0.1 didn’t send any data.
    ​

    May I ask how to fix this? If this is not the way to run Django in Colab, what should I do? and every time I run !python manage.py runserver, it keeps executing the

    Performing system checks...


    Is that normal?

    Continue reading...

Compartilhe esta Página