Django: Tips and Tricks

  1. Django’s syndication framework makes it pretty simple to create RSS feeds. It is a little trickier if you want to create separate feeds based on a category or a tag. For example, we have a feed at /articles/django/feed/ that returns articles about Django and a feed at /articles/python/feed/ that returns articles about Python. In this article, I explain how to do this.

    Read Article
  2. I added slugs to several models after I already had data for those models. To get the slugs saved, I had to save each object corresponding to the model, which is easy programmatically, but a pain to do through the admin interface. My project runs on AWS Elastic Beanstalk, so I needed access to the shell. I found the solution here.

    Read Article