Can someone tell me if I'm ready for part 2 of the tutorial?

So I wrote notes and played with Django a bit, but I’m still not sure if I am ready for the second part. Correct me if I’m wrong :stuck_out_tongue:

The project folder’s name doesn’t matter.

views.py is sort of like the one that converts html code.

urls.py is the routing thing.

manage.py lets you do stuff like being running the applcation

Am I right? Anything I’ve missed?

Nope, at this stage that’s the essence of what you should know at this point - with a couple of minor enhancements.

views.py - can contain multiple functions (or classes - you’ll see that later) that accept a request and return a response. In the “common” (or “default” or “stereotypical”) case, that response is an HTML page. (Key point is that it doesn’t need to be - it can also be a JSON response, or even something else entirely.)

urls.py - Yes, routes requests to a function. Also specifies (where appropriate) whether parts of a URL should be used as parameters to those functions.

And, the one you didn’t include - settings.py - the normal place where you configure your system. It’s where the list of apps (think “components”), your database connections, and a number of other features are all configured.

Ken

1 Like

Thank you so much! :smiley: