Use the build_absolue_uri
to get the server address regardless of any changes.
qr_code = request.build_absolute_uri('/pms/{}'.format(pk))
Pass the 'qr_code' variable into the context.
Call the 'qr_code' context in the barCodeFlowable
tag's value atribute.
<barCodeFlowable code="qr" height="1in" width="1in" value="{{ qr_code }}"/>