/dev/sdv1
/dev/sdv
def send_mail(subject, message, from_email, recipient_list,
fail_silently=False, auth_user=None, auth_password=None,
connection=None, html_message=None):
context = {
'order': order,
}
send_mail(
'Thanks for order',
'blablabla',
email_from,
[order.email],
fail_silently=True,
html_message=get_template('emails/confirmation.html').render(context)
)
chsh -s /bin/bash
chsh -s /bin/bash <username>
def form_valid(self, form):
if 'foo' in self.request.session:
pk = self.request.session['foo']
foo = Foo.objects.get(pk=pk)
TheForm = self.get_form_class()
self.object = TheForm(instance=foo)