apps_folder --> management --> commands --> file_name.py
- For a single model:
python manage.py create_multi_table_admin username [email protected] password --models public.LiveVideo
apps_folder --> management --> commands --> file_name.py
python manage.py create_multi_table_admin username [email protected] password --models public.LiveVideo
from django.db import models | |
from django.core.validators import MinValueValidator | |
from decimal import Decimal | |
from django.utils import timezone | |
from django.db.models import Sum | |
class PaymentMethod(models.Model): | |
name = models.CharField(max_length=50) | |
is_active = models.BooleanField(default=True) |
async def ipn_listener_view( | |
status: str, | |
tran_id: uuid.UUID, | |
val_id: str, | |
amount, | |
store_amount, | |
card_type: str, | |
card_no: str, | |
currency: str, | |
bank_tran_id: str, |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/cdn.min.js"></script> | |
</head> | |
<body> | |
<div x-data="variantApp()" class="p-4"> |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Game - User details</title> | |
<script src="https://cdn.tailwindcss.com"></script> | |
<script | |
defer | |
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/cdn.min.js" |
from locust import HttpUser, task, between | |
import re | |
class QuickstartUser(HttpUser): | |
def extract_links(self, response_content): | |
pattern = r'(/encrypted_video/[^ ]+\.ts)' | |
links = re.findall(pattern, response_content) | |
print('links \n',links) |
const submitComment = async (e, id) => { | |
e.preventDefault(); | |
const data = { | |
comment: commentData, | |
article: id | |
} | |
await axios.post(`${process.env.NEXT_PUBLIC_ROOT_URL}/api/v1/article_comment/`, data, { | |
headers: { Authorization: `Token ${token}` }, | |
}) | |
.then(res => { |
name | code | phone-code | continent | capital | currency | timezones | |
---|---|---|---|---|---|---|---|
Afghanistan | AF | 93 | Asia | Kabul | Afghani | UTC +04:30 | |
Albania | AL | 355 | Europe | Tirana | Lek | UTC +01:00 | |
Algeria | DZ | 213 | Africa | Algiers | Dinar | UTC +01:00 | |
American Samoa | AS | 1-684 | Oceania | Pago Pago | Dollar | UTC -11:00 | |
Andorra | AD | 376 | Europe | Andorra la Vella | Euro | UTC +01:00 | |
Angola | AO | 244 | Africa | Luanda | Kwanza | UTC +01:00 | |
Anguilla | AI | 1-264 | North America | The Valley | Dollar | UTC -04:00 | |
Antarctica | AQ | 672 | Antarctica | None | None | UTC +11:00 | |
Antigua and Barbuda | AG | 1-268 | North America | St. John's | Dollar | UTC -04:00 |
.fixed-top {
position: fixed;
top: 0;
right: 0;
left: 0;
z-index: 1030;
}
.fixed-bottom {