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

Daniel Luke
PLUS
Daniel Luke
Courses Plus Student 1,035 Points

Running Django locally, how do you make: python manage.py runserver work? I'm getting error: python can't open file

There's another message above this one: No module named django.core management

2 Answers

YI LI
YI LI
4,094 Points

Hello Daniel, I think you should install the python package first. It is the tutorial. python local environment

like its said above get your python enviroment set up.

once your enviroment is set up

1) pip install django
2) django-admin startproject projectname
3) navigate to inside your project name and run python manage.py runserver 0.0.0.0:8000 (or what ever port of your is free)

``