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 Basics Model Administration Django's Admin

David Welsh
David Welsh
9,298 Points

Django run server from personal computer and general information

I am about 1/3 through the Django basics course and I'm pretty confused about everything. I'm not really sure what the end goal is as I follow along with the code. Is the goal to eventually put a HTML and CSS created page onto the web by creating all of the necessary databases?

Also, I am trying to follow along with the code on my computer, using JetBrains' PyCharm, while still running some of the script in the command prompt, as Kenneth does. However, I am having issues with the 'python manage.py runserver' command. When Kenneth does this in workspaces, it opens a url tab in a browser that displays his output, however, when I run it I get about 5 lines of code that gives me a timestamp, the http address, and a statement that says, "Quit Server with CTRL-BREAK". Any info how I can get the output Kenneth sees?

Thank you, I feel a bit frustrated with this and am considering heading over to more front-end development. However, I love Python and was hoping to master all Treehouse had to offer in this language before moving on. Should I stick with it, and do you think if I gut out this first Django course, the rest will begin falling in place and eventually make some sense?

3 Answers

Henrik Christensen
seal-mask
.a{fill-rule:evenodd;}techdegree
Henrik Christensen
Python Web Development Techdegree Student 38,322 Points

All beginning is tough, but it will be rewarding if you stick with it (won't become a django-master over night :P ) - you could also try out the Flask track instead (micro-framework).

About the python manage.py runserver. Do you (when you get those lines) open a tab in your browser and enter localhost:8000?

David Welsh
David Welsh
9,298 Points

Henrik,

thanks for the support. I ran the local host in a server (copied/pasted it into the browser) and it populated. I guess I assumed at the time it would auto-populate. I found another website that went over the same things Kenneth went over, but for designing a blog, and it definitely made more sense to me seeing it again. I'm definitely feeling better about this course, but I think I might start it over again just to solidify the foundations. I appreciate it.