i want to add code print("hello world") in drdo_tracker.py file and when i run my plugin the output (hello word) shown in QGIS python console. How can i do this?
After deploying my site on heroku its not showing the images i uses aws s3 bucket to store those images but its not rendring thoes images from s3 bucket please tell me what i should do?
**i think error in static root and media root paths please check it
First read this
my static_in_env folder is same label on src and manage.py is inside the src
inside the static_in_env folder there is 2 more folder media_root and static_root
the forlder live-static-files is inside the src folder and live-static-files folder contain to more folders media-root and static-root**
so please tell me the correct path to show the images on my site
`
After deploying my site on heroku its not showing the images i uses aws s3 bucket to store those images but its not rendring thoes images from s3 bucket please tell me what i should do?
**i think error in static root and media root paths please check it
First read this
my static_in_env folder is same label on src and manage.py is inside the src inside the static_in_env folder there is 2 more folder media_root and static_root
the forlder live-static-files is inside the src folder and live-static-files folder contain to more folders media-root and static-root**
so please tell me the correct path to show the images on my site `
here is my production.py code
from django.conf import settings
if not settings.DEBUG: import os
Braintree Payments Details
BRAINTREE_PUBLIC = "2f8dqqhqs7wz95t8" BRAINTREE_PRIVATE = "9d2f9ddfaefd81d6af09d537017d86c4" BRAINTREE_MERCHANT_ID = "68nvwyj4qsz7rnzc" BRAINTREE_ENVIRONEMNT = "Sandbox"
DEFAULT_FILE_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage' AWS_ACCESS_KEY_ID = os.environ.get("AWS_ACCESS_KEY_ID", "") AWS_SECRET_ACCESS_KEY = os.environ.get("AWS_SECRET_ACCESS_KEY", "") AWS_STORAGE_BUCKET_NAME = os.environ.get("AWS_STORAGE_BUCKET_NAME", "") AWS_QUERYSTRING_AUTH = False AWS_S3_CUSTOM_DOMAIN = os.environ.get("AWS_S3_CUSTOM_DOMAIN", "") MEDIA_ROOT = os.environ.get("MEDIA_URL", "") MEDIA_URL = '/media/'
policy bucket
#
{
"Id": "Policy1523650910560",
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1523650506510",
"Action": [
"s3:GetObject"
],
"Effect": "Allow",
"Resource": "arn:aws:s3:::flying-media/*",
"Principal": "*"
},
{
"Sid": "Stmt1523650864642",
"Action": "s3:*",
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::flying-media/*",
"arn:aws:s3:::darkmachine"
],
"Principal": {
"AWS": [
"arn:aws:iam::033265322119:user/rahul6612"
]
}
}
]
}
`