Monday, January 30, 2012

Re: Django models

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 manage.py for your project, you can just run
"manage.py inspectdb" and it will use the DATABASES defined in
your settings.py.

manage.py is just a wrapper around django-admin.py 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 django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment