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 trialSubrata Mitra
Courses Plus Student 82 PointsDjango Rest Framework workspaces error:-__class__ not set defining 'Token' as <class 'rest_framework.authtoken.models.To
I got an error when I try to run django server using workspace:-
Request Method: GET
Request URL: http://port-8000-v9d7lbtutg.treehouse-app.com/
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: Thu, 26 Aug 2021 14:09:05 +0000
1 Answer
Chris Freeman
Treehouse Moderator 68,457 PointsIt appears to be a development environment issue. Please send this to help@teamtreehouse.com.