Error(after updating to django 1.9

271 views
Skip to first unread message

Deepak Gupta

unread,
Feb 17, 2016, 11:54:17 AM2/17/16
to Django users

I am trying to create a project
CommandError: /home/shaastr/bnms/manage.py already exists, overlaying a project or app into an existing directory won't replace conflicting files

James Schneider

unread,
Feb 17, 2016, 7:43:23 PM2/17/16
to django...@googlegroups.com
On Wed, Feb 17, 2016 at 8:34 AM, Deepak Gupta <deegup...@gmail.com> wrote:

I am trying to create a project
CommandError: /home/shaastr/bnms/manage.py already exists, overlaying a project or app into an existing directory won't replace conflicting files

Are you trying to create a project with the same name in the same location? You'll need to either delete/move the existing project, or pick a new name/location for your new project.

If you are just trying to update Django itself, but keep the same project files, then there's no need to start a new project. You'll just update the code in your existing project to work with Django 1.9 after updating your Django installation (usually through pip). 

-James 

inspiringword

unread,
Jun 10, 2017, 3:25:26 PM6/10/17
to Django users
Try to remove django manually 
sudo pip uninstall django

inspiringword

unread,
Jun 10, 2017, 3:25:31 PM6/10/17
to Django users
Try to remove manually
     sudo pip uninstall django
     sudo rm /usr/local/lib/python2.7/dist-packages/django_* -rf 

 Then install latest version 
     sudo pip install django==<version>

this worked for me.


On Wednesday, February 17, 2016 at 10:24:17 PM UTC+5:30, Deepak Gupta wrote:
Reply all
Reply to author
Forward
0 new messages