cannot open manage.py after installing django

后端 未结 13 1061
暗喜
暗喜 2021-02-04 11:23

I have a problem in setting up django.

My situation: I have Anaconda Python 2.7 in my Windows 8 computer. On the Anaconda command prompt window, I type: pip instal

13条回答
  •  执念已碎
    2021-02-04 11:58

    I ran into the same error seller. But this is what I discovered

    1: open your terminal in your project environment

    2: install Django using: pip install django (if you are on windows)

    3: then create your Django project using : django-admin startproject newproject . (django-admin start-project followed by project name give a space and add period (.) ) So it goes like this

    django-admin startproject new project .

    The period/fullstop (.) At the end tells djando the area in which the file should be created which is inside the project file its self you are working on. After this is done you are free to go. You can now run your server and enjoy

    Run server using: python manage.py runserver

提交回复
热议问题