In localhost:
localhost$ ssh <<remote_host_ip>>
In remotehost:
remotehost$ export DISPLAY=:0
remotehost$ x11vnc
In localhost:
localhost$ vinagre <<remote_host_ip>>
In localhost:
localhost$ ssh <<remote_host_ip>>
In remotehost:
remotehost$ export DISPLAY=:0
remotehost$ x11vnc
In localhost:
localhost$ vinagre <<remote_host_ip>>
Django templates priority order
TEMPLATE_DIRS
dir setting in settings.py
file of the project enviromentIn addition templates used by admin gui or any other Django core module can be overwritten in cascade. For example:
these templates are being replaced by the next one in order. That is, you can replace the template for a concrete template for a singular model of a specific application.
socat is a Multipurpose relay (“is a more complex variant of netcat. It is larger and more flexible and has more options that must be configured for a given task” – Wikipedia):
Get it here: socat-1.7.2.0.tar.gz
Examples of use:
socat - TCP4:www.domain.org:80
socat - SSL:server:4443,cafile=server.crt,cert=client.pem
socat - UDP4-DATAGRAM:224.255.0.1:6666,bind=:6666,ip-add-membership=224.255.0.1:eth0
See more examples in www.dest-uconcatenatornreach.org
If you need to disable a site-wide action you can call AdminSite.disable_action().
admin.site.disable_action(‘delete_selected’) (See: Django reference guide)
… or
def get_actions(self, request): actions = super(ApplicationAdmin, self).get_actions(request) if 'delete_selected' in actions: del actions['delete_selected'] return actions
, for a specific ModelAdmin.