These are chat archives for django/django

10th
Oct 2017
Job Matheka
@jobm
Oct 10 2017 12:39
@MilanRgm http://django-activity-stream.readthedocs.io/en/latest/follow.html , Maybe I didn’t get your question but hope that helps.
def follow_kitchen(request, username):
    kitchen = get_object_or_none(Kitchen, owner__username=username)
    follow(request.user, kitchen)
    return redirect("/chef/{}/kitchen/".format(username))
Daniel van Flymen
@dvf
Oct 10 2017 17:22
Can anyone share some best practices for referencing static files in a stylesheet? I'm using Whitenoise... and I don't think you can do {% load static %} inside a css file (since it doesn't get parsed).