[Fixed]-Django – tests.py already exists, overlaying a project or app into an existing directory won't replace conflicting files

1👍

You surely have fixed your issue by now, but I wanted to put a fix up for anyone else that comes across this.

I had the same issue (also caused after an upgrade to 1.9), and found that I couldn’t even run django-admin startproject without a similar error when using the same virtualenv.

I created a new virtualenv and then ran pip install -r requirements.txt to load all the project’s required packages. I could then create apps without a problem.

I compared the two virtualenv site-packages directories, but saw no glaring differences. Either way, this worked to fix my issue.

Leave a comment