https://docs.djangoproject.com/en/4.1/topics/auth/default/#permissions
Jeito Errado
{% if user.has_perm('expense.view_expense') %}
<p>OK</p>
{% endif %}
https://docs.djangoproject.com/en/4.1/topics/auth/default/#permissions
Jeito Errado
{% if user.has_perm('expense.view_expense') %}
<p>OK</p>
{% endif %}
Escreva em Markdown.
Repare que eu tenho um README.md e outros arquivos.
Objetivo: definir um valor default para um campo, simples né?
Pega a visão:
__init__
class MyForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
pip install python-decouple # variaveis de ambiente
pip install django-storages # storage
cat << EOF > .env
AWS_ACCESS_KEY_ID=**********
AWS_SECRET_ACCESS_KEY=****************
AWS_STORAGE_BUCKET_NAME=brejinho
table[name="pepe"]>thead>tr>th*3^^+tbody>tr*7>td{Basico}*3 |
<!-- index.html --> | |
<!-- with EasyTimer.js and Vanilla Javascript --> | |
<!-- https://albert-gonzalez.github.io/easytimer.js/#countdownTimerExample --> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>EasyTimer</title> |
<!-- https://albert-gonzalez.github.io/easytimer.js/#countdownTimerExample --> | |
<!-- https://codepen.io/harsh/pen/KKdEVPV --> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="shortcut icon" href="http://html5-training-in-hyderabad.blogspot.com.br/favicon.ico"> | |
<title>Countdown with AlpineJS</title> |
<!DOCTYPE html> | |
<!-- https://www.sitepoint.com/a-beginners-guide-to-pug/--> | |
<html lang="en"> | |
<head> | |
<title>Pug Example</title> | |
</head> | |
<body> | |
<h1>Lorem Ipsum</h1> | |
<div class="container"> | |
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p> |
{ | |
"data": [ | |
{ | |
"id": 1, | |
"name": { | |
"first_name": "Keanu", | |
"last_name": "Reeves" | |
}, | |
"email": "[email protected]", | |
"movies": [ |