Forums

Create a new web app error: Directory not empty

I'm following the instruction on the help page: Deploying an existing Django project on PythonAnywhere. I have copied my code, created a virtualenv, installed Django, and am in the section Setting up your Web app and WSGI file. I'm using the command to create a new web app in the Web tab. On the form page Quickstart new Django project, I have entered theaterforms as the name of my project and /home/ddurkee as the directory. My code is in /home/ddurkee/theaterforms. I am getting this error:

rmdir: failed to remove ‘/home/ddurkee/theaterforms’: Directory not empty

I'm not sure how to proceed. By my understanding of the instructions so far, the directory shouldn't be empty, it should contain my project code.

The problem may be that I selected Django in an earlier form instead of Manual configuration.

Yes, that was it.

Yup, that would explain it. Glad you worked it out!