I’ve been writing some Django tutorials and I thought I’d put them all in one place.
If’n you’ve never done much with the internet, I highly suggest you read these two pieces first:
- Hey journalists — here’s why you should learn to make the internets
- Learning to make the internets — a journalist’s guide
Making A Basic Django App
This was my first Django tutorial, which was building a basic journalistic app that keeps track of fires. It’s kind of outdated and uses some outdated ways of making things. It’s okay to glance at and walk through, but someday I’ll write a much better tutorial you should follow:
- Step One: Setting up your Ubuntu server on Amazon Web Services
- Step Two: Installing and setting up a basic Django project
- Step Three: Connecting to your server with an FTP client
- Step Four: Writing your Django models
- Step Five: Setting up your database and settings.py file
- Step Six: The Views and Templates
- Step Seven: Configuring uWSGI and nginx – Beware, as there are some issues with this server setup and it’s not working super great. I’ll fix this later.
- Step Eight: Configuring the admin and uploading to S3
Importing Data From Google Docs Into Django
This shows you how to ingest data from a Google doc into Django. It also goes through setting up virtual environments on your local machine, using pip to install site packages, Django management commands and installing PostgreSQL on your local machine. It’s still a work in progress, but here are the links so far: