https://hub.docker.com/_/django/
Deprecated
"This image is officially deprecated in favor of the standard python image, and will receive no further updates after 2016-12-31 (Dec 31, 2016). Please adjust your usage accordingly."
;(function($) { | |
$.fn.formset = function(opts) | |
{ | |
var options = $.extend({}, $.fn.formset.defaults, opts), | |
flatExtraClasses = options.extraClasses.join(' '), | |
totalForms = $('#id_' + options.prefix + '-TOTAL_FORMS'), | |
maxForms = $('#id_' + options.prefix + '-MAX_NUM_FORMS'), | |
childElementSelector = 'input,select,textarea,label,div', | |
$$ = $(this), |
{% extends "base.html" %} | |
{% block content %} | |
<form method="post">{% csrf_token %} | |
{{ forms.subscription }} | |
<input type="submit" value="Subscribe"> | |
</form> | |
<form method="post">{% csrf_token %} | |
{{ forms.contact }} | |
<input type="submit" value="Send"> |
https://hub.docker.com/_/django/
Deprecated
"This image is officially deprecated in favor of the standard python image, and will receive no further updates after 2016-12-31 (Dec 31, 2016). Please adjust your usage accordingly."
class Errors { | |
/** | |
* Create a new Errors instance. | |
*/ | |
constructor() { | |
this.errors = {}; | |
} | |
/** |
class MarcacaoSerializer(serializers.ModelSerializer): | |
agenda = AgendasSerializer(read_only=True) | |
agenda_id = serializers.PrimaryKeyRelatedField(write_only=True) | |
class Meta: | |
model = Consultas | |
fields = ['id', 'agenda', 'agenda_id', horario', 'data_agendamento'] | |
def create(self, validated_data): | |
# validacoes ... |
Assume the user is on a mobile device iOS Safari (Or other browser), but you want a link to open into any other specific mobile browser app like Chrome, Safari, Firefox, Opera, Arc... How do you do that?
To open on Chrome
<a href="googlechrome://example.com">try it on Chrome</a>
check out Chrome iOS Docs for more information
<?php | |
namespace App\Http\Controllers\Admin; | |
use App\Http\Controllers\Controller; | |
use App\Models\User; | |
use Illuminate\Http\Request; | |
use Storage; | |
class UploadController extends Controller |
import requests | |
from tqdm import tqdm | |
def download(url: str, fname: str, chunk_size=1024): | |
resp = requests.get(url, stream=True) | |
total = int(resp.headers.get('content-length', 0)) | |
with open(fname, 'wb') as file, tqdm( | |
desc=fname, | |
total=total, |