Skip to content

Tag: django

django db with ssh tunnel

Is there a python native way to connect django to a database through an ssh tunnel? I have seen people using ssh port forwarding in the host machine but I would prefer a solution that can be easily containerized. Answer It is pretty seamless. Requirements: The sshtunnel package https://github.com/pahaz/sshtun…

Django manual forms

I am trying to get my head around using manual forms. When I have in my forms.py checked that fields name and email is readonly And in the html But still when submitting without name and email, got error on missing both name and email. If anyone can help, much appreciated Answer You used placeholder in the in…