Skip to content

Commit

Permalink
Merge pull request #21 from suda/master
Browse files Browse the repository at this point in the history
Small fixes
  • Loading branch information
olasitarska committed Jul 6, 2014
2 parents cb3412a + bc063ab commit 3b0707f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions django_-_why_you_need_a_webframework/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Django (_/ˈdʒæŋɡoʊ/ jang-goh_) is a free and open source web application f

You see, when you're building a website, you always need a similiar set of components: a way to handle user authentication (signing up, signing in, signing out), management panel for your website, forms, uploading files, etc.

Luckily for you other people long ago noticed that web developers face similar problems when building a new site, so they teamed up and created frameworks (Django is one of them) that givs you ready components you can use.
Luckily for you other people long ago noticed that web developers face similar problems when building a new site, so they teamed up and created frameworks (Django is one of them) that gives you ready components you can use.

Frameworks exist to save you from having to re-invent the wheel and help alleviate some of the overhead when you’re building a new site.

Expand All @@ -16,7 +16,7 @@ Imagine a mailbox (port) which is monitored for incoming letters (requests). It

## What happen when someone request a website from your server?

When a request comes to a web server it passes it to Django. Django tries to figure out what actually is requested. It takes a webpage address used and tries to figure out what to do. This part is done by Django's urlresolver (Note that a website address is called URL - Uniform Resource Locator, so the name 'urlresolver' makes sense). It is not very smart here - it takes a list of patterns and tries to match the URL. Django checks patterns from top to the bottom and if something is matched then Django passes the request to the associated function called view.
When a request comes to a web server it's passed to Django which tries to figure out what actually is requested. It takes a webpage address used and tries to figure out what to do. This part is done by Django's urlresolver (Note that a website address is called URL - Uniform Resource Locator, so the name 'urlresolver' makes sense). It is not very smart here - it takes a list of patterns and tries to match the URL. Django checks patterns from top to the bottom and if something is matched then Django passes the request to the associated function called view.

Imagine a postman with a letter who is walking down the street and checks each house number with the one on the letter. If it matches, they put the letter there.

Expand Down
2 changes: 1 addition & 1 deletion django_templates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ It works! But we want them to be displayed in a way we created earlier, like the
</div>
{% endfor %}

Everything you put between {% for %} and {% endfor %} will be repeated for each object in the list. Refresh your page:
Everything you put between `{% for %}` and `{% endfor %}` will be repeated for each object in the list. Refresh your page:

![Figure 13.3](images/step3.png)

Expand Down

0 comments on commit 3b0707f

Please sign in to comment.