Monday, January 30, 2012

Re: Django models

Thank you so much.

This information is very useful. It work like a charm for me.

Thank you once again mike. Cheers

Best Regards,

Stanwin Siow

On Jan 30, 2012, at 9:35 PM, Michael Elkins wrote:

On Mon, Jan 30, 2012 at 09:26:10PM +0800, Stanwin Siow wrote:
However what does this error say?

ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.

If you have a for your project, you can just run " inspectdb" and it will use the DATABASES defined in your is just a wrapper around that sets the DJANGO_SETTINGS_MODULE and PYTHONPATH for you.

You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment