Re: Django AWS S3 403 (Forbidden)

2020-12-20 Thread Sai Maruthi
Fixed! It's due to case sensitive paths in aws. 

On Monday, 21 December 2020 at 06:49:17 UTC+5:30 Sai Maruthi wrote:

> I'm hosting my Static and Media Files of my Django Project on AWS s3. The 
> static files for admin and the image files are working fine, but some of 
> the static files CSS & JS are giving a 403 error(URL for reference- 
> https://maruthi-static.s3.amazonaws.com/static/css/customer_view/main/main.css).
>  
> I'm using boto3-1.16.40 and django-storages-1.11, with AWS IAM user with 
> AmazonS3FullAccess permission. The following is my code.
>
> Settings.py
> # STORAGES 
> # 
> --
>  
> AWS_ACCESS_KEY_ID = "" 
> AWS_SECRET_ACCESS_KEY = "" 
> AWS_STORAGE_BUCKET_NAME = "maruthi-static" 
> AWS_QUERYSTRING_AUTH = False
>  _AWS_EXPIRY = 60 * 60 * 24 * 7 
> AWS_S3_OBJECT_PARAMETERS = { "CacheControl": f"max-age={_AWS_EXPIRY}, 
> s-maxage={_AWS_EXPIRY}, must-revalidate" } 
> AWS_S3_REGION_NAME = "us-east-2"
> AWS_S3_CUSTOM_DOMAIN = None 
> aws_s3_domain = f"{AWS_STORAGE_BUCKET_NAME}.s3.amazonaws.com" 
> AWS_DEFAULT_ACL = None
>
> # STATIC
> # 
> ---
>  
> AWS_STATIC_LOCATION = 'static' 
> STATICFILES_STORAGE = "tps.storages.StaticRootS3Boto3Storage" 
> COLLECTFAST_STRATEGY = "collectfast.strategies.boto3.Boto3Strategy"
> STATIC_URL = f"https://{aws_s3_domain}/{AWS_S3_REGION_NAME}/static/; 
>
> # MEDIA 
> # 
> --
>  
> AWS_PUBLIC_MEDIA_LOCATION = 'media/public' 
> DEFAULT_FILE_STORAGE = "tps.storages.MediaRootS3Boto3Storage" 
> MEDIA_URL = f"https://{aws_s3_domain}/{AWS_S3_REGION_NAME}/media/;
>
> AWS_PRIVATE_MEDIA_LOCATION = 'media/private' 
> PRIVATE_FILE_STORAGE = 'mysite.storages.PrivateMediaRootS3Boto3Storage' 
>
> storages.py
> from storages.backends.s3boto3 import S3Boto3Storage
> from django.conf import settings
>
>
> class StaticRootS3Boto3Storage(S3Boto3Storage):
> location = settings.AWS_STATIC_LOCATION
> default_acl = "public-read"
>
>
> class MediaRootS3Boto3Storage(S3Boto3Storage):
> location = settings.AWS_PUBLIC_MEDIA_LOCATION
> file_overwrite = False
> 
> class PrivateMediaRootS3Boto3Storage(S3Boto3Storage):
> location = settings.AWS_PRIVATE_MEDIA_LOCATION
> default_acl = 'private'
> file_overwrite = False
> custom_domain = False
>
> All my static and media files were uploaded to my s3 bucket when I ran 
> collectstatic.
>
> I have set the following permissions: bucket block-public-access settings 
> 
>
> CORS
> [ { "AllowedHeaders": [ "*" ], "AllowedMethods": [ "PUT", "POST", "GET" ], 
> "AllowedOrigins": [ "*" ], "ExposeHeaders": [] } ]
>
>   
>
> apart from the above settings, I didn't set any bucket policies. If 
> someone can help me I will be very grateful.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/bb67f707-eda1-4d72-8f21-fc18ff0b5145n%40googlegroups.com.


Re: 127.0.0.1 refused to connect.

2020-12-20 Thread Parul.
Hy ,
I added the code but it's still not working

On Sun, Dec 20, 2020, 10:48 PM pycode  wrote:

> Add views.py with
> from django.http import HttpResponse
>
> def homepage(request):
>return HttpResponse ('hello world')
>
> urls.py
>
> from . import views
>
> urlpatterns = [
>path('/', views.homepage)
> ]
>
> On Fri, Dec 18, 2020, 9:59 PM Parul.  wrote:
>
>> i am not able to connect , i tried to use 0.0.0.0:8000 , 0.0.0.0:8080 as
>> well, still getting same error.
>> used 127.0.0.1 with ports 8000 and 8080 still getting error
>> i have put '*' in ALLOWED_HOSTS
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/b6e49e34-46f1-4c5f-9829-358b3323d381n%40googlegroups.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CABFQhy5W1SX-1WuP%3DUSy%2BU3T-bg3S1zRKnZWvk%2Bf4P7H27ty%2Bw%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHjHRFoApxRfQRVDwObOwabVTxe54NLQkhyM_pG4HZKt4nZbHw%40mail.gmail.com.


Re: Django/python free Training

2020-12-20 Thread KUMBHAGIRI SIVAKRISHNA
I am interested

On Sun, Dec 20, 2020 at 10:49 PM Abdulfarid Olakunle 
wrote:

> I am interested
>
> On Sun, Dec 20, 2020, 16:49 Barbara Leonard 
> wrote:
>
>> I'm Interested
>>
>>
>> On Fri, Dec 18, 2020 at 9:26 AM Python Class 
>> wrote:
>>
>>> Hi guys,
>>>
>>> I am manucho from Kenya and am good developer with django and python and
>>> i want to teach people what i know .I want to start a youtube channel for
>>> Django and python based tutorials ..If intrested you can message me here on
>>> concepts and projects you want covered and i will start immediately.
>>>
>>> Regards,
>>> Manucho.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/5c715780-23c4-4d31-9219-a1e7b92c14f1n%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAAcuwDfpeQzFQU%3DzTqdpV1S4ZvXxpfKPCw3h0pvpZ-24%3DAsH%3Dw%40mail.gmail.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CA%2BccuR3uLyDXfMJaLa%3DY8t6YeHtw079_1m0rohe19yg5oZonxw%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMM5N91apiVCm5en5M4VvbhYRW%3D0pWycdAHaGv9b-O9tQwmkDg%40mail.gmail.com.


Django AWS S3 403 (Forbidden)

2020-12-20 Thread Sai Maruthi


I'm hosting my Static and Media Files of my Django Project on AWS s3. The 
static files for admin and the image files are working fine, but some of 
the static files CSS & JS are giving a 403 error(URL for reference- 
https://maruthi-static.s3.amazonaws.com/static/css/customer_view/main/main.css).
 
I'm using boto3-1.16.40 and django-storages-1.11, with AWS IAM user with 
AmazonS3FullAccess permission. The following is my code.

Settings.py
# STORAGES 
# 
-- 
AWS_ACCESS_KEY_ID = "" 
AWS_SECRET_ACCESS_KEY = "" 
AWS_STORAGE_BUCKET_NAME = "maruthi-static" 
AWS_QUERYSTRING_AUTH = False
 _AWS_EXPIRY = 60 * 60 * 24 * 7 
AWS_S3_OBJECT_PARAMETERS = { "CacheControl": f"max-age={_AWS_EXPIRY}, 
s-maxage={_AWS_EXPIRY}, must-revalidate" } 
AWS_S3_REGION_NAME = "us-east-2"
AWS_S3_CUSTOM_DOMAIN = None 
aws_s3_domain = f"{AWS_STORAGE_BUCKET_NAME}.s3.amazonaws.com" 
AWS_DEFAULT_ACL = None

# STATIC
# 
---
 
AWS_STATIC_LOCATION = 'static' 
STATICFILES_STORAGE = "tps.storages.StaticRootS3Boto3Storage" 
COLLECTFAST_STRATEGY = "collectfast.strategies.boto3.Boto3Strategy"
STATIC_URL = f"https://{aws_s3_domain}/{AWS_S3_REGION_NAME}/static/; 

# MEDIA 
# 
-- 
AWS_PUBLIC_MEDIA_LOCATION = 'media/public' 
DEFAULT_FILE_STORAGE = "tps.storages.MediaRootS3Boto3Storage" 
MEDIA_URL = f"https://{aws_s3_domain}/{AWS_S3_REGION_NAME}/media/;

AWS_PRIVATE_MEDIA_LOCATION = 'media/private' 
PRIVATE_FILE_STORAGE = 'mysite.storages.PrivateMediaRootS3Boto3Storage' 

storages.py
from storages.backends.s3boto3 import S3Boto3Storage
from django.conf import settings


class StaticRootS3Boto3Storage(S3Boto3Storage):
location = settings.AWS_STATIC_LOCATION
default_acl = "public-read"


class MediaRootS3Boto3Storage(S3Boto3Storage):
location = settings.AWS_PUBLIC_MEDIA_LOCATION
file_overwrite = False

class PrivateMediaRootS3Boto3Storage(S3Boto3Storage):
location = settings.AWS_PRIVATE_MEDIA_LOCATION
default_acl = 'private'
file_overwrite = False
custom_domain = False

All my static and media files were uploaded to my s3 bucket when I ran 
collectstatic.

I have set the following permissions: bucket block-public-access settings 


CORS
[ { "AllowedHeaders": [ "*" ], "AllowedMethods": [ "PUT", "POST", "GET" ], 
"AllowedOrigins": [ "*" ], "ExposeHeaders": [] } ]

  

apart from the above settings, I didn't set any bucket policies. If someone 
can help me I will be very grateful.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2d185bb6-e5e1-4c05-a1d5-2f1b3d74311an%40googlegroups.com.


Re: Django Job

2020-12-20 Thread Kasper Laudrup

Hi Kris,

On 20/12/2020 22.49, Kris A. Stern wrote:
Thanks so much, Kasper for the prompt avec décisive response to the said 
emails.




Sure, avec plaisir.

/Kasper

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f343f5f3-d860-e0e6-0261-8ca3f32e1943%40stacktrace.dk.


Re: Django Job

2020-12-20 Thread Kris A. Stern
Thanks so much, Kasper for the prompt avec décisive response to the said
emails.

Cheers,
Kris

On Mon, 21 Dec 2020 at 03:12, Kasper Laudrup  wrote:

> Hi Clifford,
>
> On 20/12/2020 17.07, Clifford Okorie wrote:
> >
> > Hello mates, I'm looking for a Django paid job to know more about my
> > skill set  you can contact me through my email :kcalif...@gmail.com
> > , Thank you.
> >
>
> Sorry to sound like a jerk, but posting the same thing four times even
> highjacking unrelated threads makes it seem like your either unable to
> use an email client or extremely desperate and lacking basic
> communication skills. Neither of these are impressions you want to give
> a potential employer.
>
> Not that I have any reason to think you are either of those things of
> course, just a friendly hint.
>
> Good luck with job hunting and kind regards,
>
> Kasper Laudrup
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/7ed1f715-f072-da8d-2ae0-9a1b2b1661c4%40stacktrace.dk
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMxZ8Skq3q%3DoGEj97WqMTpuyyBanusqSqdpFQACZa6uChr8E0A%40mail.gmail.com.


Re: Ongoing project

2020-12-20 Thread Joel Tanko
I am interested. I'm Joel from Nigeria

On 20 Dec 2020 12:53 am, "Oyedele Yusuff"  wrote:

> I'm interested
>
> On Thu, 17 Dec 2020 12:42 pm Peter Kirieny, 
> wrote:
>
>> Hello team
>> I have a project in django
>> (developing an ecommerce website with some innovations)
>>
>> Using pycharm and python, am looking for a partner here
>>
>> Am a Kenyan, in Nairobi
>>
>> If interested please inbox for more information
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/django-users/CAL8t8eovVqpPJGfTAE9Q_%3DuPdazu3xxF-
>> 79CQxmcf7MNNAL6YA%40mail.gmail.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/CAAmMZ-kJ2nbo70sKopeoRiX1g1xdHqNba7EC
> t8gX75dc%2BNEAOA%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJ4Kmg6YVyhhTT-F%2BVnuWpAcR9J8U%2B1JnkzM7tqwBH7LJtmuew%40mail.gmail.com.


Re: Django Job

2020-12-20 Thread Kasper Laudrup

Hi Clifford,

On 20/12/2020 17.07, Clifford Okorie wrote:


Hello mates, I'm looking for a Django paid job to know more about my 
skill set  you can contact me through my email :kcalif...@gmail.com 
, Thank you.




Sorry to sound like a jerk, but posting the same thing four times even 
highjacking unrelated threads makes it seem like your either unable to 
use an email client or extremely desperate and lacking basic 
communication skills. Neither of these are impressions you want to give 
a potential employer.


Not that I have any reason to think you are either of those things of 
course, just a friendly hint.


Good luck with job hunting and kind regards,

Kasper Laudrup

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7ed1f715-f072-da8d-2ae0-9a1b2b1661c4%40stacktrace.dk.


Re: Django/python free Training

2020-12-20 Thread Abdulfarid Olakunle
I am interested

On Sun, Dec 20, 2020, 16:49 Barbara Leonard 
wrote:

> I'm Interested
>
>
> On Fri, Dec 18, 2020 at 9:26 AM Python Class 
> wrote:
>
>> Hi guys,
>>
>> I am manucho from Kenya and am good developer with django and python and
>> i want to teach people what i know .I want to start a youtube channel for
>> Django and python based tutorials ..If intrested you can message me here on
>> concepts and projects you want covered and i will start immediately.
>>
>> Regards,
>> Manucho.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/5c715780-23c4-4d31-9219-a1e7b92c14f1n%40googlegroups.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAAcuwDfpeQzFQU%3DzTqdpV1S4ZvXxpfKPCw3h0pvpZ-24%3DAsH%3Dw%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BccuR3uLyDXfMJaLa%3DY8t6YeHtw079_1m0rohe19yg5oZonxw%40mail.gmail.com.


Re: Django/python free Training

2020-12-20 Thread AidEmpire
interested


пт, 18 дек. 2020 г. в 19:26, Python Class :

> Hi guys,
>
> I am manucho from Kenya and am good developer with django and python and i
> want to teach people what i know .I want to start a youtube channel for
> Django and python based tutorials ..If intrested you can message me here on
> concepts and projects you want covered and i will start immediately.
>
> Regards,
> Manucho.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/5c715780-23c4-4d31-9219-a1e7b92c14f1n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHyR2ZswS9aGrv3aqO63fZzLCN-uPKQWEe4tUuGXf-JnBXPC4w%40mail.gmail.com.


[no subject]

2020-12-20 Thread Clifford Okorie
Hello mates,  I'm looking for a Django paid job to know more about my skill
set you can contact me through my email : kcalif...@gmail.com. thank you.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEKe804tdiUyy-ubc61-DXntvd7pZwyMBZAXVmUyEnf5S3%2BkAw%40mail.gmail.com.


[no subject]

2020-12-20 Thread Clifford Okorie
Hello mates, I'm looking for a Django paid job to know more about my skill
set  you can contact me through my email :kcalif...@gmail.com, Thank you.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEKe804rq-_tfN3HLnHArgkdhL%3DJ3CtXr%2B--TMf%3DLqW_%3DScV1Q%40mail.gmail.com.


Django Job

2020-12-20 Thread Clifford Okorie
Hello mates, I'm looking for a Django paid job to know more about my skill
set  you can contact me through my email :kcalif...@gmail.com, Thank you.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEKe805Kv-ANp-Dvr0%2B6LK4kw74OUb%2B0nZCEia%2BgiWcCxMcg1A%40mail.gmail.com.


Re: 127.0.0.1 refused to connect.

2020-12-20 Thread pycode
Add views.py with
from django.http import HttpResponse

def homepage(request):
   return HttpResponse ('hello world')

urls.py

from . import views

urlpatterns = [
   path('/', views.homepage)
]

On Fri, Dec 18, 2020, 9:59 PM Parul.  wrote:

> i am not able to connect , i tried to use 0.0.0.0:8000 , 0.0.0.0:8080 as
> well, still getting same error.
> used 127.0.0.1 with ports 8000 and 8080 still getting error
> i have put '*' in ALLOWED_HOSTS
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/b6e49e34-46f1-4c5f-9829-358b3323d381n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABFQhy5W1SX-1WuP%3DUSy%2BU3T-bg3S1zRKnZWvk%2Bf4P7H27ty%2Bw%40mail.gmail.com.


Re: Django job

2020-12-20 Thread Clifford Okorie
Hello mates, I'm looking for a django remote job . If you have any feel
free to reach me , My email : kcalif...@gmail.com, thank you.

On Sun, Dec 20, 2020, 13:28 Atuma Samuel  wrote:

> Okay Abigun
>  Thanks for reaching me.
>
> On Dec 20, 2020 12:35, "Sherif Adigun"  wrote:
>
>> Thank you. I have sent you a message on WhatsApp and saved your number.
>>
>> On Sunday, December 20, 2020 at 11:58:33 AM UTC+1 samue...@gmail.com
>> wrote:
>>
>>> I post jobs on my WhatsApp status.
>>> Most times, they are django related, and remote.
>>> This is my WhatsApp number +2347059180332 <+234%20705%20918%200332>.
>>>
>>> On Dec 20, 2020 11:49, "Sherif Adigun"  wrote:
>>>
 Hello,
 I'm currently available for paid Django jobs. If you have any related
 task you want me to work on (paid), kindly respond to this.

 Thank you as I look forward to your responses.

 --
 You received this message because you are subscribed to the Google
 Groups "Django users" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to django-users+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/e6e6f7a0-e29a-43db-b448-87118e9d19d8n%40googlegroups.com
 
 .

>>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/24f4c4cd-9db7-4290-8717-cfb52d4aae57n%40googlegroups.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAGL8puV4b12QKPLTT0yrGAupCeC8TNdgHnMAAunDhAXnWq3zsg%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEKe806-7OpE5VbQRKrSWEB5nBLMcnm%2BZdRPZGg3YUn2aPa4ew%40mail.gmail.com.


RE: Django/python free Training

2020-12-20 Thread radheyraman
I wanted to join  Sent from Mail for Windows 10 From: Noel SimelaSent: Sunday, December 20, 2020 8:50 AMTo: django-users@googlegroups.comSubject: Re: Django/python free Training Have you worked on project that handles file uploads and sharing like google drive,dropbox e.t.c? There are no tutorials on such projects anywhere. That could be your starting point. Many Thanks, On Fri, Dec 18, 2020 at 4:26 PM Python Class  wrote:Hi guys, I am manucho from Kenya and am good developer with django and python and i want to teach people what i know .I want to start a youtube channel for Django and python based tutorials ..If intrested you can message me here on concepts and projects you want covered and i will start immediately. Regards,Manucho.-- You received this message because you are subscribed to the Google Groups "Django users" group.To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5c715780-23c4-4d31-9219-a1e7b92c14f1n%40googlegroups.com.-- You received this message because you are subscribed to the Google Groups "Django users" group.To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGBhr7Zb6LEyaAyX3B0y9JNz_%2By-qvkb32-0Csebyfw6FXDrrw%40mail.gmail.com. 



-- 
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/16E76D36-63E6-4EDA-AB91-A6E4B9546E55%40hxcore.ol.


Re: Ongoing project

2020-12-20 Thread sakshi jain
whts up grp

On Sun, Dec 20, 2020, 05:23 Oyedele Yusuff  wrote:

> I'm interested
>
> On Thu, 17 Dec 2020 12:42 pm Peter Kirieny, 
> wrote:
>
>> Hello team
>> I have a project in django
>> (developing an ecommerce website with some innovations)
>>
>> Using pycharm and python, am looking for a partner here
>>
>> Am a Kenyan, in Nairobi
>>
>> If interested please inbox for more information
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAL8t8eovVqpPJGfTAE9Q_%3DuPdazu3xxF-79CQxmcf7MNNAL6YA%40mail.gmail.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAAmMZ-kJ2nbo70sKopeoRiX1g1xdHqNba7ECt8gX75dc%2BNEAOA%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJhs3iPjko3nSYe1gvwJR%3D6eCJr0Z37HyatgiCe3MkU2avv4XA%40mail.gmail.com.


Re: Ongoing project

2020-12-20 Thread Rahul siddharth Dacha
Are you a beginner or already  have experience in this field?(Django)

On Thu, 17 Dec, 2020, 5:13 PM Peter Kirieny,  wrote:

> Hello team
> I have a project in django
> (developing an ecommerce website with some innovations)
>
> Using pycharm and python, am looking for a partner here
>
> Am a Kenyan, in Nairobi
>
> If interested please inbox for more information
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAL8t8eovVqpPJGfTAE9Q_%3DuPdazu3xxF-79CQxmcf7MNNAL6YA%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHt4mRrJ00GUtDS60QKjnqNK_01DXSXUTKqAqZuLjwh9eYzCGg%40mail.gmail.com.


Re: Django/python free Training

2020-12-20 Thread Oyedele Yusuff
I interested too

On Fri, 18 Dec 2020 3:26 pm Python Class,  wrote:

> Hi guys,
>
> I am manucho from Kenya and am good developer with django and python and i
> want to teach people what i know .I want to start a youtube channel for
> Django and python based tutorials ..If intrested you can message me here on
> concepts and projects you want covered and i will start immediately.
>
> Regards,
> Manucho.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/5c715780-23c4-4d31-9219-a1e7b92c14f1n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAAmMZ-%3Dz0AAB9oPR4aTi69tyeOibKf5DJC2LM0BECoETxF3Z9Q%40mail.gmail.com.


Re: 127.0.0.1 refused to connect.

2020-12-20 Thread Kelvin Sajere
If you use a vpn, make sure it’s not on. Some vpn blocks all other ports
when they are on.

On Sun, Dec 20, 2020 at 05:27 Parul.  wrote:

> Hy,
> I am not able to indentify the exact problem here. I tried various
> combinations like using only
> Python manage.py runserver
> Then
> Python manage.py runserver 8080 /8000
>
> Still getting the error message as
> "Refused to connect "
>
>
> This has really become an obstacle for me as I am not able to continue
> further.
> I tried all the above suggestions except uninstalling django...
> considering that as my last option ..
> Please help
>
>
> On Sat, Dec 19, 2020, 10:12 AM Frank Chukka 
> wrote:
>
>> try running the server without including the ip or port,just run "python
>> manage.py runserver" only.
>>
>> The way I tend to solve problems like this is I reduce the search space
>> by ruling out what is obviously not the issue(e.g I don't think you have to
>> reinstall your os or that it has anything to do with https since you're
>> running locally) next I look at the error message(especially the last line
>> in cmd) then I do a little bit of Googling.just keep ruling out what didn't
>> work eventually you will arrive at d solution.for example,you can startup a
>> new project in a virtual environment n run the server of the new project,if
>> you don't get the error again you can be rest assured the error has to do
>> with the specific project you're working but if you do then the next
>> suspect should probably be your os.since the server is not running at all
>> that rules out the Web browser.
>>
>> Just be patient,chop it off bit by bit and you will eventually get
>> there.best of luck
>> On 18 Dec 2020 7:11 pm, "Parul."  wrote:
>>
>>> I am using the command python manage.py runserver
>>> But it is not running the servers
>>> I tried localhost with 8000 and 8080 also
>>> The tried 0.0.0.0:8000 and with 8080
>>>
>>>
>>> I am not running any other servers.
>>>
>>> While checking the ip4 in cmd...it's showing 192.168.1.11 tried python
>>> manage.py runserver with this also but didn't work.
>>>
>>> On Fri, Dec 18, 2020, 11:27 PM Akanimoh Osutuk 
>>> wrote:
>>>
 The port is probably being used by another app. Are u running other
 development servers?

 On Fri, 18 Dec 2020, 18:34 Parul.,  wrote:

> This is the error which I am getting.
>
> On Fri, Dec 18, 2020, 10:59 PM Akanimoh Osutuk 
> wrote:
>
>> What errors are you getting?
>>
>> On Fri, 18 Dec 2020, 17:28 Parul.,  wrote:
>>
>>> i am not able to connect , i tried to use 0.0.0.0:8000 ,
>>> 0.0.0.0:8080 as well, still getting same error.
>>> used 127.0.0.1 with ports 8000 and 8080 still getting error
>>> i have put '*' in ALLOWED_HOSTS
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it,
>>> send an email to django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/b6e49e34-46f1-4c5f-9829-358b3323d381n%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it,
>> send an email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CADA0syjmtd4q9Lfx6dzqoZTiK-FQ8zz6V22ArB-5HdzUB7azkw%40mail.gmail.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHjHRFo2GOfxpcDbJJZ1LHLYUHRoguAuStvwVW0h%2Bzw2AuxvUw%40mail.gmail.com
> 
> .
>
 --
 You received this message because you are subscribed to the Google
 Groups "Django users" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to django-users+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CADA0sygCesoKDxeJxYTY%3DN61VG50ViW5bj%2Bq2nVxwvu6qYrfpQ%40mail.gmail.com
 

Re: Django/python free Training

2020-12-20 Thread cubells
El 18/12/20 a les 6:41, Python Class ha escrit:
> Hi guys,
> 
> I am manucho from Kenya and am good developer with django and python and
> i want to teach people what i know .I want to start a youtube channel
> for Django and python based tutorials ..If intrested you can message me
> here on concepts and projects you want covered and i will start immediately.
> 

I'm interested too manucho.


-- 
Atentament, cubells.
--

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/22dd90e3-077b-0f3b-bc08-1392d5934dfd%40vcubells.net.


Re: Django/python free Training

2020-12-20 Thread Barbara Leonard
I'm Interested


On Fri, Dec 18, 2020 at 9:26 AM Python Class 
wrote:

> Hi guys,
>
> I am manucho from Kenya and am good developer with django and python and i
> want to teach people what i know .I want to start a youtube channel for
> Django and python based tutorials ..If intrested you can message me here on
> concepts and projects you want covered and i will start immediately.
>
> Regards,
> Manucho.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/5c715780-23c4-4d31-9219-a1e7b92c14f1n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAAcuwDfpeQzFQU%3DzTqdpV1S4ZvXxpfKPCw3h0pvpZ-24%3DAsH%3Dw%40mail.gmail.com.


Re: Django job

2020-12-20 Thread Atuma Samuel
Okay Abigun
 Thanks for reaching me.

On Dec 20, 2020 12:35, "Sherif Adigun"  wrote:

> Thank you. I have sent you a message on WhatsApp and saved your number.
>
> On Sunday, December 20, 2020 at 11:58:33 AM UTC+1 samue...@gmail.com
> wrote:
>
>> I post jobs on my WhatsApp status.
>> Most times, they are django related, and remote.
>> This is my WhatsApp number +2347059180332 <+234%20705%20918%200332>.
>>
>> On Dec 20, 2020 11:49, "Sherif Adigun"  wrote:
>>
>>> Hello,
>>> I'm currently available for paid Django jobs. If you have any related
>>> task you want me to work on (paid), kindly respond to this.
>>>
>>> Thank you as I look forward to your responses.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/
>>> msgid/django-users/e6e6f7a0-e29a-43db-b448-87118e9d19d8n%
>>> 40googlegroups.com
>>> 
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/24f4c4cd-9db7-4290-8717-cfb52d4aae57n%
> 40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGL8puV4b12QKPLTT0yrGAupCeC8TNdgHnMAAunDhAXnWq3zsg%40mail.gmail.com.


Re: Django job

2020-12-20 Thread Sherif Adigun
Thank you. I have sent you a message on WhatsApp and saved your number.

On Sunday, December 20, 2020 at 11:58:33 AM UTC+1 samue...@gmail.com wrote:

> I post jobs on my WhatsApp status.
> Most times, they are django related, and remote.
> This is my WhatsApp number +2347059180332 <+234%20705%20918%200332>.
>
> On Dec 20, 2020 11:49, "Sherif Adigun"  wrote:
>
>> Hello,
>> I'm currently available for paid Django jobs. If you have any related 
>> task you want me to work on (paid), kindly respond to this.
>>
>> Thank you as I look forward to your responses.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/e6e6f7a0-e29a-43db-b448-87118e9d19d8n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/24f4c4cd-9db7-4290-8717-cfb52d4aae57n%40googlegroups.com.


Re: Django job

2020-12-20 Thread Atuma Samuel
I post jobs on my WhatsApp status.
Most times, they are django related, and remote.
This is my WhatsApp number +2347059180332.

On Dec 20, 2020 11:49, "Sherif Adigun"  wrote:

> Hello,
> I'm currently available for paid Django jobs. If you have any related task
> you want me to work on (paid), kindly respond to this.
>
> Thank you as I look forward to your responses.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/e6e6f7a0-e29a-43db-b448-87118e9d19d8n%
> 40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGL8puUsQcgEfEM5bkxT3Frn0_zzdBtAJ6ZF53kQ2dii-Q6DLA%40mail.gmail.com.


Django job

2020-12-20 Thread Sherif Adigun
Hello,
I'm currently available for paid Django jobs. If you have any related task 
you want me to work on (paid), kindly respond to this.

Thank you as I look forward to your responses.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e6e6f7a0-e29a-43db-b448-87118e9d19d8n%40googlegroups.com.


Re: 127.0.0.1 refused to connect.

2020-12-20 Thread Parul.
Hy,
I am not able to indentify the exact problem here. I tried various
combinations like using only
Python manage.py runserver
Then
Python manage.py runserver 8080 /8000

Still getting the error message as
"Refused to connect "


This has really become an obstacle for me as I am not able to continue
further.
I tried all the above suggestions except uninstalling django... considering
that as my last option ..
Please help


On Sat, Dec 19, 2020, 10:12 AM Frank Chukka  wrote:

> try running the server without including the ip or port,just run "python
> manage.py runserver" only.
>
> The way I tend to solve problems like this is I reduce the search space by
> ruling out what is obviously not the issue(e.g I don't think you have to
> reinstall your os or that it has anything to do with https since you're
> running locally) next I look at the error message(especially the last line
> in cmd) then I do a little bit of Googling.just keep ruling out what didn't
> work eventually you will arrive at d solution.for example,you can startup a
> new project in a virtual environment n run the server of the new project,if
> you don't get the error again you can be rest assured the error has to do
> with the specific project you're working but if you do then the next
> suspect should probably be your os.since the server is not running at all
> that rules out the Web browser.
>
> Just be patient,chop it off bit by bit and you will eventually get
> there.best of luck
> On 18 Dec 2020 7:11 pm, "Parul."  wrote:
>
>> I am using the command python manage.py runserver
>> But it is not running the servers
>> I tried localhost with 8000 and 8080 also
>> The tried 0.0.0.0:8000 and with 8080
>>
>>
>> I am not running any other servers.
>>
>> While checking the ip4 in cmd...it's showing 192.168.1.11 tried python
>> manage.py runserver with this also but didn't work.
>>
>> On Fri, Dec 18, 2020, 11:27 PM Akanimoh Osutuk 
>> wrote:
>>
>>> The port is probably being used by another app. Are u running other
>>> development servers?
>>>
>>> On Fri, 18 Dec 2020, 18:34 Parul.,  wrote:
>>>
 This is the error which I am getting.

 On Fri, Dec 18, 2020, 10:59 PM Akanimoh Osutuk 
 wrote:

> What errors are you getting?
>
> On Fri, 18 Dec 2020, 17:28 Parul.,  wrote:
>
>> i am not able to connect , i tried to use 0.0.0.0:8000 , 0.0.0.0:8080
>> as well, still getting same error.
>> used 127.0.0.1 with ports 8000 and 8080 still getting error
>> i have put '*' in ALLOWED_HOSTS
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it,
>> send an email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/b6e49e34-46f1-4c5f-9829-358b3323d381n%40googlegroups.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CADA0syjmtd4q9Lfx6dzqoZTiK-FQ8zz6V22ArB-5HdzUB7azkw%40mail.gmail.com
> 
> .
>
 --
 You received this message because you are subscribed to the Google
 Groups "Django users" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to django-users+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CAHjHRFo2GOfxpcDbJJZ1LHLYUHRoguAuStvwVW0h%2Bzw2AuxvUw%40mail.gmail.com
 
 .

>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CADA0sygCesoKDxeJxYTY%3DN61VG50ViW5bj%2Bq2nVxwvu6qYrfpQ%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To 

Re: pass a parameter into sql raw string and execute django

2020-12-20 Thread Luciano Martins
Could you show your whole project?

Em sábado, 19 de dezembro de 2020 às 23:32:26 UTC-3, jul.ale...@gmail.com 
escreveu:

> Hello
>
> First, create a query.py , just for order.
>
> [image: image.png]
>
> and declare a function with the parameters you want to receive.
>
> Then, in your views.py 
> [image: image.png]
>
>
> you need to import connection from django.db 
>
> finally , you can iterate over the rows fetched with one for loop.
>
> [image: image.png]
>
> You have to validate the input in your sql to avoid sql injection, the 
> documentation tell something about it django documentation 
> 
>
>
> regards.
>
> El sáb, 19 dic 2020 a las 10:21, Ronald Kamulegeya (<
> ronald.kamu...@gmail.com>) escribió:
>
>> I want to pass parameter in view and i execute the insert query as shown 
>> below.
>>
>> I have searched and failed to get a solution.
>>
>> Any hints.
>>
>> Here is the code. My attempt is shown but not correct.
>>
>> def post_payroll(request,p_id):
>> p_id=2
>> with connection.cursor() as cursor:
>> query = "insert into 
>> payroll_payrolltemp(ndays,sdays,ot1hr,ot2hr,advance,bonus,penalty,post_status,worker_id,payperiod_id)"
>> "select 0,0,0,0,0,0,0,0,sw.id,"
>> str(p_id) +" as payperiod_id from staff_worker as sw"
>> "where   sw.id in (select  w.worker_id from staff_workerpay as w 
>> where w .pay_frequency_id=1) order by sw.id"
>> 
>> cursor.execute(query)
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/fe44ecbd-2555-4826-98e8-038212730a74n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d3feb243-1694-44f0-841e-b9ebaa7078b7n%40googlegroups.com.