Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

Django Rest Framework workspaces error

I got an error when I try to run serializer with django rest framework workspace.

__class__ not set defining 'Token' as <class 'rest_framework.authtoken.models.Token'>. Was __classcell__ propagated to type.__new__?
Request Method: GET
Request URL:    http://port-8000-v9d7lbtutg.treehouse-app.com/api/v1/courses/
Django Version: 1.8
Exception Type: RuntimeError
Exception Value:    
__class__ not set defining 'Token' as <class 'rest_framework.authtoken.models.Token'>. Was __classcell__ propagated to type.__new__?
Exception Location: /usr/local/lib/python3.9/site-packages/rest_framework/authtoken/models.py in <module>, line 16
Python Executable:  /usr/local/bin/python
Python Version: 3.9.0
Python Path:    
['/home/treehouse/workspace/ed_reviews',
 '/usr/local/lib/python39.zip',
 '/usr/local/lib/python3.9',
 '/usr/local/lib/python3.9/lib-dynload',
 '/home/treehouse/.local/lib/python3.9/site-packages',
 '/usr/local/lib/python3.9/site-packages']
Server time:    Wed, 25 Aug 2021 10:09:18 +0000