Django girls walkthrough of a simple blog post application. Tutorial can be found here.
Application to show and add to a list of blog posts.
Geolocation to show you the country/city you're connecting from. You will need to install requests for this app, as I've not put them in requirements.txt
$ pip install requests
Point covered include:
- (blog) a form to add posts
- iterating over a list of posts
- displaying several views (list view, form and post detail)
- using a base template
- adding a model for the posts that are saved in the db
- (geolocation) making an API request and displaying received data
- Pre-req (from requirements.txt):
pip install -r requirements.txt
- (geolocation):
$ pip install requests
- Activate virtual env:
source .venv/bin/activate
- Make all db migrations:
python manage.py makemigrations blog
python3 manage.py migrate
- Run server
python manage.py runserver