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 RESTful Django Create Serializers

Project needs a requirements.txt file in to make the requirements clear

I started a 7 day trial yesterday and started the DRF course a short while ago.

I tried running code in the Workspace and got errors when I was re-directed to a browser window and was told there was a problem running the workspace.

I would run the code locally - but I don't know what version to use for Django and/or DRF. Please advise.

Thanks

1 Answer

Eric M
Eric M
11,545 Points

Hi Dave,

Opening up the workspace for the video just before this code challenge I've run the following:

treehouse:~/workspace$ python --version                                                          
Python 3.6.4                                                                                     
treehouse:~/workspace$ pip show django                                                           
Name: Django                                                                                     
Version: 1.9.9
...   
treehouse:~/workspace$ pip show djangorestframework                                              
Name: djangorestframework                                                                        
Version: 3.3.2         
...                                                                          

Personally i would try running my code against the latest version, being more interested in seeing what code works validly for that than passes (skippable) Treehouse challenges - but I understand wanting to match your dev envrionment to the learning environment.

Cheers,

Eric