This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Remote db state must be at the same exact state of the local DB | |
### Steps will be done on two stages: | |
### 1. local db stage | |
1. make sure you are in your django project path, and run `find . -path "*migrations*" -name "*.py" -not -path "*__init__*" -exec rm {} \;` | |
2. pip install --upgrade --force-reinstall Django, because this path usually removes django's own migrations. | |
3. Remove django migrations history table from your local database. | |
from django.db import connections | |
with connections["default"].cursor() as cursor: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"metadata": { | |
"id": "2cbad5ee-b4ab-4de8-a1c7-77fede846155", | |
"publisherId": "patbenatar.advanced-new-file", | |
"publisherDisplayName": "patbenatar" | |
}, | |
"name": "advanced-new-file", | |
"publisher": "patbenatar", | |
"version": "1.2.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"defaultCatMiniSite": "0", | |
"items": [ | |
{ | |
"items": { | |
"fileSize": "", | |
"height": 940, | |
"map": [ | |
{ | |
"coords": "0,246,317,474", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{"name": "Seara Whole Frozen Chicken 1 Kg.", "price_before": "48.95 EGP", "price_after": "45.95 EGP", "img": "https://www.spinneys-egypt.com/en-us/spinneys/pro-chilld-food/promotions-details/pro-chilld-foodUpload_Product_Entity_Db_Product_MainImage_212935.jpg", "category": "Chilled & Frozen Food"}, | |
{"name": "Atyab Crispy Chicken Pane Fully Cooked Mild or Spicy 400 Gr.", "price_before": "33.95 EGP", "price_after": "27.95 EGP", "img": "https://www.spinneys-egypt.com/en-us/spinneys/pro-chilld-food/promotions-details/pro-chilld-foodUpload_Product_Entity_Db_Product_MainImage_213405.jpg", "category": "Chilled & Frozen Food"}, | |
{"name": "Atyab Beef Burger 16 Pcs.", "price_before": "74.75 EGP", "price_after": "61.95 EGP", "img": "https://www.spinneys-egypt.com/en-us/spinneys/pro-chilld-food/promotions-details/pro-chilld-foodUpload_Product_Entity_Db_Product_MainImage_242173.jpg", "category": "Chilled & Frozen Food"}, | |
{"name": "El Leheimy Beef Hot Dog or Frankfurter 900 Gr. or Kofta 850 Gr.", "price_before": "64.95 EG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table> | |
<tbody> | |
<tr style="height:22pt"> | |
<td style="vertical-align:top;padding:5pt"> | |
<p style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style= | |
"font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:700;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:none;vertical-align:baseline"> | |
Riad Loutfi</span></p> | |
<p style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style= | |
"font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:none;vertical-align:baseline"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"abr": 96, | |
"acodec": " mp4a.40.2", | |
"age_limit": 0, | |
"alt_title": null, | |
"annotations": null, | |
"automatic_captions": {}, | |
"average_rating": 4.69935131073, | |
"categories": ["Entertainment"], | |
"creator": null, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"meta": { | |
"code": 200 | |
}, | |
"response": { | |
"favorite_types": [ | |
"cafe", | |
"restaurant", | |
"atm", | |
"shopping_mall", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"meta": { | |
"code": 400, | |
"errorDetail": "Place_id is not valid", | |
"errorType": "ParamError" | |
}, | |
"response": {} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"meta": { | |
"code": 200 | |
}, | |
"response": { | |
"address_components": [ | |
{ | |
"long_name": "2009", | |
"short_name": "2009", | |
"types": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"meta": { | |
"code": 200 | |
}, | |
"response": { | |
"venue": { | |
"attributes": { | |
"groups": [ | |
{ | |
"count": 1, |
NewerOlder