Django-admin startproject command does not create the Manage.py file

Asked

Viewed 201 times

0

  1. After running the Django-admin startproject command the Manage.py file is not created.
  2. I’m using python 2.7.12
  3. I tested with versions of Django-1.4.3 and Django 1.5.1.
  • 1

    And what are the files created? Please edit the question and add the list of them. By the way, why not take advantage and make the [tour] by the site? It might be interesting to learn the basics of how the site works.

  • Only & #Xa files are created;-init.py -Settings.py -urls.py -wsgi.py

  • 1

    And in the directory above?

  • The first directory is just a subdirectory with the same name.

  • tell us all the files in this directory and send them to us, probably Manage.py is in the directory above and you didn’t see

  • When applying the Django-admin startproject Meusite command the created files are as follows: 1.Meusite - 1.1MeuSite 1.1.1__init__. py 1.1.2__settings. py 1.1.3__urls. py 1.1.4 wsgi.py

  • Take a look at this bug here: https://code.djangoproject.com/ticket/19958 According to him, you may have a duplicated and corrupted Django installation that does not have the manage.py. If you delete the corrupted one, it might solve your problem.

  • For other reasons I formatted my PC, installed python2.7 again and virtualenv and am using the no-site-package configuration in virtualenv, I have no installation of Django in the python directory in C: Python27 only in the virtual environment. I checked that there is the file Manage.py in the directory Django conf project_template, but when executing the startproject command it still does not create. For other versions of python and Django Manage.py is created, for example when I use python 3.5 with Django 1.11.3 it works normally.

Show 3 more comments

1 answer

0

I do not know if it was the case but try to put the name of the directory at the end, example:

You put django-admin startproject try to put django-admin startproject nome_da_pasta

I know your question is old but it should help someone

Browser other questions tagged

You are not signed in. Login or sign up in order to post.