modocache / django-generate-scaffold

Generate a Django model, views, URLconf, and templates using a single command.
139 stars 39 forks source link

django.utils.timezone import error on Django 1.3. #22

Open modocache opened 12 years ago

modocache commented 12 years ago

django.utils.timezone is only available on Django 1.4+, but the package metadata specifies Django 1.3+ as a dependency. As a result, attempting to use generate_scaffold/templates/generate_scaffold/models/models.txt will raise an error when using Django 1.3.

Either the package metadata should be changed to support only 1.4+, or a change to the template needs to be made.

jseutter commented 12 years ago

I just encountered this error when trying to create a scaffold for the first time.