NameError: name 'StaticLiveServerCase' is not defined

Sagar

I am using django 1.7 . i am practicing Harry Percival's TDD with python book . i am following the book but somewhere that gives unexpected error

NameError: name 'StaticLiveServerCase' is not defined

I am searched for it but i did not get anything Can any one tell me about this ? Chapter 8 page no 131 in that book .

falsetru

The name of the class should be StaticLiveServerTestCase. It is renamed just before the 1.7 release.

I think the book is based on the beta version of Django 1.7.

UPDATE

Make sure import it:

from django.contrib.staticfiles.testing import StaticLiveServerTestCase

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related