Newly created Pydev Django Project does not include initial package with Settings.py etc
django, eclipse, pydev, settings
Solution
I had the same issue today but it turned out that it was because my project name was not handled - eg "My Project". The space threw it. Calling the project "MyProject" worked a treat.
From the cmd line it gives the following error - which eclipse is not returning:
c:\django-admin.py startproject "My Project"
Error: "My Project" is not a valid project name. Please use only numbers, letters and underscores.
Problem
When creating Django Pydev projects in Eclipse the default config package is created automatically with the following structure: ``` MyApp __init__.py settings.py urls.py wsgi.py manage.py ``` Today I created a Django Pydev project and those files and initial package were not created. I have tried several times to create new Django Pydev projects but the the initial structure is not being created. This problem only just started happening. I have not had the problem prior to today. Running this on the command line does work: ``` django-admin.py startproject mysite ``` The files and project structure are created correctly. So it's just Eclipse and Pydev that fails. I am using Django 1.4, Pydev 2.5 and Eclipse Indigo 3.7 on Ubuntu 11.1