prototypemagic/django-projectbuilder — pull request #3 by jonathanchu (2012-06-19 01:13:22+00:00)
Title: djangobuilder.py doesn't follow Django's project name restrictions.

This adds a check_projectname() function to make sure PROJECT_NAME follows Django's project name restrictions. Simple regex to check and it will sys.exit() if PROJECT_NAME is not valid.

Currently, this is allowed:
```
$ python djangobuilder.py --path test-test
```

This commit will now enforce this:
```
$ python djangobuilder.py --path test-test
Error: 'test-test' is not a valid project name. Please use only numbers, letters and underscores.
```

and

```
$ python djangobuilder.py --path 123test
Error: '123test' is not a valid project name. Please make sure the name begins with a letter or underscore.
```