These are chat archives for django/django

Oct 2017
Job Matheka
Oct 10 2017 12:39
@MilanRgm , 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
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).