I have problem importing from django_tables import tables and when i do it on manage.py shell i get this error.
>>> import django_tables2 Traceback (most recent call last): File "<stdin>", line 1, in <module> File "build\bdist.win32\egg\django_tables2\__init__.py", line 3, in <module> File "build\bdist.win32\egg\django_tables2\tables.py", line 4, in <module> File "c:\Python27\lib\site-packages\django\db\__init__.py", line 11, in <module> if DEFAULT_DB_ALIAS not in settings.DATABASES: File "c:\Python27\lib\site-packages\django\utils\functional.py", line 184, in inner self._setup() File "c:\Python27\lib\site-packages\django\conf\__init__.py", line 40, in _setup raise ImportError("Settings cannot be imported, because environment variable %s is undefined." % ENVIRONMENT_VARIABLE) ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined. >>> how do i fix it. what am i missing here.... thank you so much. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/e3UHoYJI0KsJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.