Development Labs

Django Python Framework test lab::

Python version:2.7.6

Tutorial one: Poll

Errors:NameError at /admin/polls/poll/
global name ‘timezone’ is not defined
Due to : datetime module and from django.utils import timezone was not imported into
Error came about after adding the line list_display = (‘question’, ‘pub_date’, ‘was_published_recently’) to Apparently I skip a step in part one. User error


Computer , server issues and solutions