Skip to content

Commit

Permalink
Fixed #79 -- Added additional deploys during the tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
olasitarska committed Aug 20, 2014
1 parent 1628e28 commit 79e9a36
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 6 deletions.
13 changes: 8 additions & 5 deletions django_forms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,12 @@ Congratulations! Your application is more and more complete!

If you need more information about Django forms you should read the documentation: https://docs.djangoproject.com/en/1.6/topics/forms/

We prepared some extra tasks for you, but they are not very hard. You can do them as [homework and find the instructions by clicking here](http://djangogirls.gitbooks.io/django-girls-tutorial-extensions/homework/README.html):
- create a page with all __draft__ posts
- adding a __publish__ button, which will make your post visible on `post_list` page
- deleting a post
## One more thing: deploy time!

If you are ready for more: go to the next chapter and see if you can complete all the tasks!
It'd be good to see if your website will be still working on Heroku, right? Let's try deploying again. Open up your console and type this:

heroku push --app djangogirlsblog

> __Note__: Remember to replace `djangogirlsblog` with the name of your application on Heroku.
And that should be it! Congrats :)
9 changes: 9 additions & 0 deletions django_templates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ Everything you put between `{% for %}` and `{% endfor %}` will be repeated for e

Have you noticed that we used a slightly different notation this time `{{ post.title }}` or `{{ post.text }}`. We are accessing data in each of the fields defined in our `Post` model. Also the `|linebreaks` is piping the posts text through a filter to convert line-breaks into paragraphs.


## One more thing

It'd be good to see if your website will be still working on Heroku, right? Let's try deploying again. Open up your console and type this:

heroku push --app djangogirlsblog

> __Note__: Remember to replace `djangogirlsblog` with the name of your application on Heroku.
Congrats! Now go ahead and try adding a new post in your Django admin (remember to add published_date!), then refresh your page to see if the post appears there.

Works like a charm? We're proud! Treat yourself something sweet, you have earned it :)
Expand Down
9 changes: 8 additions & 1 deletion extend_your_application/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,5 +143,12 @@ Ok, we can refresh our page and see if `Page not found` is gone now.

Yay! It works!

You should be proud of yourself! You already did __a lot__!
## One more thing: deploy time!

It'd be good to see if your website will be still working on Heroku, right? Let's try deploying again. Open up your console and type this:

heroku push --app djangogirlsblog

> __Note__: Remember to replace `djangogirlsblog` with the name of your application on Heroku.
And that should be it! Congrats :)
10 changes: 10 additions & 0 deletions html/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,13 @@ It gives us this effect:
Yaaay! But so far, our template only ever displays exactly __the same information__ - whereas earlier we were talking about templates as allowing us to display __different__ information in the __same format__.

What we want really want to do is display real posts added in our Django admin - and that's where we're going next.

## One more thing

It'd be good to see if your website will be still working on Heroku, right? Let's try deploying again. Open up your console and type this:

heroku push --app djangogirlsblog

> __Note__: Remember to replace `djangogirlsblog` with the name of your application on Heroku.
And that should be it! Once Heroku is finished, you can go ahead and refresh your website in the browser. Changes should be visible!

0 comments on commit 79e9a36

Please sign in to comment.