Re: Need help on RedirectView

2021-06-20 Thread David Nugent
It is just a method on the Article model. Don't copy-paste what is there,
understand what it is doing.

In this *example*, update_counter() will be defined in
Article(models.Model), probably in models.py in the app. You obliged to use
anything like this in your redirect.

HTH,

On Sun, Jun 20, 2021 at 10:21 PM Hello Singh  wrote:

> Now I am trying Django class based view through Django documentation it
> going well, but I a problem in RedirectView.
>
> There is `update_counter()` method I don't understand what it is doing and
> where it come from. I highlight it in the given image.
>
> Please help me
> Thanks developers
>
> --
> 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/CAEoS0z44Zkf2TJNuay6AU1imCdu5ALmuHSzxJxLtgKS_R69wfQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAEoS0z44Zkf2TJNuay6AU1imCdu5ALmuHSzxJxLtgKS_R69wfQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAE5VhgX4s-oqRqg%2B9zw2UBE-tmLEz0jnJDUDSXcXqtO976rhYA%40mail.gmail.com.


Re: PLS HELP!! - SCRAPE YOUTUBE CHANNEL EMAIL

2021-06-20 Thread Priyesh Ranjan
yes i can do that for you

On Sun, Jun 20, 2021 at 6:29 AM Vrushang Desai 
wrote:

> Hi Guys ,
> Anyone knows how to scrape Youtube Channels Emails?
>
> With Django/Python?
>
> If yes,
> Pls reply!
> Thanks.
>
> --
> 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/75971331-aa7a-41e3-879f-42bd80bf7984n%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/CAB51kLSj84dBb-g1Qi72HtSxVaCKai9-mz-8H%3DUV-bGfC4O60g%40mail.gmail.com.


Re: Help me Please - Django and python program

2021-06-20 Thread Luciano Martins
Post your code on github and provide the link here

Em sábado, 19 de junho de 2021 às 22:00:24 UTC-3, mayanksand...@gmail.com 
escreveu:

> I have a few errors in my program.
> 1. HTML
> In my front view only my last text box is working and all the upper text 
> boxes are unassessable. 
> 2. Database
> I am getting only the user quantity in the database but not getting the 
> itemname, price and total amount in it.
>
> I don't know where it is going wrong, I've been stuck here for the last 4 
> days. I'm a beginner in django and python. Which logic is used for this 
> program?
> Please, please help me.
>
> PFA
>

-- 
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/9feed719-8ab5-4523-80a1-ad062fe1999en%40googlegroups.com.


Re: PLS HELP!! - SCRAPE YOUTUBE CHANNEL EMAIL

2021-06-20 Thread Luciano Martins
Do you want to download gmail content?

Em sábado, 19 de junho de 2021 às 22:00:01 UTC-3, vrusha...@gmail.com 
escreveu:

> Hi Guys ,
> Anyone knows how to scrape Youtube Channels Emails?
>
> With Django/Python?
>
> If yes,
> Pls reply!
> Thanks.
>

-- 
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/38813719-4428-43e5-bf5e-d475c1066bd9n%40googlegroups.com.


Re: help me plz: getting error while importing csv file into database

2021-06-20 Thread Luciano Martins
you have to pass the 'path' variable into open I believe that's it

Em sexta-feira, 18 de junho de 2021 às 15:22:41 UTC-3, rammano...@gmail.com 
escreveu:

> Hi 
> i am trying to import the csv file data into database 
>  my views.py 
> def Filter(request):
> if request.method=="POST":
> form = DataForm(request.POST, request.FILES)
> if form.is_valid():
> initial_obj = form.save(commit=False)
> data=initial_obj['data']
> path="C:\\Users\\ramma\\Downloads\\assesment.csv"
> os.chdir(path)
>
> with open('assesment.csv') as csvfile:
> reader = csv.DictReader(csvfile)
> for row in reader:
> file=data(name=row['product'],)
>
> initial_obj.save()
> file.save()
> return redirect('/')
> else:
> return render(request,'index.html',{'form':form})
> else:
> return render(request,'index.html',{'form':form})
>
>
> def search(request):
> list = data.objects.all()
> data_filter = DataFilter(request.GET, queryset=list)
> return render(request, 'product.html', {'filter': data_filter})
>
>

-- 
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/779d973e-ca1e-481d-a8cf-5feba8b32448n%40googlegroups.com.


PLS HELP!! - SCRAPE YOUTUBE CHANNEL EMAIL

2021-06-19 Thread Vrushang Desai
Hi Guys ,
Anyone knows how to scrape Youtube Channels Emails?

With Django/Python?

If yes,
Pls reply!
Thanks.

-- 
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/75971331-aa7a-41e3-879f-42bd80bf7984n%40googlegroups.com.


Re: help me plz: button one click django(disable the submit button )

2021-06-19 Thread Kasper Laudrup
On 19/06/2021 21.58, hanin guesmi wrote:
> ok i will thnx
>

You could spend the rest of your life doing that, so if you want someone
to help you, it might be a better idea to write a bit about what you've
tried, how it's not working etc.

Of course, that's completely up to you, but writing questions with a bit
of information usually helps getting closer to a solution and you might
end up learning something in the process.

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/0c9650a3-7ef4-ce59-0615-1da83f65aacc%40stacktrace.dk.


OpenPGP_signature
Description: OpenPGP digital signature


Re: help me plz: button one click django(disable the submit button )

2021-06-19 Thread hanin guesmi
ok i will thnx

Le samedi 19 juin 2021 à 20:43:57 UTC+1, Kasper Laudrup a écrit :

> On 19/06/2021 13.58, hanin guesmi wrote:
> > I. Tried many codes but not working 
> >
>
> Try a few more. You know how when you've lost something, you always find
> it the last place you look?
>
> It's the same with codes. It's always the last one you try.
>
> 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/a0bc353d-4328-4569-b45d-04b9acb46adbn%40googlegroups.com.


Re: help me plz: button one click django(disable the submit button )

2021-06-19 Thread Kasper Laudrup
On 19/06/2021 13.58, hanin guesmi wrote:
> I. Tried many codes but not working 
>

Try a few more. You know how when you've lost something, you always find
it the last place you look?

It's the same with codes. It's always the last one you try.

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/2e4e8985-3855-7325-45c8-fa9359f3f931%40stacktrace.dk.


OpenPGP_signature
Description: OpenPGP digital signature


Re: please help! not getting the desired output. how to add multiple orders via Django forms using Javascript?

2021-06-19 Thread Williams Andy Inc
Anyone interested in talking about django sharing their knowledge or path
or want to learn more?

meeting Now

https://meet.google.com/wcv-ojtf-vhi

On Sat, Jun 19, 2021 at 10:31 AM DJANGO DEVELOPER 
wrote:

> please can someone help me?
>
> On Sat, Jun 19, 2021 at 9:31 AM DJANGO DEVELOPER 
> wrote:
>
>> for convenience, please follow addorder1 to addorder5 respectively.
>>
>> On Saturday, June 19, 2021 at 9:29:48 AM UTC+5 DJANGO DEVELOPER wrote:
>>
>>> Hi guys I need urgent help. your help is appreciated.
>>> When I try to add a single order from user side then it works fine but
>>> when I try to add multiple orders at the same time then neither it updates
>>> a products price nor print all the orders on the invoice. can any one help
>>> me? screenshots attached below.
>>>
>> --
>> 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/a5126278-cdf7-455c-8718-e9f0692f5ef3n%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/a5126278-cdf7-455c-8718-e9f0692f5ef3n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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/CAKPY9pnHpB7CDXe078G2QPZZMsfJ69egDRRxAX4ijvjvNCRQyQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAKPY9pnHpB7CDXe078G2QPZZMsfJ69egDRRxAX4ijvjvNCRQyQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAPCthNJW%3DtmAs04%3DBn7OfuyWk6CmYpBTx1du0MV4dsNLvthgBQ%40mail.gmail.com.


Re: help me plz: button one click django(disable the submit button )

2021-06-19 Thread Prasad Ajmire
Hey

On Sat, Jun 19, 2021, 5:29 PM hanin guesmi  wrote:

> I. Tried many codes but not working
>
> Le sam. 19 juin 2021 à 04:58, DJANGO DEVELOPER 
> a écrit :
>
>> you can apply javascript to perform this action.
>>
>> On Sat, Jun 19, 2021 at 7:43 AM hanin guesmi 
>> wrote:
>>
>>> Hi
>>> i am trying to disable send data when click in the second time in the
>>> button
>>> my template.html
>>>  
>>>   {% csrf_token %}
>>>   {% bootstrap_form form %}
>>>
>>>  submit>> >
>>>  
>>>
>>>
>>> 
>>>  Garanti
>>> sans virus. www.avast.com
>>> 
>>> <#m_-4274751709910058625_m_3118549069509375849_m_4219546677206560646_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>>
>>> --
>>> 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/CABqiOL-3gAqMUry0k8P7__naavRT6d-jPvVobiJNvq91dvGbyA%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/CAKPY9p%3DgE4rK2AUow46u7dUwPFiq%2BdUKHXx%3D5bBeuBKt_U86hw%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/CABqiOL-XvXYgxNASbA53kg4E2Tmf%2B3v3k7h%3DWY%2B-0jJFEis1xg%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/CAJC%2BgnAch%3DGSsTgALoCeox4ROdDPaNzBbuJJP3OBZ-cChzos5A%40mail.gmail.com.


Re: help me plz: button one click django(disable the submit button )

2021-06-19 Thread vvk
Hi all pls make one Wtapp group or Instagram group  bevause mail box not
sufficient to solve

On Sat, Jun 19, 2021, 8:14 AM hanin guesmi  wrote:

> Hi
> i am trying to disable send data when click in the second time in the
> button
> my template.html
>  
>   {% csrf_token %}
>   {% bootstrap_form form %}
>
>  submit >
>  
>
>
> 
>  Garanti
> sans virus. www.avast.com
> 
> <#m_3890685427270182180_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> --
> 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/CABqiOL-3gAqMUry0k8P7__naavRT6d-jPvVobiJNvq91dvGbyA%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/CAKBaE%3DkgR-thJ3Ofn91WLZ%2B8d4mViOm3-rBJR-6sVjoCfCadCQ%40mail.gmail.com.


Re: help me plz: button one click django(disable the submit button )

2021-06-19 Thread hanin guesmi
I. Tried many codes but not working

Le sam. 19 juin 2021 à 04:58, DJANGO DEVELOPER  a
écrit :

> you can apply javascript to perform this action.
>
> On Sat, Jun 19, 2021 at 7:43 AM hanin guesmi 
> wrote:
>
>> Hi
>> i am trying to disable send data when click in the second time in the
>> button
>> my template.html
>>  
>>   {% csrf_token %}
>>   {% bootstrap_form form %}
>>
>>  submit> >
>>  
>>
>>
>> 
>>  Garanti
>> sans virus. www.avast.com
>> 
>> <#m_3118549069509375849_m_4219546677206560646_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>
>> --
>> 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/CABqiOL-3gAqMUry0k8P7__naavRT6d-jPvVobiJNvq91dvGbyA%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/CAKPY9p%3DgE4rK2AUow46u7dUwPFiq%2BdUKHXx%3D5bBeuBKt_U86hw%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/CABqiOL-XvXYgxNASbA53kg4E2Tmf%2B3v3k7h%3DWY%2B-0jJFEis1xg%40mail.gmail.com.


Re: please help! not getting the desired output. how to add multiple orders via Django forms using Javascript?

2021-06-19 Thread DJANGO DEVELOPER
please can someone help me?

On Sat, Jun 19, 2021 at 9:31 AM DJANGO DEVELOPER 
wrote:

> for convenience, please follow addorder1 to addorder5 respectively.
>
> On Saturday, June 19, 2021 at 9:29:48 AM UTC+5 DJANGO DEVELOPER wrote:
>
>> Hi guys I need urgent help. your help is appreciated.
>> When I try to add a single order from user side then it works fine but
>> when I try to add multiple orders at the same time then neither it updates
>> a products price nor print all the orders on the invoice. can any one help
>> me? screenshots attached below.
>>
> --
> 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/a5126278-cdf7-455c-8718-e9f0692f5ef3n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/a5126278-cdf7-455c-8718-e9f0692f5ef3n%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAKPY9pnHpB7CDXe078G2QPZZMsfJ69egDRRxAX4ijvjvNCRQyQ%40mail.gmail.com.


Re: please help! not getting the desired output. how to add multiple orders via Django forms using Javascript?

2021-06-18 Thread DJANGO DEVELOPER
for convenience, please follow addorder1 to addorder5 respectively.

On Saturday, June 19, 2021 at 9:29:48 AM UTC+5 DJANGO DEVELOPER wrote:

> Hi guys I need urgent help. your help is appreciated.
> When I try to add a single order from user side then it works fine but 
> when I try to add multiple orders at the same time then neither it updates 
> a products price nor print all the orders on the invoice. can any one help 
> me? screenshots attached below.
>

-- 
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/a5126278-cdf7-455c-8718-e9f0692f5ef3n%40googlegroups.com.


Re: help me plz: button one click django(disable the submit button )

2021-06-18 Thread DJANGO DEVELOPER
you can apply javascript to perform this action.

On Sat, Jun 19, 2021 at 7:43 AM hanin guesmi  wrote:

> Hi
> i am trying to disable send data when click in the second time in the
> button
> my template.html
>  
>   {% csrf_token %}
>   {% bootstrap_form form %}
>
>  submit >
>  
>
>
> 
>  Garanti
> sans virus. www.avast.com
> 
> <#m_4219546677206560646_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> --
> 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/CABqiOL-3gAqMUry0k8P7__naavRT6d-jPvVobiJNvq91dvGbyA%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/CAKPY9p%3DgE4rK2AUow46u7dUwPFiq%2BdUKHXx%3D5bBeuBKt_U86hw%40mail.gmail.com.


help me plz: button one click django(disable the submit button )

2021-06-18 Thread hanin guesmi
Hi
i am trying to disable send data when click in the second time in the button
my template.html
 
  {% csrf_token %}
  {% bootstrap_form form %}

 submit
 


Garanti
sans virus. www.avast.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

-- 
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/CABqiOL-3gAqMUry0k8P7__naavRT6d-jPvVobiJNvq91dvGbyA%40mail.gmail.com.


help me plz: getting error while importing csv file into database

2021-06-18 Thread ram manoj Vuyyuru
Hi
i am trying to import the csv file data into database
 my views.py
def Filter(request):
if request.method=="POST":
form = DataForm(request.POST, request.FILES)
if form.is_valid():
initial_obj = form.save(commit=False)
data=initial_obj['data']
path="C:\\Users\\ramma\\Downloads\\assesment.csv"
os.chdir(path)

with open('assesment.csv') as csvfile:
reader = csv.DictReader(csvfile)
for row in reader:
file=data(name=row['product'],)

initial_obj.save()
file.save()
return redirect('/')
else:
return render(request,'index.html',{'form':form})
else:
return render(request,'index.html',{'form':form})


def search(request):
list = data.objects.all()
data_filter = DataFilter(request.GET, queryset=list)
return render(request, 'product.html', {'filter': data_filter})

-- 
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/CALJzFiqOMj5Lz2MZKvrPbB%3DXFfOrdBFeSBjd53tO7eVY9NDy5w%40mail.gmail.com.


Re: help me plz: getting error while importing csv file into database

2021-06-18 Thread ram manoj Vuyyuru
while running this project  getting this error

 File
"C:\ProgramData\Anaconda3\lib\site-packages\django\urls\resolvers.py", line
347, in _check_pattern_name
if self.pattern.name is not None and ":" in self.pattern.name:
TypeError: argument of type 'type' is not iterable


thank you

On Fri, Jun 18, 2021 at 10:52 PM ram manoj Vuyyuru <
rammanojvuyy...@gmail.com> wrote:

> Hi
> i am trying to import the csv file data into database
>  my views.py
> def Filter(request):
> if request.method=="POST":
> form = DataForm(request.POST, request.FILES)
> if form.is_valid():
> initial_obj = form.save(commit=False)
> data=initial_obj['data']
> path="C:\\Users\\ramma\\Downloads\\assesment.csv"
> os.chdir(path)
>
> with open('assesment.csv') as csvfile:
> reader = csv.DictReader(csvfile)
> for row in reader:
> file=data(name=row['product'],)
>
> initial_obj.save()
> file.save()
> return redirect('/')
> else:
> return render(request,'index.html',{'form':form})
> else:
> return render(request,'index.html',{'form':form})
>
>
> def search(request):
> list = data.objects.all()
> data_filter = DataFilter(request.GET, queryset=list)
> return render(request, 'product.html', {'filter': data_filter})
>
>

-- 
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/CALJzFirRGsO2hZC%3DMm6YHJRMi4CJCc9DaSFBcuD5TDxecx%3D%3DLQ%40mail.gmail.com.


Re: In need of urgent help regarding dynamic image display v

2021-06-17 Thread Ayush Bisht
I think there is 2 method which you can do to get the work done. ...

*1 : first one* .. you can declare a property decorator which just return 
the url of that image 

 
  class Banner(BaseModel):
image = ResizedImageField(upload_to="banner", null=True, 
blank=True)

@property
  def get_image_url(self):
  return str(self.image.url).replace(" ", "")
 
and then you can simply access this function like normal attributes.. 

 
{% for banner in banners %}

{% endfor %}




*2 Method :  *you can create a   root path for static files as well 

 
STATIC_URL = '/static/'
STATICFILES_DIRS = [os.path.join(BASE_DIR,'static')]


now , with this root path I can access all the file belonging to that 
particular folder 

folder structure ... 

* static
   *Banner
 *banner1.jpg



now u can simply access all the stuff ...

.banner-item-01 {
padding:300px 0px;
background-size: cover;
background-image: url('/static/Banner/banner1.jpg');
background-repeat: no-repeat;
background-position: center center;
} 

On Thursday, June 17, 2021 at 4:11:11 AM UTC-7 arit...@gmail.com wrote:

> Hi, 
> I've been building a Django E-commerce website and I'm facing this problem.
> I have created a Banner model which will take in images via 
> django.ResizedImage and then display it in the homepage. But I'm unable to 
> process them in CSS.
> Kindly help me out.
>
> PS: I'll have to process it as background-image orelse when passed as 
>  in html, we're getting extra wrapped spaces which aren't needed.
>
> Below given are: views.py, models.py, index.html, css block. 
> Kindly help me out as it is urgent. Thank you for your support in advance.
>
> Regards,
> Aritra
>
> class HomeView(ListView):
> context_object_name = 'items'
> template_name = "index.html"
> queryset = Items.objects.all()
>
> def get_context_data(self, **kwargs):
> context = super(HomeView, self).get_context_data(**kwargs)
> context['banners'] = Banner.objects.all()
> return context
>
> class Banner(BaseModel):
> image = ResizedImageField(upload_to="banner", null=True, blank=True)
>
> 
> 
>   {% for banner in banners %}
> 
>   {% endfor %}
> 
> 
>
>   .banner-item-01 {
>padding:300px 0px;
>background-size: cover;
>background-image: url(var(--item));
>background-repeat: no-repeat;
>background-position: center center;
> }  
>
>
>

-- 
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/241a1f08-a093-4f3a-a01f-46e0a3e73ce1n%40googlegroups.com.


Re: In need of urgent help regarding dynamic image display v

2021-06-17 Thread Arjun Kumar
Hi all,

Anyone having complete practical knowledge of Django. Kindly help me to do
so.

Warm regards,
Arjun Kumar
Delhi, India


On Thu, 17 Jun 2021 at 16:40, Aritra Ray  wrote:

> Hi,
> I've been building a Django E-commerce website and I'm facing this problem.
> I have created a Banner model which will take in images via
> django.ResizedImage and then display it in the homepage. But I'm unable to
> process them in CSS.
> Kindly help me out.
>
> PS: I'll have to process it as background-image orelse when passed as
>  in html, we're getting extra wrapped spaces which aren't needed.
>
> Below given are: views.py, models.py, index.html, css block.
> Kindly help me out as it is urgent. Thank you for your support in advance.
>
> Regards,
> Aritra
>
> class HomeView(ListView):
> context_object_name = 'items'
> template_name = "index.html"
> queryset = Items.objects.all()
>
> def get_context_data(self, **kwargs):
> context = super(HomeView, self).get_context_data(**kwargs)
> context['banners'] = Banner.objects.all()
> return context
>
> class Banner(BaseModel):
> image = ResizedImageField(upload_to="banner", null=True, blank=True)
>
> 
> 
>   {% for banner in banners %}
> 
>   {% endfor %}
> 
> 
>
>   .banner-item-01 {
>padding:300px 0px;
>background-size: cover;
>background-image: url(var(--item));
>background-repeat: no-repeat;
>background-position: center center;
> }
>
>
> --
> 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/CAFecadvDi5V4%3DuetJhSZo1FSyOyGsvLH_s7K%2Bhc-vMLU%2BHLBpA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAFecadvDi5V4%3DuetJhSZo1FSyOyGsvLH_s7K%2Bhc-vMLU%2BHLBpA%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAFURcXxyVB-jjAr9Duruehs5HTdUugos55gp1vMhm1ODrd6ehQ%40mail.gmail.com.


Re: In need of help regarding HTML Submit button

2021-06-17 Thread Aritra Ray
Thank you, it worked!

On Tue, 15 Jun 2021 at 00:13, Nikeet NA  wrote:

> Change the type of button back to type='button" rather than type="submit"
>
> On Monday, 14 June 2021 at 22:39:27 UTC+5:30 arit...@gmail.com wrote:
>
>> Hi,
>> I'm facing an error with the Place Order button not working when the user
>> is choosing the default address. Kindly help me out in this regard and let
>> me know if any other files are needed.
>> Thank you in advance
>> Regards,
>> Aritra.
>>
>> class Address(BaseModel):
>> user = models.ForeignKey(User, on_delete=models.SET_NULL, null=True, 
>> blank=True)
>> address = models.CharField(max_length=500, null=True)
>> phone = models.CharField(max_length=10, null=False)
>> city = models.CharField(max_length=100, null=True)
>> state = models.CharField(max_length=100, null=True)
>> pincode = models.CharField(max_length=100, null=False)
>> default = models.BooleanField(default=False, null=True, blank=True)
>>
>> def __str__(self):
>> return self.user.username
>>
>> class Meta:
>> verbose_name_plural = 'Addresses'
>>
>> 
>>  {% if default_address %}
>>  
>>  > id="use_default">
>>  Use default 
>> shipping address: {{ default_address.address|truncatechars:40 }}
>>  
>>  {% endif %}
>> 
>> 
>>  
>>  > >Back
>>  
>>  Place 
>> Order
>> 
>>
>> class CheckoutView(View):
>> def get(self, *args, **kwargs):
>> try:
>> order = Cart.objects.get(user=self.request.user, ordered=False)
>> form = CheckoutForm()
>> context = {
>> 'form': form,
>> 'order': order,
>> }
>>
>> shipping_address_qs = Address.objects.filter(
>> user=self.request.user,
>> default=True
>> )
>> if shipping_address_qs.exists():
>> context.update(
>> {'default_address': shipping_address_qs[0]})
>> return render(self.request, "checkout.html", context)
>> except ObjectDoesNotExist:
>> messages.info(self.request, "You do not have an active order")
>> return redirect(reverse('store:cart-page'))
>>
>> def post(self, *args, **kwargs):
>> form = CheckoutForm(self.request.POST)
>> try:
>> order = Cart.objects.get(user=self.request.user, ordered=False)
>> if form.is_valid():
>> use_default = form.cleaned_data.get(
>> 'use_default')
>> if use_default:
>> print("Using the default shipping address")
>> address_qs = Address.objects.filter(
>> user=self.request.user,
>> default=True
>> )
>> if address_qs.exists():
>> shipping_address = address_qs[0]
>> order.shipping_address = shipping_address
>> order.save()
>> else:
>> messages.info(self.request, "No default shipping 
>> address available")
>> return redirect('store:cart-page')
>> else:
>> address = form.cleaned_data.get('address')
>> pincode = form.cleaned_data.get('zip')
>> phone = form.cleaned_data.get('phone')
>> city = form.cleaned_data.get('city')
>> state = form.cleaned_data.get('state')
>> if form.is_valid():
>> shipping_address = Address(
>> user=self.request.user,
>> address=address,
>> pincode=pincode,
>> state=state,
>> city=city,
>> phone=phone
>> )
>> shipping_address.save()
>> order.shipping_address = shipping_address
>> order.save()
>>
>> set_default = form.cleaned_data.get(
>> 'set_d

In need of urgent help regarding dynamic image display v

2021-06-17 Thread Aritra Ray
Hi,
I've been building a Django E-commerce website and I'm facing this problem.
I have created a Banner model which will take in images via
django.ResizedImage and then display it in the homepage. But I'm unable to
process them in CSS.
Kindly help me out.

PS: I'll have to process it as background-image orelse when passed as 
in html, we're getting extra wrapped spaces which aren't needed.

Below given are: views.py, models.py, index.html, css block.
Kindly help me out as it is urgent. Thank you for your support in advance.

Regards,
Aritra

class HomeView(ListView):
context_object_name = 'items'
template_name = "index.html"
queryset = Items.objects.all()

def get_context_data(self, **kwargs):
context = super(HomeView, self).get_context_data(**kwargs)
context['banners'] = Banner.objects.all()
return context

class Banner(BaseModel):
image = ResizedImageField(upload_to="banner", null=True, blank=True)



  {% for banner in banners %}

  {% endfor %}



  .banner-item-01 {
   padding:300px 0px;
   background-size: cover;
   background-image: url(var(--item));
   background-repeat: no-repeat;
   background-position: center center;
}

-- 
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/CAFecadvDi5V4%3DuetJhSZo1FSyOyGsvLH_s7K%2Bhc-vMLU%2BHLBpA%40mail.gmail.com.


Re: Desperately need help.

2021-06-16 Thread Ken Smith
Thank you very much they are very much aware that there is a problem with
that page and and they seemed not be able to fix it for a week's now. I
have contacted them time and time again about it. Actually I am beginning
to think that they have at that way on purpose of that they don't have to
pay out  Is there customers money they just keep getting it in. I take
rather that they might be very unscrupulous. Thank you for your input have
a great day

On Wed, Jun 16, 2021, 1:02 PM Krish M  wrote:

> Ken,
>
> Base on what you're asking, and from the source code (view-source) &
> screenshot, I don't think you have access to the right code to make the fix.
>
> Maybe contacting safewayfx.com and letting them know their platform has a
> bug?
>
> If they are unwilling to fix their backend bug, then there is nothing us
> here can help with.
>
> I am assuming, if you have access to the backend code (Python, Django) you
> should hire someone to fix that bug for you, you can point them to Jul
> response.
>
> On Tuesday, June 15, 2021 at 10:45:05 PM UTC-4 Nikeet NA wrote:
>
>>
>> In your withdraw view you have return render this should be missing check
>> inside if statements or inside your custom logic which you have written
>> without seeing the actual code its hard to tell.
>>
>> On Wednesday, 16 June 2021 at 03:14:26 UTC+5:30 Ken Smith wrote:
>>
>>> jul, thank you so very much for your very simple and honest answer. This
>>> was the best response I could have ever received from anyone and I
>>> appreciate it. I'm getting a bit old at 66 it seems my brain doesn't work
>>> as good as it did even 10 years ago for learning something as difficult as
>>> coding. Although your suggestion makes good sense and holds merit. I do
>>> thank you for your response. I only ask one more simple thing can you tell
>>> me which line of the code the HTTP response is missing from.
>>>
>>> Your answer has really opened up my brain to the possibility that the
>>> website has left that out on purpose so that members cannot withdraw their
>>> money.
>>>
>>> Again thank you so very much for your response and have a wonderful day
>>> On Tuesday, June 15, 2021 at 5:39:54 PM UTC-4 jul.ale...@gmail.com
>>> wrote:
>>>
>>>> Pretty easy to be honest. The web page need an http response and it's
>>>> give none instead. :)
>>>>
>>>>
>>>> If you don't know about the code, maybe you should hire a developer or
>>>> learn by yourself.
>>>>
>>>> El mar., 15 de junio de 2021 3:14 p. m., Ken Smith 
>>>> escribió:
>>>>
>>>>> There is the issue to solve that is the result of pressing the button
>>>>> to complete your transaction. And it may be dumb because I don't know a
>>>>> damn thing about  django and I assume that I would get an intelligent
>>>>> response on this forum.  This was in fact a sincere request because I know
>>>>> nothing about this code. If I did I would've discovered it myself. I 
>>>>> merely
>>>>> had the stupid assumption that someone would actually consider this a
>>>>> challenge. But apparently not even your up to a challenge maybe it's too
>>>>> hard for you. That is coded in django as I understand I may be wrong. I
>>>>> only read what was presented on the error page. If it's not that would you
>>>>> please direct me to what code it could possibly be as I am not a coder in
>>>>> any way shape or form. I stopped even trying long before these new methods
>>>>> of coding came out. I think the last time I tried to write code was in the
>>>>> 1990s. I know there is a solution to my question I just hope there is
>>>>> someone with the intelligence to take on the challenge for me or at least
>>>>> direct me to where I need to go instead of making jokes. Perhaps someone
>>>>> can tell me something about where I need to go or what I need to do there
>>>>> is a lot of money involved in getting this code correct so that I can send
>>>>> the corrected information to the company who owns the webpage. Not
>>>>> everybody here knows how to code some of us are actually wanting some
>>>>> answers to questions that we have. I am by trade an aircraft mechanic. So 
>>>>> I
>>>>> can laugh at you if I asked you to go clean the air sock and you don't 
>>>>> even
>>>>> know what I'm talking about but I won't because you don't know 

Re: Desperately need help.

2021-06-16 Thread Krish M
Ken,

Base on what you're asking, and from the source code (view-source) & 
screenshot, I don't think you have access to the right code to make the fix.

Maybe contacting safewayfx.com and letting them know their platform has a 
bug? 

If they are unwilling to fix their backend bug, then there is nothing us 
here can help with.

I am assuming, if you have access to the backend code (Python, Django) you 
should hire someone to fix that bug for you, you can point them to Jul 
response.

On Tuesday, June 15, 2021 at 10:45:05 PM UTC-4 Nikeet NA wrote:

>
> In your withdraw view you have return render this should be missing check 
> inside if statements or inside your custom logic which you have written 
> without seeing the actual code its hard to tell.
>
> On Wednesday, 16 June 2021 at 03:14:26 UTC+5:30 Ken Smith wrote:
>
>> jul, thank you so very much for your very simple and honest answer. This 
>> was the best response I could have ever received from anyone and I 
>> appreciate it. I'm getting a bit old at 66 it seems my brain doesn't work 
>> as good as it did even 10 years ago for learning something as difficult as 
>> coding. Although your suggestion makes good sense and holds merit. I do 
>> thank you for your response. I only ask one more simple thing can you tell 
>> me which line of the code the HTTP response is missing from.
>>
>> Your answer has really opened up my brain to the possibility that the 
>> website has left that out on purpose so that members cannot withdraw their 
>> money.
>>
>> Again thank you so very much for your response and have a wonderful day
>> On Tuesday, June 15, 2021 at 5:39:54 PM UTC-4 jul.ale...@gmail.com wrote:
>>
>>> Pretty easy to be honest. The web page need an http response and it's 
>>> give none instead. :) 
>>>
>>>
>>> If you don't know about the code, maybe you should hire a developer or 
>>> learn by yourself. 
>>>
>>> El mar., 15 de junio de 2021 3:14 p. m., Ken Smith  
>>> escribió:
>>>
>>>> There is the issue to solve that is the result of pressing the button 
>>>> to complete your transaction. And it may be dumb because I don't know a 
>>>> damn thing about  django and I assume that I would get an intelligent 
>>>> response on this forum.  This was in fact a sincere request because I know 
>>>> nothing about this code. If I did I would've discovered it myself. I 
>>>> merely 
>>>> had the stupid assumption that someone would actually consider this a 
>>>> challenge. But apparently not even your up to a challenge maybe it's too 
>>>> hard for you. That is coded in django as I understand I may be wrong. I 
>>>> only read what was presented on the error page. If it's not that would you 
>>>> please direct me to what code it could possibly be as I am not a coder in 
>>>> any way shape or form. I stopped even trying long before these new methods 
>>>> of coding came out. I think the last time I tried to write code was in the 
>>>> 1990s. I know there is a solution to my question I just hope there is 
>>>> someone with the intelligence to take on the challenge for me or at least 
>>>> direct me to where I need to go instead of making jokes. Perhaps someone 
>>>> can tell me something about where I need to go or what I need to do there 
>>>> is a lot of money involved in getting this code correct so that I can send 
>>>> the corrected information to the company who owns the webpage. Not 
>>>> everybody here knows how to code some of us are actually wanting some 
>>>> answers to questions that we have. I am by trade an aircraft mechanic. So 
>>>> I 
>>>> can laugh at you if I asked you to go clean the air sock and you don't 
>>>> even 
>>>> know what I'm talking about but I won't because you don't know what I'm 
>>>> talking about. Neither do I know anything about what I presented and I 
>>>> don't pretend to know that's why I asked for some intelligent information. 
>>>> Have a good day regards Ken
>>>> On Monday, June 14, 2021 at 5:21:42 PM UTC-4 jacobgr...@gmail.com 
>>>> wrote:
>>>>
>>>>> Lol what do you expect anyone to do? You just post some random HTML, 
>>>>> zero code, no backtrace, nothing to even indicate there is an issue that 
>>>>> someone could solve even IF they were willing... This has nothing to do 
>>>>> with Django. I don't understand what you thought was going to happen. 
>>>>> This 
>>>>>

Re: Help

2021-06-15 Thread DJANGO DEVELOPER
hi inside believer. +923012876771. Ping me on whats app. I will help you in
your django project.

On Wed, Jun 16, 2021 at 1:56 AM Sebastian Jung 
wrote:

> Good luck to be an expert in Django in only one Montag
>
> Inside Believer  schrieb am Mo., 7. Juni 2021, 18:21:
>
>> Sir I'm internee i know python my company has assigned me bugs to resolve
>> in live project but i have not didn't experience of Django. Anyone who can
>> help me how to find bugs destination and how to resolve. i can pay for this
>> i want to be expert in 1 month because i'm in probations period.
>>
>> --
>> 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/d2e6328c-6176-49c6-84dc-c6c4b0d4fedbn%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/d2e6328c-6176-49c6-84dc-c6c4b0d4fedbn%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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/CAKGT9myBBr4Ux_XJFUDbmYY2%3DL%2Bkhf%3DW-AbU6D5ZZ0q8EgGovg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAKGT9myBBr4Ux_XJFUDbmYY2%3DL%2Bkhf%3DW-AbU6D5ZZ0q8EgGovg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAKPY9pnuKqgTSNW3mQ-JTC0HRhSibY_qvrzaoGx_AThbb2ZOTQ%40mail.gmail.com.


Re: Desperately need help.

2021-06-15 Thread Nikeet NA

In your withdraw view you have return render this should be missing check 
inside if statements or inside your custom logic which you have written 
without seeing the actual code its hard to tell.

On Wednesday, 16 June 2021 at 03:14:26 UTC+5:30 Ken Smith wrote:

> jul, thank you so very much for your very simple and honest answer. This 
> was the best response I could have ever received from anyone and I 
> appreciate it. I'm getting a bit old at 66 it seems my brain doesn't work 
> as good as it did even 10 years ago for learning something as difficult as 
> coding. Although your suggestion makes good sense and holds merit. I do 
> thank you for your response. I only ask one more simple thing can you tell 
> me which line of the code the HTTP response is missing from.
>
> Your answer has really opened up my brain to the possibility that the 
> website has left that out on purpose so that members cannot withdraw their 
> money.
>
> Again thank you so very much for your response and have a wonderful day
> On Tuesday, June 15, 2021 at 5:39:54 PM UTC-4 jul.ale...@gmail.com wrote:
>
>> Pretty easy to be honest. The web page need an http response and it's 
>> give none instead. :) 
>>
>>
>> If you don't know about the code, maybe you should hire a developer or 
>> learn by yourself. 
>>
>> El mar., 15 de junio de 2021 3:14 p. m., Ken Smith  
>> escribió:
>>
>>> There is the issue to solve that is the result of pressing the button to 
>>> complete your transaction. And it may be dumb because I don't know a damn 
>>> thing about  django and I assume that I would get an intelligent response 
>>> on this forum.  This was in fact a sincere request because I know nothing 
>>> about this code. If I did I would've discovered it myself. I merely had the 
>>> stupid assumption that someone would actually consider this a challenge. 
>>> But apparently not even your up to a challenge maybe it's too hard for you. 
>>> That is coded in django as I understand I may be wrong. I only read what 
>>> was presented on the error page. If it's not that would you please direct 
>>> me to what code it could possibly be as I am not a coder in any way shape 
>>> or form. I stopped even trying long before these new methods of coding came 
>>> out. I think the last time I tried to write code was in the 1990s. I know 
>>> there is a solution to my question I just hope there is someone with the 
>>> intelligence to take on the challenge for me or at least direct me to where 
>>> I need to go instead of making jokes. Perhaps someone can tell me something 
>>> about where I need to go or what I need to do there is a lot of money 
>>> involved in getting this code correct so that I can send the corrected 
>>> information to the company who owns the webpage. Not everybody here knows 
>>> how to code some of us are actually wanting some answers to questions that 
>>> we have. I am by trade an aircraft mechanic. So I can laugh at you if I 
>>> asked you to go clean the air sock and you don't even know what I'm talking 
>>> about but I won't because you don't know what I'm talking about. Neither do 
>>> I know anything about what I presented and I don't pretend to know that's 
>>> why I asked for some intelligent information. Have a good day regards Ken
>>> On Monday, June 14, 2021 at 5:21:42 PM UTC-4 jacobgr...@gmail.com wrote:
>>>
>>>> Lol what do you expect anyone to do? You just post some random HTML, 
>>>> zero code, no backtrace, nothing to even indicate there is an issue that 
>>>> someone could solve even IF they were willing... This has nothing to do 
>>>> with Django. I don't understand what you thought was going to happen. This 
>>>> is possibly the dumbest "question" I have ever read. I'd be willing to 
>>>> consult at double my normal hourly rate if you are the point of contact. 
>>>>
>>>> On Mon, Jun 14, 2021 at 12:12 PM Kasper Laudrup  
>>>> wrote:
>>>>
>>>>> On 14/06/2021 05.15, Ken Smith wrote:
>>>>> > I sure hope that somebody can take the time to do this. I'm just
>>>>> > wondering one of you brilliant programmers can look at this webpage 
>>>>> and
>>>>> > tell me where the errors are so that it can be fixed? Apparently the
>>>>> > programmers at the website are not as smart as you people are. If
>>>>> > someone has the time and inclination to do so with a please go over 
>>>>> the
>>>>> > code and hi

Re: Desperately need help.

2021-06-15 Thread Ken Smith
jul, thank you so very much for your very simple and honest answer. This 
was the best response I could have ever received from anyone and I 
appreciate it. I'm getting a bit old at 66 it seems my brain doesn't work 
as good as it did even 10 years ago for learning something as difficult as 
coding. Although your suggestion makes good sense and holds merit. I do 
thank you for your response. I only ask one more simple thing can you tell 
me which line of the code the HTTP response is missing from.

Your answer has really opened up my brain to the possibility that the 
website has left that out on purpose so that members cannot withdraw their 
money.

Again thank you so very much for your response and have a wonderful day
On Tuesday, June 15, 2021 at 5:39:54 PM UTC-4 jul.ale...@gmail.com wrote:

> Pretty easy to be honest. The web page need an http response and it's give 
> none instead. :) 
>
>
> If you don't know about the code, maybe you should hire a developer or 
> learn by yourself. 
>
> El mar., 15 de junio de 2021 3:14 p. m., Ken Smith  
> escribió:
>
>> There is the issue to solve that is the result of pressing the button to 
>> complete your transaction. And it may be dumb because I don't know a damn 
>> thing about  django and I assume that I would get an intelligent response 
>> on this forum.  This was in fact a sincere request because I know nothing 
>> about this code. If I did I would've discovered it myself. I merely had the 
>> stupid assumption that someone would actually consider this a challenge. 
>> But apparently not even your up to a challenge maybe it's too hard for you. 
>> That is coded in django as I understand I may be wrong. I only read what 
>> was presented on the error page. If it's not that would you please direct 
>> me to what code it could possibly be as I am not a coder in any way shape 
>> or form. I stopped even trying long before these new methods of coding came 
>> out. I think the last time I tried to write code was in the 1990s. I know 
>> there is a solution to my question I just hope there is someone with the 
>> intelligence to take on the challenge for me or at least direct me to where 
>> I need to go instead of making jokes. Perhaps someone can tell me something 
>> about where I need to go or what I need to do there is a lot of money 
>> involved in getting this code correct so that I can send the corrected 
>> information to the company who owns the webpage. Not everybody here knows 
>> how to code some of us are actually wanting some answers to questions that 
>> we have. I am by trade an aircraft mechanic. So I can laugh at you if I 
>> asked you to go clean the air sock and you don't even know what I'm talking 
>> about but I won't because you don't know what I'm talking about. Neither do 
>> I know anything about what I presented and I don't pretend to know that's 
>> why I asked for some intelligent information. Have a good day regards Ken
>> On Monday, June 14, 2021 at 5:21:42 PM UTC-4 jacobgr...@gmail.com wrote:
>>
>>> Lol what do you expect anyone to do? You just post some random HTML, 
>>> zero code, no backtrace, nothing to even indicate there is an issue that 
>>> someone could solve even IF they were willing... This has nothing to do 
>>> with Django. I don't understand what you thought was going to happen. This 
>>> is possibly the dumbest "question" I have ever read. I'd be willing to 
>>> consult at double my normal hourly rate if you are the point of contact. 
>>>
>>> On Mon, Jun 14, 2021 at 12:12 PM Kasper Laudrup  
>>> wrote:
>>>
>>>> On 14/06/2021 05.15, Ken Smith wrote:
>>>> > I sure hope that somebody can take the time to do this. I'm just
>>>> > wondering one of you brilliant programmers can look at this webpage 
>>>> and
>>>> > tell me where the errors are so that it can be fixed? Apparently the
>>>> > programmers at the website are not as smart as you people are. If
>>>> > someone has the time and inclination to do so with a please go over 
>>>> the
>>>> > code and highlight where the errors are in the corrections necessary 
>>>> in
>>>> > send back to me in a file in response. I would greatly be so happy.
>>>> > Thank you and have a wonderful day.
>>>> > 
>>>>
>>>> Instead of wasting space on meaningless flattering of the very diverse
>>>> members of this list/forum and begin rude to the developers at
>>>> safewayfx.com you would have a much better chance of getting help if 
>>>> you
>>>> instead s

Re: Desperately need help.

2021-06-15 Thread Ken Smith
Kasper, I am not sure of anything at this point. As for the denigrating of 
the Safeway programmers this has been going on for quite some time and I 
have money in that account that I am unable to withdraw because the failure 
of the page for withdrawal. And no I'm not sure of anything about 
permissions or anything else I just thought that this would be the place to 
ask if someone could provide the corrections so that I could send that to 
the company and have been directed to their programmers and maybe this 
might actually get things going so that I can withdraw my funds from their. 
As for flattery certainly most of the members of this former way smarter 
than I am in this area as I know nothing about the coding that you are 
involved in. It was not flattery it was merely a statement of fact. If you 
want to know how to fix airplanes you come to me as I have over 40 years 
experience in it. However I know nothing about code anymore it is been more 
than two decades since I even tried to code. And I'm/very aware that things 
are greatly changed since then. From the response of another member here 
I'm not even sure if the code is in django. It was merely mentioned on the 
error page that was presented. If you'll read my most recent post you will 
see the error page and why I got that assumption. I merely wish to be able 
to withdraw my money from the website and anything I can do to help their 
coders to do the job would be worth it to me. As I said to other members I 
presented this hoping that someone might be interested in taking up the 
challenge but is as of yet no one on this forum appears to be up to the 
challenge.

It would be appreciative if anyone here could direct me to somebody who 
could actually help me with this so that I can present the corrected 
information to the company so that they may make the corrections necessary 
and have the page work. One thing I do remember from code it can be very 
difficult and mistakes can be made on a simple thing that can cause 
everything not to work. That's why collaboration is often very important 
when things don't work. As you probably well know.

Have a wonderful day
On Monday, June 14, 2021 at 1:13:18 PM UTC-4 Kasper Laudrup wrote:

> On 14/06/2021 05.15, Ken Smith wrote:
> > I sure hope that somebody can take the time to do this. I'm just
> > wondering one of you brilliant programmers can look at this webpage and
> > tell me where the errors are so that it can be fixed? Apparently the
> > programmers at the website are not as smart as you people are. If
> > someone has the time and inclination to do so with a please go over the
> > code and highlight where the errors are in the corrections necessary in
> > send back to me in a file in response. I would greatly be so happy.
> > Thank you and have a wonderful day.
> > 
>
> Instead of wasting space on meaningless flattering of the very diverse
> members of this list/forum and begin rude to the developers at
> safewayfx.com you would have a much better chance of getting help if you
> instead showed that you were willing to do at least a minimal effort
> yourself.
>
> What errors are you talking about and what have you done to try and
> solve them?
>
> Just attaching and HTML file and expecting people to fix errors you
> cannot even bother to point out is not gonna get you much positive 
> feedback.
>
> Also, how is this related to Django at all?
>
> Finally, are you sure that safewayfx.com is OK with you sharing their
> copyrighted works without their acceptance?
>
> 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/01860dc4-d4ea-47d4-88a3-9d4683ed7fefn%40googlegroups.com.


Re: Desperately need help.

2021-06-15 Thread Julio Cojom
Pretty easy to be honest. The web page need an http response and it's give
none instead. :)


If you don't know about the code, maybe you should hire a developer or
learn by yourself.

El mar., 15 de junio de 2021 3:14 p. m., Ken Smith 
escribió:

> There is the issue to solve that is the result of pressing the button to
> complete your transaction. And it may be dumb because I don't know a damn
> thing about  django and I assume that I would get an intelligent response
> on this forum.  This was in fact a sincere request because I know nothing
> about this code. If I did I would've discovered it myself. I merely had the
> stupid assumption that someone would actually consider this a challenge.
> But apparently not even your up to a challenge maybe it's too hard for you.
> That is coded in django as I understand I may be wrong. I only read what
> was presented on the error page. If it's not that would you please direct
> me to what code it could possibly be as I am not a coder in any way shape
> or form. I stopped even trying long before these new methods of coding came
> out. I think the last time I tried to write code was in the 1990s. I know
> there is a solution to my question I just hope there is someone with the
> intelligence to take on the challenge for me or at least direct me to where
> I need to go instead of making jokes. Perhaps someone can tell me something
> about where I need to go or what I need to do there is a lot of money
> involved in getting this code correct so that I can send the corrected
> information to the company who owns the webpage. Not everybody here knows
> how to code some of us are actually wanting some answers to questions that
> we have. I am by trade an aircraft mechanic. So I can laugh at you if I
> asked you to go clean the air sock and you don't even know what I'm talking
> about but I won't because you don't know what I'm talking about. Neither do
> I know anything about what I presented and I don't pretend to know that's
> why I asked for some intelligent information. Have a good day regards Ken
> On Monday, June 14, 2021 at 5:21:42 PM UTC-4 jacobgr...@gmail.com wrote:
>
>> Lol what do you expect anyone to do? You just post some random HTML, zero
>> code, no backtrace, nothing to even indicate there is an issue that someone
>> could solve even IF they were willing... This has nothing to do with
>> Django. I don't understand what you thought was going to happen. This is
>> possibly the dumbest "question" I have ever read. I'd be willing to consult
>> at double my normal hourly rate if you are the point of contact.
>>
>> On Mon, Jun 14, 2021 at 12:12 PM Kasper Laudrup 
>> wrote:
>>
>>> On 14/06/2021 05.15, Ken Smith wrote:
>>> > I sure hope that somebody can take the time to do this. I'm just
>>> > wondering one of you brilliant programmers can look at this webpage and
>>> > tell me where the errors are so that it can be fixed? Apparently the
>>> > programmers at the website are not as smart as you people are. If
>>> > someone has the time and inclination to do so with a please go over the
>>> > code and highlight where the errors are in the corrections necessary in
>>> > send back to me in a file in response. I would greatly be so happy.
>>> > Thank you and have a wonderful day.
>>> >
>>>
>>> Instead of wasting space on meaningless flattering of the very diverse
>>> members of this list/forum and begin rude to the developers at
>>> safewayfx.com you would have a much better chance of getting help if you
>>> instead showed that you were willing to do at least a minimal effort
>>> yourself.
>>>
>>> What errors are you talking about and what have you done to try and
>>> solve them?
>>>
>>> Just attaching and HTML file and expecting people to fix errors you
>>> cannot even bother to point out is not gonna get you much positive
>>> feedback.
>>>
>>> Also, how is this related to Django at all?
>>>
>>> Finally, are you sure that safewayfx.com is OK with you sharing their
>>> copyrighted works without their acceptance?
>>>
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/c3fe4ad7-ef75-2441-b848-427bce52814b%40s

Re: Help

2021-06-15 Thread Sebastian Jung
Good luck to be an expert in Django in only one Montag

Inside Believer  schrieb am Mo., 7. Juni 2021, 18:21:

> Sir I'm internee i know python my company has assigned me bugs to resolve
> in live project but i have not didn't experience of Django. Anyone who can
> help me how to find bugs destination and how to resolve. i can pay for this
> i want to be expert in 1 month because i'm in probations period.
>
> --
> 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/d2e6328c-6176-49c6-84dc-c6c4b0d4fedbn%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/d2e6328c-6176-49c6-84dc-c6c4b0d4fedbn%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAKGT9myBBr4Ux_XJFUDbmYY2%3DL%2Bkhf%3DW-AbU6D5ZZ0q8EgGovg%40mail.gmail.com.


Re: Help

2021-06-15 Thread Franck Tchouanga
Service offers - Final year project technical documentation particularly in
data science - Code debugging - Quick Designs - Python, Django and R
programming - Data entry and analytics - Mini machine learning project
handling - Technical software preparation and testing - Business
intelligence insights - Sql and dataware house solutions and dashboarding.
- Coaching and Consultation. I am available from Monday to Saturday from
morning to night. At a very cheap price, fast delivery. I have quite good
experience in above listed offers and ready to give myself to serve, give
consultancy or training to those interested. I am very open to learning and
communication. WhatsApp number: +237 656774424 Email Address: ftchouanga@
gmail.com

On Tue, Jun 15, 2021, 9:29 PM Franck Tchouanga  wrote:

> Contact me for code worries.
>
> Email:ftchoua...@gmail.com
>
> WhatsApp: 656774424
>
> On Tue, Jun 15, 2021, 9:25 PM Inside Believer  wrote:
>
>> Please share with me when u will be available.
>>
>> On Tue, Jun 15, 2021 at 1:18 PM Bradie Poa  wrote:
>>
>>> WE BOTH NEED TO AGREE ON THE TIME.
>>> BECAUSE I MAY GIVE YOU A SECHEDULE THAT DOES'NT FAVOUR YOU.
>>>
>>> On Tue, 8 Jun 2021 at 16:52, Inside Believer  wrote:
>>>
>>>> Sir, I'm from Pakistan at which time you can teach me.
>>>>
>>>> On Mon, Jun 7, 2021 at 11:29 PM Bradie Poa 
>>>> wrote:
>>>>
>>>>> try me bro i'll help debug and again teach you how to do it
>>>>>
>>>>> On Tue, 8 Jun 2021 at 09:05, Franck Tchouanga 
>>>>> wrote:
>>>>>
>>>>>> ftchoua...@gmail.com text me inbox, 656774424 WhatsApp.
>>>>>>
>>>>>> On Tue, Jun 8, 2021, 7:04 AM Franck Tchouanga 
>>>>>> wrote:
>>>>>>
>>>>>>> I can help you
>>>>>>>
>>>>>>> On Tue, Jun 8, 2021, 6:30 AM Software, Web Developer <
>>>>>>> mondajoas...@gmail.com> wrote:
>>>>>>>
>>>>>>>> Can you inbox me @my email so that we can discuss please
>>>>>>>>
>>>>>>>> On Mon, Jun 7, 2021, 20:17 Inside Believer 
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Thank you *mondaj...@gmail.com  *  for which
>>>>>>>>> time u can give me I'm from Pakistan. My office timing is 6 PM to 3 AM
>>>>>>>>>
>>>>>>>>> On Monday, 7 June 2021 at 09:22:02 UTC-7 Inside Believer wrote:
>>>>>>>>>
>>>>>>>>>> Sir I'm internee i know python my company has assigned me bugs to
>>>>>>>>>> resolve in live project but i have not didn't experience of Django. 
>>>>>>>>>> Anyone
>>>>>>>>>> who can help me how to find bugs destination and how to resolve. i 
>>>>>>>>>> can pay
>>>>>>>>>> for this i want to be expert in 1 month because i'm in probations 
>>>>>>>>>> period.
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> 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/5ee29e44-cdc5-42e2-ad5c-4e589df965dcn%40googlegroups.com
>>>>>>>>> <https://groups.google.com/d/msgid/django-users/5ee29e44-cdc5-42e2-ad5c-4e589df965dcn%40googlegroups.com?utm_medium=email_source=footer>
>>>>>>>>> .
>>>>>>>>>
>>>>>>>> --
>>>>>>>> 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/CADFHYGQvojMRObyXDquiB-HRpgyb3R%3DwvPOvUipLozb7cOKOiA%40mai

Re: Help

2021-06-15 Thread Franck Tchouanga
Contact me for code worries.

Email:ftchoua...@gmail.com

WhatsApp: 656774424

On Tue, Jun 15, 2021, 9:25 PM Inside Believer  wrote:

> Please share with me when u will be available.
>
> On Tue, Jun 15, 2021 at 1:18 PM Bradie Poa  wrote:
>
>> WE BOTH NEED TO AGREE ON THE TIME.
>> BECAUSE I MAY GIVE YOU A SECHEDULE THAT DOES'NT FAVOUR YOU.
>>
>> On Tue, 8 Jun 2021 at 16:52, Inside Believer  wrote:
>>
>>> Sir, I'm from Pakistan at which time you can teach me.
>>>
>>> On Mon, Jun 7, 2021 at 11:29 PM Bradie Poa  wrote:
>>>
>>>> try me bro i'll help debug and again teach you how to do it
>>>>
>>>> On Tue, 8 Jun 2021 at 09:05, Franck Tchouanga 
>>>> wrote:
>>>>
>>>>> ftchoua...@gmail.com text me inbox, 656774424 WhatsApp.
>>>>>
>>>>> On Tue, Jun 8, 2021, 7:04 AM Franck Tchouanga 
>>>>> wrote:
>>>>>
>>>>>> I can help you
>>>>>>
>>>>>> On Tue, Jun 8, 2021, 6:30 AM Software, Web Developer <
>>>>>> mondajoas...@gmail.com> wrote:
>>>>>>
>>>>>>> Can you inbox me @my email so that we can discuss please
>>>>>>>
>>>>>>> On Mon, Jun 7, 2021, 20:17 Inside Believer 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Thank you *mondaj...@gmail.com  *  for which
>>>>>>>> time u can give me I'm from Pakistan. My office timing is 6 PM to 3 AM
>>>>>>>>
>>>>>>>> On Monday, 7 June 2021 at 09:22:02 UTC-7 Inside Believer wrote:
>>>>>>>>
>>>>>>>>> Sir I'm internee i know python my company has assigned me bugs to
>>>>>>>>> resolve in live project but i have not didn't experience of Django. 
>>>>>>>>> Anyone
>>>>>>>>> who can help me how to find bugs destination and how to resolve. i 
>>>>>>>>> can pay
>>>>>>>>> for this i want to be expert in 1 month because i'm in probations 
>>>>>>>>> period.
>>>>>>>>
>>>>>>>> --
>>>>>>>> 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/5ee29e44-cdc5-42e2-ad5c-4e589df965dcn%40googlegroups.com
>>>>>>>> <https://groups.google.com/d/msgid/django-users/5ee29e44-cdc5-42e2-ad5c-4e589df965dcn%40googlegroups.com?utm_medium=email_source=footer>
>>>>>>>> .
>>>>>>>>
>>>>>>> --
>>>>>>> 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/CADFHYGQvojMRObyXDquiB-HRpgyb3R%3DwvPOvUipLozb7cOKOiA%40mail.gmail.com
>>>>>>> <https://groups.google.com/d/msgid/django-users/CADFHYGQvojMRObyXDquiB-HRpgyb3R%3DwvPOvUipLozb7cOKOiA%40mail.gmail.com?utm_medium=email_source=footer>
>>>>>>> .
>>>>>>>
>>>>>> --
>>>>> 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/CANRJ%3D3%3DdCx9h7j4t_jFu4zKK8xv4G6QR-M2%2BT6JThNqDpESvSw%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/django-users/CANRJ%3D3%3DdCx9h7j4t_jFu4zKK8xv4G6QR-M2%2BT6JThNqDpESvSw%40mail.gmail.com?utm_medium=email_source=footer>
>>>>> .
>>>>>
>>>> --
>>>> You received this message because you are subscribed

Re: Help

2021-06-15 Thread Inside Believer
Please share with me when u will be available.

On Tue, Jun 15, 2021 at 1:18 PM Bradie Poa  wrote:

> WE BOTH NEED TO AGREE ON THE TIME.
> BECAUSE I MAY GIVE YOU A SECHEDULE THAT DOES'NT FAVOUR YOU.
>
> On Tue, 8 Jun 2021 at 16:52, Inside Believer  wrote:
>
>> Sir, I'm from Pakistan at which time you can teach me.
>>
>> On Mon, Jun 7, 2021 at 11:29 PM Bradie Poa  wrote:
>>
>>> try me bro i'll help debug and again teach you how to do it
>>>
>>> On Tue, 8 Jun 2021 at 09:05, Franck Tchouanga 
>>> wrote:
>>>
>>>> ftchoua...@gmail.com text me inbox, 656774424 WhatsApp.
>>>>
>>>> On Tue, Jun 8, 2021, 7:04 AM Franck Tchouanga 
>>>> wrote:
>>>>
>>>>> I can help you
>>>>>
>>>>> On Tue, Jun 8, 2021, 6:30 AM Software, Web Developer <
>>>>> mondajoas...@gmail.com> wrote:
>>>>>
>>>>>> Can you inbox me @my email so that we can discuss please
>>>>>>
>>>>>> On Mon, Jun 7, 2021, 20:17 Inside Believer 
>>>>>> wrote:
>>>>>>
>>>>>>> Thank you *mondaj...@gmail.com  *  for which
>>>>>>> time u can give me I'm from Pakistan. My office timing is 6 PM to 3 AM
>>>>>>>
>>>>>>> On Monday, 7 June 2021 at 09:22:02 UTC-7 Inside Believer wrote:
>>>>>>>
>>>>>>>> Sir I'm internee i know python my company has assigned me bugs to
>>>>>>>> resolve in live project but i have not didn't experience of Django. 
>>>>>>>> Anyone
>>>>>>>> who can help me how to find bugs destination and how to resolve. i can 
>>>>>>>> pay
>>>>>>>> for this i want to be expert in 1 month because i'm in probations 
>>>>>>>> period.
>>>>>>>
>>>>>>> --
>>>>>>> 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/5ee29e44-cdc5-42e2-ad5c-4e589df965dcn%40googlegroups.com
>>>>>>> <https://groups.google.com/d/msgid/django-users/5ee29e44-cdc5-42e2-ad5c-4e589df965dcn%40googlegroups.com?utm_medium=email_source=footer>
>>>>>>> .
>>>>>>>
>>>>>> --
>>>>>> 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/CADFHYGQvojMRObyXDquiB-HRpgyb3R%3DwvPOvUipLozb7cOKOiA%40mail.gmail.com
>>>>>> <https://groups.google.com/d/msgid/django-users/CADFHYGQvojMRObyXDquiB-HRpgyb3R%3DwvPOvUipLozb7cOKOiA%40mail.gmail.com?utm_medium=email_source=footer>
>>>>>> .
>>>>>>
>>>>> --
>>>> 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/CANRJ%3D3%3DdCx9h7j4t_jFu4zKK8xv4G6QR-M2%2BT6JThNqDpESvSw%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CANRJ%3D3%3DdCx9h7j4t_jFu4zKK8xv4G6QR-M2%2BT6JThNqDpESvSw%40mail.gmail.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> --
>>> 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/CAJkmis06qcVVQpceY9ox3UtirKFn905cN1VMHzqKtVJvMdU7Qw%40mail.gmail.com
>>> <https://groups.google.com/d/msg

Re: Help

2021-06-15 Thread Bradie Poa
WE BOTH NEED TO AGREE ON THE TIME.
BECAUSE I MAY GIVE YOU A SECHEDULE THAT DOES'NT FAVOUR YOU.

On Tue, 8 Jun 2021 at 16:52, Inside Believer  wrote:

> Sir, I'm from Pakistan at which time you can teach me.
>
> On Mon, Jun 7, 2021 at 11:29 PM Bradie Poa  wrote:
>
>> try me bro i'll help debug and again teach you how to do it
>>
>> On Tue, 8 Jun 2021 at 09:05, Franck Tchouanga 
>> wrote:
>>
>>> ftchoua...@gmail.com text me inbox, 656774424 WhatsApp.
>>>
>>> On Tue, Jun 8, 2021, 7:04 AM Franck Tchouanga 
>>> wrote:
>>>
>>>> I can help you
>>>>
>>>> On Tue, Jun 8, 2021, 6:30 AM Software, Web Developer <
>>>> mondajoas...@gmail.com> wrote:
>>>>
>>>>> Can you inbox me @my email so that we can discuss please
>>>>>
>>>>> On Mon, Jun 7, 2021, 20:17 Inside Believer  wrote:
>>>>>
>>>>>> Thank you *mondaj...@gmail.com  *  for which
>>>>>> time u can give me I'm from Pakistan. My office timing is 6 PM to 3 AM
>>>>>>
>>>>>> On Monday, 7 June 2021 at 09:22:02 UTC-7 Inside Believer wrote:
>>>>>>
>>>>>>> Sir I'm internee i know python my company has assigned me bugs to
>>>>>>> resolve in live project but i have not didn't experience of Django. 
>>>>>>> Anyone
>>>>>>> who can help me how to find bugs destination and how to resolve. i can 
>>>>>>> pay
>>>>>>> for this i want to be expert in 1 month because i'm in probations 
>>>>>>> period.
>>>>>>
>>>>>> --
>>>>>> 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/5ee29e44-cdc5-42e2-ad5c-4e589df965dcn%40googlegroups.com
>>>>>> <https://groups.google.com/d/msgid/django-users/5ee29e44-cdc5-42e2-ad5c-4e589df965dcn%40googlegroups.com?utm_medium=email_source=footer>
>>>>>> .
>>>>>>
>>>>> --
>>>>> 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/CADFHYGQvojMRObyXDquiB-HRpgyb3R%3DwvPOvUipLozb7cOKOiA%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/django-users/CADFHYGQvojMRObyXDquiB-HRpgyb3R%3DwvPOvUipLozb7cOKOiA%40mail.gmail.com?utm_medium=email_source=footer>
>>>>> .
>>>>>
>>>> --
>>> 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/CANRJ%3D3%3DdCx9h7j4t_jFu4zKK8xv4G6QR-M2%2BT6JThNqDpESvSw%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CANRJ%3D3%3DdCx9h7j4t_jFu4zKK8xv4G6QR-M2%2BT6JThNqDpESvSw%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> 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/CAJkmis06qcVVQpceY9ox3UtirKFn905cN1VMHzqKtVJvMdU7Qw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAJkmis06qcVVQpceY9ox3UtirKFn905cN1VMHzqKtVJvMdU7Qw%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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/CANp7uct6q5%2Bj_DWtkBm2vJDuSmAeDPj36viN-0xvApMULZRAWQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CANp7uct6q5%2Bj_DWtkBm2vJDuSmAeDPj36viN-0xvApMULZRAWQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAJkmis33kEEUq6ETn3tYqvpK0PUKEoNH1-i-8rrnTkETbTY4_A%40mail.gmail.com.


Re: Desperately need help.

2021-06-14 Thread Jacob Greene
Lol what do you expect anyone to do? You just post some random HTML, zero
code, no backtrace, nothing to even indicate there is an issue that someone
could solve even IF they were willing... This has nothing to do with
Django. I don't understand what you thought was going to happen. This is
possibly the dumbest "question" I have ever read. I'd be willing to consult
at double my normal hourly rate if you are the point of contact.

On Mon, Jun 14, 2021 at 12:12 PM Kasper Laudrup 
wrote:

> On 14/06/2021 05.15, Ken Smith wrote:
> > I sure hope that somebody can take the time to do this. I'm just
> > wondering one of you brilliant programmers can look at this webpage and
> > tell me where the errors are so that it can be fixed? Apparently the
> > programmers at the website are not as smart as you people are. If
> > someone has the time and inclination to do so with a please go over the
> > code and highlight where the errors are in the corrections necessary in
> > send back to me in a file in response. I would greatly be so happy.
> > Thank you and have a wonderful day.
> >
>
> Instead of wasting space on meaningless flattering of the very diverse
> members of this list/forum and begin rude to the developers at
> safewayfx.com you would have a much better chance of getting help if you
> instead showed that you were willing to do at least a minimal effort
> yourself.
>
> What errors are you talking about and what have you done to try and
> solve them?
>
> Just attaching and HTML file and expecting people to fix errors you
> cannot even bother to point out is not gonna get you much positive
> feedback.
>
> Also, how is this related to Django at all?
>
> Finally, are you sure that safewayfx.com is OK with you sharing their
> copyrighted works without their acceptance?
>
> 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/c3fe4ad7-ef75-2441-b848-427bce52814b%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/CAF-Y%3De5C-o8B3uOxKvEgdbLhkqat%3DY_CuBG664zs3NXp4uMftA%40mail.gmail.com.


Re: In need of help regarding HTML Submit button

2021-06-14 Thread Nikeet NA
Change the type of button back to type='button" rather than type="submit"

On Monday, 14 June 2021 at 22:39:27 UTC+5:30 arit...@gmail.com wrote:

> Hi, 
> I'm facing an error with the Place Order button not working when the user 
> is choosing the default address. Kindly help me out in this regard and let 
> me know if any other files are needed.
> Thank you in advance
> Regards,
> Aritra.
>
> class Address(BaseModel):
> user = models.ForeignKey(User, on_delete=models.SET_NULL, null=True, 
> blank=True)
> address = models.CharField(max_length=500, null=True)
> phone = models.CharField(max_length=10, null=False)
> city = models.CharField(max_length=100, null=True)
> state = models.CharField(max_length=100, null=True)
> pincode = models.CharField(max_length=100, null=False)
> default = models.BooleanField(default=False, null=True, blank=True)
>
> def __str__(self):
> return self.user.username
>
> class Meta:
> verbose_name_plural = 'Addresses'
>
> 
>  {% if default_address %}
>  
>   id="use_default">
>  Use default 
> shipping address: {{ default_address.address|truncatechars:40 }}
>  
>  {% endif %}
> 
> 
>  
>   >Back
>  
>  Place 
> Order
> 
>
> class CheckoutView(View):
> def get(self, *args, **kwargs):
> try:
> order = Cart.objects.get(user=self.request.user, ordered=False)
> form = CheckoutForm()
> context = {
> 'form': form,
> 'order': order,
> }
>
> shipping_address_qs = Address.objects.filter(
> user=self.request.user,
> default=True
> )
> if shipping_address_qs.exists():
> context.update(
> {'default_address': shipping_address_qs[0]})
> return render(self.request, "checkout.html", context)
> except ObjectDoesNotExist:
> messages.info(self.request, "You do not have an active order")
> return redirect(reverse('store:cart-page'))
>
> def post(self, *args, **kwargs):
> form = CheckoutForm(self.request.POST)
> try:
> order = Cart.objects.get(user=self.request.user, ordered=False)
> if form.is_valid():
> use_default = form.cleaned_data.get(
> 'use_default')
> if use_default:
> print("Using the default shipping address")
> address_qs = Address.objects.filter(
> user=self.request.user,
> default=True
> )
> if address_qs.exists():
> shipping_address = address_qs[0]
> order.shipping_address = shipping_address
> order.save()
> else:
> messages.info(self.request, "No default shipping 
> address available")
> return redirect('store:cart-page')
> else:
> address = form.cleaned_data.get('address')
> pincode = form.cleaned_data.get('zip')
> phone = form.cleaned_data.get('phone')
> city = form.cleaned_data.get('city')
> state = form.cleaned_data.get('state')
> if form.is_valid():
> shipping_address = Address(
> user=self.request.user,
> address=address,
> pincode=pincode,
> state=state,
> city=city,
> phone=phone
> )
> shipping_address.save()
> order.shipping_address = shipping_address
> order.save()
>
> set_default = form.cleaned_data.get(
> 'set_default')
> if set_default:
> shipping_address.default = True
> shipping_address.save()
>
> else:
> messages.info(self.request, "Please fill in the 
> required shipping address fields")
> except ObjectDoesNotExist:
> messages.warning(self.request, "You do not have an active order")
> return redirect(reverse(

Re: Desperately need help.

2021-06-14 Thread Kasper Laudrup
On 14/06/2021 05.15, Ken Smith wrote:
> I sure hope that somebody can take the time to do this. I'm just
> wondering one of you brilliant programmers can look at this webpage and
> tell me where the errors are so that it can be fixed? Apparently the
> programmers at the website are not as smart as you people are. If
> someone has the time and inclination to do so with a please go over the
> code and highlight where the errors are in the corrections necessary in
> send back to me in a file in response. I would greatly be so happy.
> Thank you and have a wonderful day.
> 

Instead of wasting space on meaningless flattering of the very diverse
members of this list/forum and begin rude to the developers at
safewayfx.com you would have a much better chance of getting help if you
instead showed that you were willing to do at least a minimal effort
yourself.

What errors are you talking about and what have you done to try and
solve them?

Just attaching and HTML file and expecting people to fix errors you
cannot even bother to point out is not gonna get you much positive feedback.

Also, how is this related to Django at all?

Finally, are you sure that safewayfx.com is OK with you sharing their
copyrighted works without their acceptance?

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/c3fe4ad7-ef75-2441-b848-427bce52814b%40stacktrace.dk.


OpenPGP_signature
Description: OpenPGP digital signature


In need of help regarding HTML Submit button

2021-06-14 Thread Aritra Ray
Hi,
I'm facing an error with the Place Order button not working when the user
is choosing the default address. Kindly help me out in this regard and let
me know if any other files are needed.
Thank you in advance
Regards,
Aritra.

class Address(BaseModel):
user = models.ForeignKey(User, on_delete=models.SET_NULL,
null=True, blank=True)
address = models.CharField(max_length=500, null=True)
phone = models.CharField(max_length=10, null=False)
city = models.CharField(max_length=100, null=True)
state = models.CharField(max_length=100, null=True)
pincode = models.CharField(max_length=100, null=False)
default = models.BooleanField(default=False, null=True, blank=True)

def __str__(self):
return self.user.username

class Meta:
verbose_name_plural = 'Addresses'


 {% if default_address %}
 
 
 Use
default shipping address: {{ default_address.address|truncatechars:40
}}
 
 {% endif %}


 
 Back
 
 Place Order


class CheckoutView(View):
def get(self, *args, **kwargs):
try:
order = Cart.objects.get(user=self.request.user, ordered=False)
form = CheckoutForm()
context = {
'form': form,
'order': order,
}

shipping_address_qs = Address.objects.filter(
user=self.request.user,
default=True
)
if shipping_address_qs.exists():
context.update(
{'default_address': shipping_address_qs[0]})
return render(self.request, "checkout.html", context)
except ObjectDoesNotExist:
messages.info(self.request, "You do not have an active order")
return redirect(reverse('store:cart-page'))

def post(self, *args, **kwargs):
form = CheckoutForm(self.request.POST)
try:
order = Cart.objects.get(user=self.request.user, ordered=False)
if form.is_valid():
use_default = form.cleaned_data.get(
'use_default')
if use_default:
print("Using the default shipping address")
address_qs = Address.objects.filter(
user=self.request.user,
default=True
)
if address_qs.exists():
shipping_address = address_qs[0]
order.shipping_address = shipping_address
order.save()
else:
messages.info(self.request, "No default
shipping address available")
return redirect('store:cart-page')
else:
address = form.cleaned_data.get('address')
pincode = form.cleaned_data.get('zip')
phone = form.cleaned_data.get('phone')
city = form.cleaned_data.get('city')
state = form.cleaned_data.get('state')
if form.is_valid():
shipping_address = Address(
user=self.request.user,
address=address,
pincode=pincode,
state=state,
city=city,
phone=phone
)
shipping_address.save()
order.shipping_address = shipping_address
order.save()

set_default = form.cleaned_data.get(
'set_default')
if set_default:
shipping_address.default = True
shipping_address.save()

else:
messages.info(self.request, "Please fill in
the required shipping address fields")
except ObjectDoesNotExist:
messages.warning(self.request, "You do not have an active order")
return redirect(reverse('store:cart-page'))
return redirect(reverse('store:payment-page'))

-- 
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/CAFecadue4NPnM7K12gr1R8PhCOgk9cX0P0JmOTWD%2BD0UhB%3DaMg%40mail.gmail.com.


Re: Help

2021-06-08 Thread Inside Believer
Sir, I'm from Pakistan at which time you can teach me.

On Mon, Jun 7, 2021 at 11:29 PM Bradie Poa  wrote:

> try me bro i'll help debug and again teach you how to do it
>
> On Tue, 8 Jun 2021 at 09:05, Franck Tchouanga 
> wrote:
>
>> ftchoua...@gmail.com text me inbox, 656774424 WhatsApp.
>>
>> On Tue, Jun 8, 2021, 7:04 AM Franck Tchouanga 
>> wrote:
>>
>>> I can help you
>>>
>>> On Tue, Jun 8, 2021, 6:30 AM Software, Web Developer <
>>> mondajoas...@gmail.com> wrote:
>>>
>>>> Can you inbox me @my email so that we can discuss please
>>>>
>>>> On Mon, Jun 7, 2021, 20:17 Inside Believer  wrote:
>>>>
>>>>> Thank you *mondaj...@gmail.com  *  for which
>>>>> time u can give me I'm from Pakistan. My office timing is 6 PM to 3 AM
>>>>>
>>>>> On Monday, 7 June 2021 at 09:22:02 UTC-7 Inside Believer wrote:
>>>>>
>>>>>> Sir I'm internee i know python my company has assigned me bugs to
>>>>>> resolve in live project but i have not didn't experience of Django. 
>>>>>> Anyone
>>>>>> who can help me how to find bugs destination and how to resolve. i can 
>>>>>> pay
>>>>>> for this i want to be expert in 1 month because i'm in probations period.
>>>>>
>>>>> --
>>>>> 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/5ee29e44-cdc5-42e2-ad5c-4e589df965dcn%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/django-users/5ee29e44-cdc5-42e2-ad5c-4e589df965dcn%40googlegroups.com?utm_medium=email_source=footer>
>>>>> .
>>>>>
>>>> --
>>>> 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/CADFHYGQvojMRObyXDquiB-HRpgyb3R%3DwvPOvUipLozb7cOKOiA%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CADFHYGQvojMRObyXDquiB-HRpgyb3R%3DwvPOvUipLozb7cOKOiA%40mail.gmail.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> --
>> 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/CANRJ%3D3%3DdCx9h7j4t_jFu4zKK8xv4G6QR-M2%2BT6JThNqDpESvSw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CANRJ%3D3%3DdCx9h7j4t_jFu4zKK8xv4G6QR-M2%2BT6JThNqDpESvSw%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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/CAJkmis06qcVVQpceY9ox3UtirKFn905cN1VMHzqKtVJvMdU7Qw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAJkmis06qcVVQpceY9ox3UtirKFn905cN1VMHzqKtVJvMdU7Qw%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CANp7uct6q5%2Bj_DWtkBm2vJDuSmAeDPj36viN-0xvApMULZRAWQ%40mail.gmail.com.


Re: Help

2021-06-08 Thread Inside Believer
Sir, I'm from Pakistan at which time you can teach me.

On Mon, Jun 7, 2021 at 11:05 PM Franck Tchouanga 
wrote:

> ftchoua...@gmail.com text me inbox, 656774424 WhatsApp.
>
> On Tue, Jun 8, 2021, 7:04 AM Franck Tchouanga 
> wrote:
>
>> I can help you
>>
>> On Tue, Jun 8, 2021, 6:30 AM Software, Web Developer <
>> mondajoas...@gmail.com> wrote:
>>
>>> Can you inbox me @my email so that we can discuss please
>>>
>>> On Mon, Jun 7, 2021, 20:17 Inside Believer  wrote:
>>>
>>>> Thank you *mondaj...@gmail.com  *  for which time
>>>> u can give me I'm from Pakistan. My office timing is 6 PM to 3 AM
>>>>
>>>> On Monday, 7 June 2021 at 09:22:02 UTC-7 Inside Believer wrote:
>>>>
>>>>> Sir I'm internee i know python my company has assigned me bugs to
>>>>> resolve in live project but i have not didn't experience of Django. Anyone
>>>>> who can help me how to find bugs destination and how to resolve. i can pay
>>>>> for this i want to be expert in 1 month because i'm in probations period.
>>>>
>>>> --
>>>> 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/5ee29e44-cdc5-42e2-ad5c-4e589df965dcn%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/5ee29e44-cdc5-42e2-ad5c-4e589df965dcn%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> --
>>> 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/CADFHYGQvojMRObyXDquiB-HRpgyb3R%3DwvPOvUipLozb7cOKOiA%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CADFHYGQvojMRObyXDquiB-HRpgyb3R%3DwvPOvUipLozb7cOKOiA%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
> 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/CANRJ%3D3%3DdCx9h7j4t_jFu4zKK8xv4G6QR-M2%2BT6JThNqDpESvSw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CANRJ%3D3%3DdCx9h7j4t_jFu4zKK8xv4G6QR-M2%2BT6JThNqDpESvSw%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CANp7ucspmE3x-xia0zgg2phPXoQWkX4PxHs1P5%2BLn0M1-MwzSg%40mail.gmail.com.


Re: Help

2021-06-08 Thread Inside Believer
Sir, I'm from Pakistan. In which time you can teach me.

On Mon, Jun 7, 2021 at 9:54 AM Software, Web Developer <
mondajoas...@gmail.com> wrote:

> I can help you brother
>
> On Mon, Jun 7, 2021, 19:21 Inside Believer  wrote:
>
>> Sir I'm internee i know python my company has assigned me bugs to resolve
>> in live project but i have not didn't experience of Django. Anyone who can
>> help me how to find bugs destination and how to resolve. i can pay for this
>> i want to be expert in 1 month because i'm in probations period.
>>
>> --
>> 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/d2e6328c-6176-49c6-84dc-c6c4b0d4fedbn%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/d2e6328c-6176-49c6-84dc-c6c4b0d4fedbn%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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/CADFHYGRNDtm%2BabxAEDVJpg%3D3jHWL3tyBOmFseuAcfXVo9YGC7g%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CADFHYGRNDtm%2BabxAEDVJpg%3D3jHWL3tyBOmFseuAcfXVo9YGC7g%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CANp7ucsL0itQ2we6-fci%3DQBaqHuPjEDBuLCAjfrKr%2BevsycT0Q%40mail.gmail.com.


Re: Help

2021-06-08 Thread Bradie Poa
try me bro i'll help debug and again teach you how to do it

On Tue, 8 Jun 2021 at 09:05, Franck Tchouanga  wrote:

> ftchoua...@gmail.com text me inbox, 656774424 WhatsApp.
>
> On Tue, Jun 8, 2021, 7:04 AM Franck Tchouanga 
> wrote:
>
>> I can help you
>>
>> On Tue, Jun 8, 2021, 6:30 AM Software, Web Developer <
>> mondajoas...@gmail.com> wrote:
>>
>>> Can you inbox me @my email so that we can discuss please
>>>
>>> On Mon, Jun 7, 2021, 20:17 Inside Believer  wrote:
>>>
>>>> Thank you *mondaj...@gmail.com  *  for which time
>>>> u can give me I'm from Pakistan. My office timing is 6 PM to 3 AM
>>>>
>>>> On Monday, 7 June 2021 at 09:22:02 UTC-7 Inside Believer wrote:
>>>>
>>>>> Sir I'm internee i know python my company has assigned me bugs to
>>>>> resolve in live project but i have not didn't experience of Django. Anyone
>>>>> who can help me how to find bugs destination and how to resolve. i can pay
>>>>> for this i want to be expert in 1 month because i'm in probations period.
>>>>
>>>> --
>>>> 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/5ee29e44-cdc5-42e2-ad5c-4e589df965dcn%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/5ee29e44-cdc5-42e2-ad5c-4e589df965dcn%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> --
>>> 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/CADFHYGQvojMRObyXDquiB-HRpgyb3R%3DwvPOvUipLozb7cOKOiA%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CADFHYGQvojMRObyXDquiB-HRpgyb3R%3DwvPOvUipLozb7cOKOiA%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
> 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/CANRJ%3D3%3DdCx9h7j4t_jFu4zKK8xv4G6QR-M2%2BT6JThNqDpESvSw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CANRJ%3D3%3DdCx9h7j4t_jFu4zKK8xv4G6QR-M2%2BT6JThNqDpESvSw%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAJkmis06qcVVQpceY9ox3UtirKFn905cN1VMHzqKtVJvMdU7Qw%40mail.gmail.com.


Re: Help

2021-06-08 Thread Franck Tchouanga
ftchoua...@gmail.com text me inbox, 656774424 WhatsApp.

On Tue, Jun 8, 2021, 7:04 AM Franck Tchouanga  wrote:

> I can help you
>
> On Tue, Jun 8, 2021, 6:30 AM Software, Web Developer <
> mondajoas...@gmail.com> wrote:
>
>> Can you inbox me @my email so that we can discuss please
>>
>> On Mon, Jun 7, 2021, 20:17 Inside Believer  wrote:
>>
>>> Thank you *mondaj...@gmail.com  *  for which time
>>> u can give me I'm from Pakistan. My office timing is 6 PM to 3 AM
>>>
>>> On Monday, 7 June 2021 at 09:22:02 UTC-7 Inside Believer wrote:
>>>
>>>> Sir I'm internee i know python my company has assigned me bugs to
>>>> resolve in live project but i have not didn't experience of Django. Anyone
>>>> who can help me how to find bugs destination and how to resolve. i can pay
>>>> for this i want to be expert in 1 month because i'm in probations period.
>>>
>>> --
>>> 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/5ee29e44-cdc5-42e2-ad5c-4e589df965dcn%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/5ee29e44-cdc5-42e2-ad5c-4e589df965dcn%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> 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/CADFHYGQvojMRObyXDquiB-HRpgyb3R%3DwvPOvUipLozb7cOKOiA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CADFHYGQvojMRObyXDquiB-HRpgyb3R%3DwvPOvUipLozb7cOKOiA%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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/CANRJ%3D3%3DdCx9h7j4t_jFu4zKK8xv4G6QR-M2%2BT6JThNqDpESvSw%40mail.gmail.com.


Re: Help

2021-06-08 Thread Franck Tchouanga
I can help you

On Tue, Jun 8, 2021, 6:30 AM Software, Web Developer 
wrote:

> Can you inbox me @my email so that we can discuss please
>
> On Mon, Jun 7, 2021, 20:17 Inside Believer  wrote:
>
>> Thank you *mondaj...@gmail.com  *  for which time u
>> can give me I'm from Pakistan. My office timing is 6 PM to 3 AM
>>
>> On Monday, 7 June 2021 at 09:22:02 UTC-7 Inside Believer wrote:
>>
>>> Sir I'm internee i know python my company has assigned me bugs to
>>> resolve in live project but i have not didn't experience of Django. Anyone
>>> who can help me how to find bugs destination and how to resolve. i can pay
>>> for this i want to be expert in 1 month because i'm in probations period.
>>
>> --
>> 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/5ee29e44-cdc5-42e2-ad5c-4e589df965dcn%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/5ee29e44-cdc5-42e2-ad5c-4e589df965dcn%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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/CADFHYGQvojMRObyXDquiB-HRpgyb3R%3DwvPOvUipLozb7cOKOiA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CADFHYGQvojMRObyXDquiB-HRpgyb3R%3DwvPOvUipLozb7cOKOiA%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CANRJ%3D3n44_b7QeEcE2pA_DEf-k%2BN2_%2B2Bk6EuuUhz%3DiQToibaA%40mail.gmail.com.


Re: Help

2021-06-07 Thread Software, Web Developer
Can you inbox me @my email so that we can discuss please

On Mon, Jun 7, 2021, 20:17 Inside Believer  wrote:

> Thank you *mondaj...@gmail.com  *  for which time u
> can give me I'm from Pakistan. My office timing is 6 PM to 3 AM
>
> On Monday, 7 June 2021 at 09:22:02 UTC-7 Inside Believer wrote:
>
>> Sir I'm internee i know python my company has assigned me bugs to resolve
>> in live project but i have not didn't experience of Django. Anyone who can
>> help me how to find bugs destination and how to resolve. i can pay for this
>> i want to be expert in 1 month because i'm in probations period.
>
> --
> 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/5ee29e44-cdc5-42e2-ad5c-4e589df965dcn%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/5ee29e44-cdc5-42e2-ad5c-4e589df965dcn%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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/CADFHYGQvojMRObyXDquiB-HRpgyb3R%3DwvPOvUipLozb7cOKOiA%40mail.gmail.com.


Re: Help

2021-06-07 Thread Inside Believer
Thank you *mondaj...@gmail.com *  for which time u can give me I'm from 
Pakistan. My office timing is 6 PM to 3 AM

On Monday, 7 June 2021 at 09:22:02 UTC-7 Inside Believer wrote:

> Sir I'm internee i know python my company has assigned me bugs to resolve 
> in live project but i have not didn't experience of Django. Anyone who can 
> help me how to find bugs destination and how to resolve. i can pay for this 
> i want to be expert in 1 month because i'm in probations period.

-- 
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/5ee29e44-cdc5-42e2-ad5c-4e589df965dcn%40googlegroups.com.


Re: Help

2021-06-07 Thread Software, Web Developer
I can help you brother

On Mon, Jun 7, 2021, 19:21 Inside Believer  wrote:

> Sir I'm internee i know python my company has assigned me bugs to resolve
> in live project but i have not didn't experience of Django. Anyone who can
> help me how to find bugs destination and how to resolve. i can pay for this
> i want to be expert in 1 month because i'm in probations period.
>
> --
> 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/d2e6328c-6176-49c6-84dc-c6c4b0d4fedbn%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/d2e6328c-6176-49c6-84dc-c6c4b0d4fedbn%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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/CADFHYGRNDtm%2BabxAEDVJpg%3D3jHWL3tyBOmFseuAcfXVo9YGC7g%40mail.gmail.com.


Re: Help

2021-06-07 Thread Moose Smith
Hello

I am a newbie to Django and Python. However, after a couple of intense 
weeks watching of some video's on Youtube, Google Searches, and Django 
Documentation I have been  creating a cool website for quality control for 
my company. To answer your question I assume you have a Django application 
that you must debug and update. 

If I were you i would start by selecting a IDE (development environment)  
 I use Visual Studio Code but there are many others. Then I would open the 
project and use the breakpoint functionality of the IDE to begin debugging 
the code. Since you understand Python and I assume you know some OOP you 
should be able to debug your code. 

As I mentioned, I'm new at this , so that is the best advise I can give you 
now. 

Good Luck

Moose
 

On Monday, June 7, 2021 at 12:22:02 PM UTC-4 mk85...@gmail.com wrote:

> Sir I'm internee i know python my company has assigned me bugs to resolve 
> in live project but i have not didn't experience of Django. Anyone who can 
> help me how to find bugs destination and how to resolve. i can pay for this 
> i want to be expert in 1 month because i'm in probations period.

-- 
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/15d258a2-0f6b-4411-9ff4-224122f737bcn%40googlegroups.com.


Help

2021-06-07 Thread Inside Believer
Sir I'm internee i know python my company has assigned me bugs to resolve 
in live project but i have not didn't experience of Django. Anyone who can 
help me how to find bugs destination and how to resolve. i can pay for this 
i want to be expert in 1 month because i'm in probations period.

-- 
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/d2e6328c-6176-49c6-84dc-c6c4b0d4fedbn%40googlegroups.com.


Re: In immediate help of a long time pending request, kindly help.

2021-06-04 Thread Aritra Ray
Hello

I tried this but I'm still seeing the list of cart items. Can you tell me
where I am going wrong?

Regards,
Aritra

On Tue, 1 Jun 2021 at 21:23, Joel Tanko <7thog...@gmail.com> wrote:

> If you want to show the items relative to the currently logged in user,
> try adding this option => limit_choices_to={'user' : 'user'}, to your items
> field in models.py
>
>
>
> On Tuesday, 1 June 2021, Aritra Ray  wrote:
>
>> Right, thank you so much.
>>
>> Regards.
>>
>> On Tue, 1 Jun, 2021, 8:27 pm oba stephen,  wrote:
>>
>>> You should return this if you want to redirect to cart;
>>>
>>> return redirect(reverse("store:cart-page", kwargs={"id": >> cart>}))
>>>
>>> Best regards
>>>
>>> Stephen Oba
>>>
>>> On Tue, Jun 1, 2021, 3:27 PM Aritra Ray  wrote:
>>>
 Sure, here's the file.

 [image: 2021-06-01 (6).png]

 Regards,
 Aritra.

 On Tue, 1 Jun 2021 at 19:45, oba stephen  wrote:

> Can I see your urls.py?
>
> Best regards
>
> Stephen Oba
>
> On Tue, Jun 1, 2021, 3:05 PM Aritra Ray  wrote:
>
>> Oh, okay. I was unaware of that. Although, my cart page is getting
>> redirected back to home page. Can you spot any mistake in the provided
>> screenshots?
>> Also, can you please guide on how to redirect a function to the
>> previously visited page? Like add-to-cart should redirect to either
>> products page or cart page itself depending on which page the user called
>> it from.
>>
>> On Tue, 1 Jun, 2021, 6:37 pm oba stephen, 
>> wrote:
>>
>>> Hi,
>>>
>>> I don't think you have an error here. Although I haven't looked at
>>> the code, but from your django admin page I can see that none of those
>>> items are selected.
>>>
>>> If you run a query from your terminal, you would notice that the
>>> items would return as empty.
>>>
>>> When you create a many to many relationship in django, all objects
>>> on that related model would display this way.
>>>
>>> What is the difference between different carts?  The difference is,
>>> the items would be selected or highlighted in a cart they belong to.
>>>
>>> Regards
>>>
>>> Best regards
>>>
>>> Stephen Oba
>>>
>>> On Tue, Jun 1, 2021, 1:52 PM Aritra Ray  wrote:
>>>

 Hello,
 This is Aritra reposting the same error. I have a problem regarding
 an E-commerce Django website where the cart model on the admin page is
 showing the items added to cart by one user to all other users as well.
 I have a Profile model and a Cart model attached below. The
 views.py has been attached too. Kindly comment back if anything else is
 needed.
 Thanks in advance.


 Regards,
 Aritra

 Error:

 [image: 2021-06-01 (4).png]

 Views.py

 [image: 2021-06-01 (1).png][image: 2021-06-01 (5).png]

 Models.py

 [image: 2021-06-01 (2).png][image: 2021-06-01 (3).png]

 --
 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/CAFecadtNZeLbatpdnuC_RUDdjLjbrvZTO%2BMVD7hPuHNkN%2Bv%2BBA%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/CAAJsLnpYBVfacxd3NJ7sqnC6dD2b6nBQw%3DFqfQe9Od1%2BpwTHww%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/CAFecadvZ11v-bvZzCXUVUTpr0WBa6eVmF7M6qpoVRFNF5dS%2Bcg%40mail.gmail.com
>> 
>> .
>>
> --

Re: In immediate help of a long time pending request, kindly help.

2021-06-01 Thread Aritra Ray
Right, will try and let you know.

On Tue, 1 Jun, 2021, 9:23 pm Joel Tanko, <7thog...@gmail.com> wrote:

> If you want to show the items relative to the currently logged in user,
> try adding this option => limit_choices_to={'user' : 'user'}, to your items
> field in models.py
>
>
>
> On Tuesday, 1 June 2021, Aritra Ray  wrote:
>
>> Right, thank you so much.
>>
>> Regards.
>>
>> On Tue, 1 Jun, 2021, 8:27 pm oba stephen,  wrote:
>>
>>> You should return this if you want to redirect to cart;
>>>
>>> return redirect(reverse("store:cart-page", kwargs={"id": >> cart>}))
>>>
>>> Best regards
>>>
>>> Stephen Oba
>>>
>>> On Tue, Jun 1, 2021, 3:27 PM Aritra Ray  wrote:
>>>
 Sure, here's the file.

 [image: 2021-06-01 (6).png]

 Regards,
 Aritra.

 On Tue, 1 Jun 2021 at 19:45, oba stephen  wrote:

> Can I see your urls.py?
>
> Best regards
>
> Stephen Oba
>
> On Tue, Jun 1, 2021, 3:05 PM Aritra Ray  wrote:
>
>> Oh, okay. I was unaware of that. Although, my cart page is getting
>> redirected back to home page. Can you spot any mistake in the provided
>> screenshots?
>> Also, can you please guide on how to redirect a function to the
>> previously visited page? Like add-to-cart should redirect to either
>> products page or cart page itself depending on which page the user called
>> it from.
>>
>> On Tue, 1 Jun, 2021, 6:37 pm oba stephen, 
>> wrote:
>>
>>> Hi,
>>>
>>> I don't think you have an error here. Although I haven't looked at
>>> the code, but from your django admin page I can see that none of those
>>> items are selected.
>>>
>>> If you run a query from your terminal, you would notice that the
>>> items would return as empty.
>>>
>>> When you create a many to many relationship in django, all objects
>>> on that related model would display this way.
>>>
>>> What is the difference between different carts?  The difference is,
>>> the items would be selected or highlighted in a cart they belong to.
>>>
>>> Regards
>>>
>>> Best regards
>>>
>>> Stephen Oba
>>>
>>> On Tue, Jun 1, 2021, 1:52 PM Aritra Ray  wrote:
>>>

 Hello,
 This is Aritra reposting the same error. I have a problem regarding
 an E-commerce Django website where the cart model on the admin page is
 showing the items added to cart by one user to all other users as well.
 I have a Profile model and a Cart model attached below. The
 views.py has been attached too. Kindly comment back if anything else is
 needed.
 Thanks in advance.


 Regards,
 Aritra

 Error:

 [image: 2021-06-01 (4).png]

 Views.py

 [image: 2021-06-01 (1).png][image: 2021-06-01 (5).png]

 Models.py

 [image: 2021-06-01 (2).png][image: 2021-06-01 (3).png]

 --
 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/CAFecadtNZeLbatpdnuC_RUDdjLjbrvZTO%2BMVD7hPuHNkN%2Bv%2BBA%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/CAAJsLnpYBVfacxd3NJ7sqnC6dD2b6nBQw%3DFqfQe9Od1%2BpwTHww%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/CAFecadvZ11v-bvZzCXUVUTpr0WBa6eVmF7M6qpoVRFNF5dS%2Bcg%40mail.gmail.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google
> Groups 

In immediate help of a long time pending request, kindly help.

2021-06-01 Thread Joel Tanko
If you want to show the items relative to the currently logged in user, try
adding this option => limit_choices_to={'user' : 'user'}, to your items
field in models.py



On Tuesday, 1 June 2021, Aritra Ray  wrote:

> Right, thank you so much.
>
> Regards.
>
> On Tue, 1 Jun, 2021, 8:27 pm oba stephen,  wrote:
>
>> You should return this if you want to redirect to cart;
>>
>> return redirect(reverse("store:cart-page", kwargs={"id": > cart>}))
>>
>> Best regards
>>
>> Stephen Oba
>>
>> On Tue, Jun 1, 2021, 3:27 PM Aritra Ray  wrote:
>>
>>> Sure, here's the file.
>>>
>>> [image: 2021-06-01 (6).png]
>>>
>>> Regards,
>>> Aritra.
>>>
>>> On Tue, 1 Jun 2021 at 19:45, oba stephen  wrote:
>>>
 Can I see your urls.py?

 Best regards

 Stephen Oba

 On Tue, Jun 1, 2021, 3:05 PM Aritra Ray  wrote:

> Oh, okay. I was unaware of that. Although, my cart page is getting
> redirected back to home page. Can you spot any mistake in the provided
> screenshots?
> Also, can you please guide on how to redirect a function to the
> previously visited page? Like add-to-cart should redirect to either
> products page or cart page itself depending on which page the user called
> it from.
>
> On Tue, 1 Jun, 2021, 6:37 pm oba stephen, 
> wrote:
>
>> Hi,
>>
>> I don't think you have an error here. Although I haven't looked at
>> the code, but from your django admin page I can see that none of those
>> items are selected.
>>
>> If you run a query from your terminal, you would notice that the
>> items would return as empty.
>>
>> When you create a many to many relationship in django, all objects on
>> that related model would display this way.
>>
>> What is the difference between different carts?  The difference is,
>> the items would be selected or highlighted in a cart they belong to.
>>
>> Regards
>>
>> Best regards
>>
>> Stephen Oba
>>
>> On Tue, Jun 1, 2021, 1:52 PM Aritra Ray  wrote:
>>
>>>
>>> Hello,
>>> This is Aritra reposting the same error. I have a problem regarding
>>> an E-commerce Django website where the cart model on the admin page is
>>> showing the items added to cart by one user to all other users as well.
>>> I have a Profile model and a Cart model attached below. The views.py
>>> has been attached too. Kindly comment back if anything else is needed.
>>> Thanks in advance.
>>>
>>>
>>> Regards,
>>> Aritra
>>>
>>> Error:
>>>
>>> [image: 2021-06-01 (4).png]
>>>
>>> Views.py
>>>
>>> [image: 2021-06-01 (1).png][image: 2021-06-01 (5).png]
>>>
>>> Models.py
>>>
>>> [image: 2021-06-01 (2).png][image: 2021-06-01 (3).png]
>>>
>>> --
>>> 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/CAFecadtNZeLb
>>> atpdnuC_RUDdjLjbrvZTO%2BMVD7hPuHNkN%2Bv%2BBA%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/CAAJsLnpYBVfa
>> cxd3NJ7sqnC6dD2b6nBQw%3DFqfQe9Od1%2BpwTHww%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/CAFecadvZ11v-
> bvZzCXUVUTpr0WBa6eVmF7M6qpoVRFNF5dS%2Bcg%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 

Re: Help with a huge database query.

2021-05-31 Thread 'odrzen' via Django users
If I use the values() or values_list() the request in database has a long 
waiting time and some time I also got a MemoryError (because 4GB RAM is not 
enough).
My examples:

Apple.objects.select_related('Orange').filter(state='fresh').values_list(
# Fields I don't want:
'field1',
'field2',
'field3'
# . ,
'field37'
)

( yes I want 37 different values ).

I also try with .only() with very nice response time, but in the end I will get 
all the fields. For example:
temp = Apple.objects.select_related('Orange').filter(state='fresh').only(
'field1',
'field2',
'field3' )

temp_json = serializers.serialize('json', temp)
return HttpResponse(temp_json, content_type='application/json')

it returns me all the fields! Not only the 'field2', 'field2' and 'field3'.
Could you explain me why ?

Finally, I also tried to run a query with raw() but the response time is 
disappointing.

‐‐‐ Original Message ‐‐‐
On Friday, May 28, 2021 2:13 AM, David Nugent  wrote:

> I think a better approach to using QuerySet.defer() is to use .values() 
> instead, explicitly specifying which fields you need to export.
>
> Just FYI rest_framework handles this out of the box and provides an API to 
> specify not only which fields to export but filters as well.
>
> Regards
> /d
>
> On Fri, May 28, 2021 at 8:10 AM 'odrzen' via Django users 
>  wrote:
>
>> Hello Django community o/
>>
>> I want to create a API call in order to get all data from a specific model ( 
>> table ) - but I want to exclude-remove only specific fields from this.
>> So, I try to find a right way to execute this difficult and "heavy" 
>> query/request with a efficient way.
>> This is what I have achieved so far:
>>
>> ```
>> #from django.http import HttpResponse, HttpResponseRedirect, JsonResponse
>> #from django.core import serializers
>> from apples.models import Apple
>> from oranges.models import Orange
>>
>> published_fruits = 
>> Apple.objects.select_related('Orange').filter(state='published').defer(
>> # Fields I don't want:
>> 'field1',
>> 'field2',
>> 'field3'
>> )
>>
>> So, I have the following results:
>> [
>> {
>> "model": "apples.apple",
>> "pk": "5326t236-8415-48f4-89e5-1789vc9of442",
>> "fields": {
>> "id": "apple-type1",
>> "name": "Brazil",
>> ".": "",
>> "exports ": []
>> }
>> },
>> { ... }
>> {
>> "model": "apples.apple",
>> "pk": "6435673472-fret2-523t-523t-d41159t23432213",
>> "fields": {
>> "id": "apple-type2",
>> "name": "India",
>> ".": "",
>> "exports ": []
>> }
>> }
>> ]
>> ```
>>
>> My proble is :
>> 1. The fields who I don't want (exclude), finally I got it.
>> 2. I want to directly pass all this response to a JSON http output for the 
>> users and I have it with the following way:
>> ```
>> json_response = serializers.serialize('json', published_fruits)
>> return HttpResponse(json_response, content_type='application/json')
>> ```
>> I get all the respone in JSON, but ( as you can see above ) with the 
>> following stracture:
>> ```
>> {
>> "model": "apples.apple",
>> "pk": "6435673472-fret2-523t-523t-d41159t23432213",
>> "fields": {
>> "id": "apple-type2",
>> "name": "India",
>> ".": "",
>> "exports ": []
>> }
>> }
>> ```
>>
>> Please, could you help me to avoid the following part from each record :
>> ```
>> "model": "apples.apple",
>> "pk": "6435673472-fret2-523t-523t-d41159t23432213",
>> "fields": {
>> ```
>> from the JSON ?
>>
>> Thank you very much in advance!
>>
>> --
>> 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/MvvGE0gJ6x5v1Geo7zgnHdB8TLr79HKJwubqhQzrOKUSB3Q4oHPeWCctdFmOAJ74PbqQ9gHkg44hKVrPqp9BFiZ7Bn7E-LzM30aNrbhcf7s%3D%40protonmail.com](https://groups.google.com/d/msgid/django-users/MvvGE0gJ6x5v1Geo7zgnHdB8TLr79HKJwubqhQzrOKUS

Re: Newbee help on deploying Django App to Apache2

2021-05-30 Thread Moose Smith
Thanks Guy  Very helpful thanks for the information. I'm working the issue 
right now.

On Sunday, May 30, 2021 at 10:30:18 AM UTC-4 Antonis Christofides wrote:

> Apache and nginx are called "web servers". Windows and FreeBSD are called 
> "operating systems". What is the term for Gunicorn, uWSGI and mod_wsgi? I 
> believe there's no good term, which is one reason for the confusion.
>
> Gunicorn, uWSGI and mod_wsgi are specialized web servers that run Python 
> WSGI-compliant applications. For lack of a better name, I'll call them 
> Python application servers, but don't forget that they are nothing more 
> (and nothing less) than specialized web servers that run Python 
> WSGI-compliant applications.
>
> What the Python application server does is
>
> from djpro.wsgi import application
>
> and then, in each HTTP request, it calls application() in a standard way 
> that is specified by the WSGI specification. The fact that the interface of 
> this function is standardized is what permits you to choose between many 
> different Python application servers such as Gunicorn, uWSGI, or mod_wsgi, 
> and why each of these can interact with many Python application frameworks 
> like Django or Flask.
>
> The Python application server does not *communicate* with the Django 
> project, it *imports* the Django project. From the point of view of the 
> operating system, it is the same process. You don't have a separate server 
> which "runs" or "communicates with" Django, which would mean that the 
> Python application server and Django could run in separate virtualenvs. You 
> have a single Python program and there is only one virtualenv. What we do 
> for Gunicorn, for example, is install it in the same virtualenv where we 
> have Django (pip install gunicorn), and then run it from there.
>
> I am not familiar with mod_wsgi, but the thing is, by the time it's ready 
> to import the Django project, Python is already running, and you can't 
> select or change a virtualenv any more. So selecting a virtualenv (which I 
> assume is possible) must be in the mod_wsgi configuration. I hope these 
> principles help you understand mod_wsgi's documentation.
>
> I find Gunicorn an easier and better way to deploy, regardless the web 
> server. More information:
>
>- How to setup Apache with Gunicorn 
>
> <https://djangodeployment.com/2016/11/30/how-to-setup-apache-with-gunicorn/> 
>- Detailed instructions on setting up Gunicorn 
><https://djangodeployment.readthedocs.io/en/latest/06-gunicorn.html>
>
> Antonis Christofides+30-6979924665 <+30%20697%20992%204665> (mobile)
>
>
>
> On 30/05/2021 09.29, Moose Smith wrote:
>
> App written in ubuntu virtual environment python 3.8.5. Works well on 
> Visual Studio Code development server. Am trying to make it run on Apache2 
> development server.  I have been able to install WSGI module on Apache 
> Server and ran a test Hello World in Python and it worked. However, the 
> django app when ported over does not work.  
> The error log confirms that the mod_wsgi has been created using by Python 
> 3.8  
> [mpm_event:notice] [pid 607786:tid 140700034231360] AH00489: Apache/2.4.41 
> (Ubuntu) mod_wsgi/4.6.8 Python/3.8 configured -- resuming normal operations
> The error I am getting indicates that the Apache / WSGI is reading the 
> files in the virtual environment I copied over.  
>
> mod_wsgi (pid=609049): Exception occurred processing WSGI script '/ File 
> "/usr/public/apache/MCE/learn/djpro/wsgi.py", line 12, in 
> from django.core.wsgi import get_wsgi_application
> ModuleNotFoundError: No module named 'django'
>
> My research indicates that this error occurs when the mod--wsgi in being 
> interpreted by a different version than what was used to create my virtual 
> environment. It also might be permissions/ownership issues with the file 
> and directories copied over to the server, or improperly configured module. 
>
> My question is this: Does the mod_WSGI module have to be the same as the 
> one that created my virtual environment?  My understanding is that WSGI has 
> two components, the server side, and the application side. It would not 
> make sense that the Server side MUST match the application side because it 
> would not be possible to service various apps with different versions of 
> Python/Django. I assumed the server side was python version independent and 
> that the requirement for Python similarity was only on the application side 
> in that the Python used to create the virtual environment and my app must 
> match the version used to create the WSGI interface on the application side 
> (this side not the server). That said, I h

Re: Newbee help on deploying Django App to Apache2

2021-05-30 Thread Antonis Christofides
Apache and nginx are called "web servers". Windows and FreeBSD are called 
"operating systems". What is the term for Gunicorn, uWSGI and mod_wsgi? I 
believe there's no good term, which is one reason for the confusion.


Gunicorn, uWSGI and mod_wsgi are specialized web servers that run Python 
WSGI-compliant applications. For lack of a better name, I'll call them Python 
application servers, but don't forget that they are nothing more (and nothing 
less) than specialized web servers that run Python WSGI-compliant applications.


What the Python application server does is

    from djpro.wsgi import application

and then, in each HTTP request, it calls application() in a standard way that is 
specified by the WSGI specification. The fact that the interface of this 
function is standardized is what permits you to choose between many different 
Python application servers such as Gunicorn, uWSGI, or mod_wsgi, and why each of 
these can interact with many Python application frameworks like Django or Flask.


The Python application server does not *communicate* with the Django project, it 
*imports* the Django project. From the point of view of the operating system, it 
is the same process. You don't have a separate server which "runs" or 
"communicates with" Django, which would mean that the Python application server 
and Django could run in separate virtualenvs. You have a single Python program 
and there is only one virtualenv. What we do for Gunicorn, for example, is 
install it in the same virtualenv where we have Django (pip install gunicorn), 
and then run it from there.


I am not familiar with mod_wsgi, but the thing is, by the time it's ready to 
import the Django project, Python is already running, and you can't select or 
change a virtualenv any more. So selecting a virtualenv (which I assume is 
possible) must be in the mod_wsgi configuration. I hope these principles help 
you understand mod_wsgi's documentation.


I find Gunicorn an easier and better way to deploy, regardless the web server. 
More information:


 * How to setup Apache with Gunicorn
   <https://djangodeployment.com/2016/11/30/how-to-setup-apache-with-gunicorn/>
 * Detailed instructions on setting up Gunicorn
   <https://djangodeployment.readthedocs.io/en/latest/06-gunicorn.html>

Antonis Christofides
+30-6979924665 (mobile)



On 30/05/2021 09.29, Moose Smith wrote:
App written in ubuntu virtual environment python 3.8.5. Works well on Visual 
Studio Code development server. Am trying to make it run on Apache2 
development server.  I have been able to install WSGI module on Apache Server 
and ran a test Hello World in Python and it worked. However, the django app 
when ported over does not work.

The error log confirms that the mod_wsgi has been created using by Python 3.8
[mpm_event:notice] [pid 607786:tid 140700034231360] AH00489: Apache/2.4.41 
(Ubuntu) mod_wsgi/4.6.8 Python/3.8 configured -- resuming normal operations
The error I am getting indicates that the Apache / WSGI is reading the files 
in the virtual environment I copied over.


mod_wsgi (pid=609049): Exception occurred processing WSGI script '/ File 
"/usr/public/apache/MCE/learn/djpro/wsgi.py", line 12, in 

from django.core.wsgi import get_wsgi_application
ModuleNotFoundError: No module named 'django'

My research indicates that this error occurs when the mod--wsgi in being 
interpreted by a different version than what was used to create my virtual 
environment. It also might be permissions/ownership issues with the file and 
directories copied over to the server, or improperly configured module.


My question is this: Does the mod_WSGI module have to be the same as the one 
that created my virtual environment?  My understanding is that WSGI has two 
components, the server side, and the application side. It would not make sense 
that the Server side MUST match the application side because it would not be 
possible to service various apps with different versions of Python/Django. I 
assumed the server side was python version independent and that the 
requirement for Python similarity was only on the application side in that the 
Python used to create the virtual environment and my app must match the 
version used to create the WSGI interface on the application side (this side 
not the server). That said, I have discovered there is a Python 2.7 version of 
the mod_WSGI for the server side which differs from the 3.7 version.


Can someone clear up the Python version requirement and if it does require a 
match between the server and the app side, how will I be able to run future 
versions of Python/Django apps without having to go back and "recomplie"?


Also if someone has any clues on solving my error that would be very much 
appreciated.


Thanks
Moose
--
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from thi

Re: Newbee help on deploying Django App to Apache2

2021-05-30 Thread Chetan Ganji
I think, you are using the default python version installed on the machine,
not the one of the virtualenv.
You will have to configure the mod_wsgi to use the python of the virtuelanv.

This might help you.
https://modwsgi.readthedocs.io/en/develop/user-guides/virtual-environments.html#


Regards,
Chetan Ganji
+91-900-483-4183
ganji.che...@gmail.com
http://ryucoder.in


On Sun, May 30, 2021 at 4:46 PM Moose Smith <47kanga...@gmail.com> wrote:

> App written in ubuntu virtual environment python 3.8.5. Works well on
> Visual Studio Code development server. Am trying to make it run on Apache2
> development server.  I have been able to install WSGI module on Apache
> Server and ran a test Hello World in Python and it worked. However, the
> django app when ported over does not work.
> The error log confirms that the mod_wsgi has been created using by Python
> 3.8
> [mpm_event:notice] [pid 607786:tid 140700034231360] AH00489: Apache/2.4.41
> (Ubuntu) mod_wsgi/4.6.8 Python/3.8 configured -- resuming normal operations
> The error I am getting indicates that the Apache / WSGI is reading the
> files in the virtual environment I copied over.
>
> mod_wsgi (pid=609049): Exception occurred processing WSGI script '/ File
> "/usr/public/apache/MCE/learn/djpro/wsgi.py", line 12, in 
> from django.core.wsgi import get_wsgi_application
> ModuleNotFoundError: No module named 'django'
>
> My research indicates that this error occurs when the mod--wsgi in being
> interpreted by a different version than what was used to create my virtual
> environment. It also might be permissions/ownership issues with the file
> and directories copied over to the server, or improperly configured module.
>
> My question is this: Does the mod_WSGI module have to be the same as the
> one that created my virtual environment?  My understanding is that WSGI has
> two components, the server side, and the application side. It would not
> make sense that the Server side MUST match the application side because it
> would not be possible to service various apps with different versions of
> Python/Django. I assumed the server side was python version independent and
> that the requirement for Python similarity was only on the application side
> in that the Python used to create the virtual environment and my app must
> match the version used to create the WSGI interface on the application side
> (this side not the server). That said, I have discovered there is a Python
> 2.7 version of the mod_WSGI for the server side which differs from the 3.7
> version.
>
> Can someone clear up the Python version requirement and if it does require
> a match between the server and the app side, how will I be able to run
> future versions of Python/Django apps without having to go back and
> "recomplie"?
>
> Also if someone has any clues on solving my error that would be very much
> appreciated.
>
> Thanks
> Moose
>
> --
> 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/d3041741-1604-473f-8810-263bb3b16c59n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/d3041741-1604-473f-8810-263bb3b16c59n%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAMKMUjuOXoG5O0-aGFpMD3wfkNHkOMqBf8PNsKhFeeJvwrpYAQ%40mail.gmail.com.


Newbee help on deploying Django App to Apache2

2021-05-30 Thread Moose Smith
App written in ubuntu virtual environment python 3.8.5. Works well on 
Visual Studio Code development server. Am trying to make it run on Apache2 
development server.  I have been able to install WSGI module on Apache 
Server and ran a test Hello World in Python and it worked. However, the 
django app when ported over does not work. 
The error log confirms that the mod_wsgi has been created using by Python 
3.8  
[mpm_event:notice] [pid 607786:tid 140700034231360] AH00489: Apache/2.4.41 
(Ubuntu) mod_wsgi/4.6.8 Python/3.8 configured -- resuming normal operations
The error I am getting indicates that the Apache / WSGI is reading the 
files in the virtual environment I copied over.  

mod_wsgi (pid=609049): Exception occurred processing WSGI script '/ File 
"/usr/public/apache/MCE/learn/djpro/wsgi.py", line 12, in 
from django.core.wsgi import get_wsgi_application
ModuleNotFoundError: No module named 'django'

My research indicates that this error occurs when the mod--wsgi in being 
interpreted by a different version than what was used to create my virtual 
environment. It also might be permissions/ownership issues with the file 
and directories copied over to the server, or improperly configured module. 

My question is this: Does the mod_WSGI module have to be the same as the 
one that created my virtual environment?  My understanding is that WSGI has 
two components, the server side, and the application side. It would not 
make sense that the Server side MUST match the application side because it 
would not be possible to service various apps with different versions of 
Python/Django. I assumed the server side was python version independent and 
that the requirement for Python similarity was only on the application side 
in that the Python used to create the virtual environment and my app must 
match the version used to create the WSGI interface on the application side 
(this side not the server). That said, I have discovered there is a Python 
2.7 version of the mod_WSGI for the server side which differs from the 3.7 
version. 

Can someone clear up the Python version requirement and if it does require 
a match between the server and the app side, how will I be able to run 
future versions of Python/Django apps without having to go back and 
"recomplie"?

Also if someone has any clues on solving my error that would be very much 
appreciated.

Thanks
Moose

-- 
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/d3041741-1604-473f-8810-263bb3b16c59n%40googlegroups.com.


Re: Help with a huge database query.

2021-05-27 Thread David Nugent
I think a better approach to using QuerySet.defer() is to use .values()
instead, explicitly specifying which fields you need to export.

Just FYI rest_framework handles this out of the box and provides an API to
specify not only which fields to export but filters as well.

Regards
/d


On Fri, May 28, 2021 at 8:10 AM 'odrzen' via Django users <
django-users@googlegroups.com> wrote:

> Hello Django community o/
>
> I want to create a API call in order to get *all data* from a specific
> model ( table ) - but I want to exclude-remove only specific fields from
> this.
> So, I try to find a right way to execute this difficult and "*heavy*"
> query/request with a efficient way.
> This is what I have achieved so far:
>
> ```
> #from django.http import HttpResponse, HttpResponseRedirect, JsonResponse
> #from django.core import serializers
> from apples.models import Apple
> from oranges.models import Orange
>
> published_fruits =
> Apple.objects.select_related('Orange').filter(state='published').defer(
># Fields I don't want:
>'field1',
>'field2',
>'field3'
>)
>
> So, I have the following results:
> [
>   {
> "model": "apples.apple",
> "pk": "5326t236-8415-48f4-89e5-1789vc9of442",
> "fields": {
>   "id": "apple-type1",
>   "name": "Brazil",
>   ".": "",
>   "exports ": []
> }
>   },
>   { ... }
>   {
> "model": "apples.apple",
> "pk": "6435673472-fret2-523t-523t-d41159t23432213",
> "fields": {
>   "id": "apple-type2",
>   "name": "India",
> ".": "",
>   "exports ": []
> }
>   }
> ]
> ```
>
>
> My proble is :
> 1. The fields who I don't want (exclude), finally I got it.
> 2. I want to directly *pass all this response to a JSON http output* for
> the users and I have it with the following way:
> ```
> json_response = serializers.serialize('json', published_fruits)
> return HttpResponse(json_response, content_type='application/json')
> ```
> I get all the respone in JSON, but ( *as you can see above* ) with the
> following stracture:
> ```
>   {
> "model": "apples.apple",
> "pk": "6435673472-fret2-523t-523t-d41159t23432213",
> "fields": {
>   "id": "apple-type2",
>   "name": "India",
> ".": "",
>   "exports ": []
> }
>   }
> ```
>
> Please, could you help me to avoid the following part from each record  :
> ```
> "model": "apples.apple",
> "pk": "6435673472-fret2-523t-523t-d41159t23432213",
> "fields": {
> ```
> from the JSON ?
>
> Thank you very much in advance!
>
> --
> 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/MvvGE0gJ6x5v1Geo7zgnHdB8TLr79HKJwubqhQzrOKUSB3Q4oHPeWCctdFmOAJ74PbqQ9gHkg44hKVrPqp9BFiZ7Bn7E-LzM30aNrbhcf7s%3D%40protonmail.com
> <https://groups.google.com/d/msgid/django-users/MvvGE0gJ6x5v1Geo7zgnHdB8TLr79HKJwubqhQzrOKUSB3Q4oHPeWCctdFmOAJ74PbqQ9gHkg44hKVrPqp9BFiZ7Bn7E-LzM30aNrbhcf7s%3D%40protonmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAE5VhgX04DNGPHS%2BgpC7UdT2Kwj40%2BZ6UqKckSQ0G8RL5mHb0A%40mail.gmail.com.


Help with a huge database query.

2021-05-27 Thread 'odrzen' via Django users
Hello Django community o/

I want to create a API call in order to get all data from a specific model ( 
table ) - but I want to exclude-remove only specific fields from this.
So, I try to find a right way to execute this difficult and "heavy" 
query/request with a efficient way.
This is what I have achieved so far:

```
#from django.http import HttpResponse, HttpResponseRedirect, JsonResponse
#from django.core import serializers
from apples.models import Apple
from oranges.models import Orange

published_fruits = 
Apple.objects.select_related('Orange').filter(state='published').defer(
# Fields I don't want:
'field1',
'field2',
'field3'
)

So, I have the following results:
[
{
"model": "apples.apple",
"pk": "5326t236-8415-48f4-89e5-1789vc9of442",
"fields": {
"id": "apple-type1",
"name": "Brazil",
".": "",
"exports ": []
}
},
{ ... }
{
"model": "apples.apple",
"pk": "6435673472-fret2-523t-523t-d41159t23432213",
"fields": {
"id": "apple-type2",
"name": "India",
".": "",
"exports ": []
}
}
]
```

My proble is :
1. The fields who I don't want (exclude), finally I got it.
2. I want to directly pass all this response to a JSON http output for the 
users and I have it with the following way:
```
json_response = serializers.serialize('json', published_fruits)
return HttpResponse(json_response, content_type='application/json')
```
I get all the respone in JSON, but ( as you can see above ) with the following 
stracture:
```
{
"model": "apples.apple",
"pk": "6435673472-fret2-523t-523t-d41159t23432213",
"fields": {
"id": "apple-type2",
"name": "India",
".": "",
"exports ": []
}
}
```

Please, could you help me to avoid the following part from each record :
```
"model": "apples.apple",
"pk": "6435673472-fret2-523t-523t-d41159t23432213",
"fields": {
```
from the JSON ?

Thank you very much in advance!

-- 
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/MvvGE0gJ6x5v1Geo7zgnHdB8TLr79HKJwubqhQzrOKUSB3Q4oHPeWCctdFmOAJ74PbqQ9gHkg44hKVrPqp9BFiZ7Bn7E-LzM30aNrbhcf7s%3D%40protonmail.com.


in need of help about my django ecommerce website

2021-05-27 Thread Adarsh Sarda
Hi,

I've been facing a problem recently in creating a Django Profile model for
an E-commerce website.
If  a profile updates it's cart then all the carts in the admin page are
getting updated with the same items.
Kindly help me out if possible. The screenshots have been attached below
and the github link for the project has been provided.

Link: https://github.com/First-project-01/Django-ecommerc
<https://github.com/First-project-01/Django-ecommerce>e

Regards,
Adarsh

models.py:

class Profile(BaseModel):
user = models.OneToOneField(User, on_delete=models.CASCADE)

def __str__(self):
return self.user.username

@receiver(post_save, sender=User) #add this
def create_user_profile(sender, instance, created, **kwargs):
if created:
Profile.objects.create(user=instance)

@receiver(post_save, sender=User) #add this
def save_user_profile(sender, instance, **kwargs):
instance.profile.save()

class Cart(BaseModel):
user = models.ForeignKey(User,
 on_delete=models.CASCADE)
items = models.ManyToManyField(OrderItem)
start_date = models.DateTimeField(auto_now_add=True)
ordered_date = models.DateTimeField()
ordered = models.BooleanField(default=False)
being_delivered = models.BooleanField(default=False)
received = models.BooleanField(default=False)
refund_requested = models.BooleanField(default=False)
refund_granted = models.BooleanField(default=False)

def __str__(self):
return self.user.username

def get_total_items(self):
total = 0
for item in self.items.all():
total = sum(item.quantity)
return total

def get_total(self):
total = 0
for order_item in self.items.all():
total += order_item.get_final_price()
return total


views.py:

@login_required
def add_to_cart(request, slug):
item = get_object_or_404(Items, slug=slug)
order_item, created = OrderItem.objects.get_or_create(
product=item,
user=request.user,
ordered=False
)
order_qs = Cart.objects.filter(user=request.user, ordered=False)
if order_qs.exists():
order = order_qs[0]
if order.items.filter(product__slug=item.slug).exists():
order_item.quantity += 1
order_item.save()
messages.info(request, "This item quantity was updated.")
return redirect(reverse('store:cart-page'))
else:
order.items.add(order_item)
messages.info(request, "This item was added to your cart.")
return redirect(reverse('store:cart-page'))
else:
ordered_date = timezone.now()
order = Cart.objects.create(user=request.user,
ordered_date=ordered_date)
order.items.add(order_item)
messages.info(request, "This item was added to your cart.")
return redirect(reverse('store:cart-page'))

def register(request):
if request.method == 'POST':
form = UserRegisterForm(request.POST)
if form.is_valid():
form.save()
username = form.cleaned_data.get('username')
messages.success(request, f'Account created for {username}!')
return redirect(reverse('store:home-page'))
else:
form = UserRegisterForm()
return render(request, 'register.html', {'form': form})

-- 
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/CANNRaDATMp0LjSrrRv80f9FbDF1jXpKFGCZbg4v048G%3DFGgoNg%40mail.gmail.com.


Re: Please help

2021-05-26 Thread OSA-33 SyCS Atik Rangnekar
Are you expecting javascript in python

On Thu, 27 May, 2021, 2:14 am sourav panja,  wrote:

> Field 'id' expected a number but got 
>
> How to solve this problem
>
> --
> 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/c53edff7-f7f4-4566-97ff-3b9cadf8ee22n%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/CABOD_T792-jn1e57TC45NWQOK5wremb5HJs0Otm5WYAR1ofxzg%40mail.gmail.com.


Re: Please help

2021-05-26 Thread Kasper Laudrup
On 26/05/2021 19.48, sourav panja wrote:
> Field 'id' expected a number but got  
> 
> How to solve this problem
>

This will be a good start:

https://zellwk.com/blog/asking-questions/

It will help you solve this and many other similar problems.

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/e35aa6d4-3978-9dd3-be9e-10a6abdea573%40stacktrace.dk.


OpenPGP_signature
Description: OpenPGP digital signature


Please help

2021-05-26 Thread sourav panja
Field 'id' expected a number but got https://groups.google.com/d/msgid/django-users/c53edff7-f7f4-4566-97ff-3b9cadf8ee22n%40googlegroups.com.


Re: help on autologging users after signup

2021-05-25 Thread lalit suthar
It is not returning the "login success" message because you are using 
`APIView` parent class and that does not have create() method so your code 
inside create() won't get executed. You have to move that code to post() 
method. https://www.cdrf.co/ is a good reference to find out different 
Parent class's and their supported methods.

On Tuesday, 25 May 2021 at 12:15:57 UTC+5:30 tosina...@gmail.com wrote:

> [image: image.png]
> [image: image.png]
>
>
> so this is it, i've tried it, but still returning id of null 
> and it not returning the login success msg 
>
> On Mon, May 24, 2021 at 9:08 PM I,M& M  wrote:
>
>> in drf, the request.POST dictionary does not contain the body of the 
>> request instead use the request.data to access the requests body.
>> ex.
>> email = request.data.get('email')
>> password= request.data.get('password') 
>> new_user = authenticate(request, email, password)
>> request.data contains the username and password
>>
>> On Monday, May 24, 2021 at 9:29:33 AM UTC+3 tosina...@gmail.com wrote:
>>
>>> I've tried that it didn't wrk
>>> On 24 May 2021 05:21, "lalit suthar"  wrote:
>>>
>>>> in authenticate function take values from request.data dictionary
>>>> email = request.data.get('email')
>>>> poassword = request.data.get('password')
>>>> On Sunday, 23 May 2021 at 07:27:51 UTC+5:30 tosina...@gmail.com wrote:
>>>>
>>>>> halo guys, i wan  make it possible for user to auto login user after 
>>>>> signup in my app using drf
>>>>> but still getting null as d user-id & returning anonymous user err
>>>>> can anyone help out
>>>>> [image: image.png]
>>>>> [image: image.png]
>>>>>
>>>>> -- 
>>>> 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/a3a45860-b65c-45f0-9c24-cd23165e5048n%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/django-users/a3a45860-b65c-45f0-9c24-cd23165e5048n%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> -- 
>> 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/cfbe09d9-00b9-4993-abc2-a3a87846d8e7n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/cfbe09d9-00b9-4993-abc2-a3a87846d8e7n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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/75b1f89b-8338-46e6-9aab-5d51b8734fbfn%40googlegroups.com.


Re: In need of immediate help from Django community

2021-05-25 Thread Aritra Ray
Thank you for your response. It worked out perfectly.

On Tue, 25 May, 2021, 4:39 am Kelvin Sajere,  wrote:

> Import the User model in your forms.py and use it instead of Profile. As
> the error clearly states, the Profile model does not have a username field.
> Django actually recommends using the AbstractUser, or the AbstractBaseUser
> to extend the default User model if you wish to create something like a
> profile.
>
> On Mon, May 24, 2021 at 9:31 PM Omkar Parab  wrote:
>
>> Error is in forms.py file.
>>
>> "model = User" not profile.
>>
>> Default "User" model comes with username, email filed.
>>
>> Why you're creating another email field in the Profile model?
>>
>> Just fetch it using {{ user.email }}
>>
>>
>> On Tue, May 25, 2021, 1:38 AM Aritra Ray  wrote:
>>
>>> Hi,
>>>
>>> I've been facing a problem recently in creating a Django Profile model
>>> for an E-commerce website.
>>> Error: FieldError(message) django.core.exceptions.FieldError: Unknown
>>> field(s) (username) specified for Profile
>>> Kindly help me out if possible. The screenshots have been attached below
>>> and the github link for the project has been provided.
>>>
>>> Link: https://github.com/First-project-01/Django-ecommerce (Check out
>>> the 'changes' branch)
>>>
>>> Regards,
>>> Aritra
>>>
>>> --
>>> 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/CAFecadvxBCa6w02%3DZ887%2BnaEdY-R6B9%2BVVFzVW5zYvkt1gA2hg%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAFecadvxBCa6w02%3DZ887%2BnaEdY-R6B9%2BVVFzVW5zYvkt1gA2hg%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> 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/CAJY8mfzFT-GqqZ0YvdLKH9gKcTAv%2B1srG9973pXYfA5f_qVA7w%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAJY8mfzFT-GqqZ0YvdLKH9gKcTAv%2B1srG9973pXYfA5f_qVA7w%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>
>
> --
> KeLLs
>
> --
> 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/CADYqDX1dm1Y-T89W9%3DyZQs1bH04eNUj5qcCpwieOSDoY%2BDy9Kg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CADYqDX1dm1Y-T89W9%3DyZQs1bH04eNUj5qcCpwieOSDoY%2BDy9Kg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAFecadt6r70L7v78%3Dy63MfyNdFLYJwfKJaP2BeuxO-%3Dgp9fmMg%40mail.gmail.com.


Re: In need of immediate help from Django community

2021-05-24 Thread Kelvin Sajere
Import the User model in your forms.py and use it instead of Profile. As
the error clearly states, the Profile model does not have a username field.
Django actually recommends using the AbstractUser, or the AbstractBaseUser
to extend the default User model if you wish to create something like a
profile.

On Mon, May 24, 2021 at 9:31 PM Omkar Parab  wrote:

> Error is in forms.py file.
>
> "model = User" not profile.
>
> Default "User" model comes with username, email filed.
>
> Why you're creating another email field in the Profile model?
>
> Just fetch it using {{ user.email }}
>
>
> On Tue, May 25, 2021, 1:38 AM Aritra Ray  wrote:
>
>> Hi,
>>
>> I've been facing a problem recently in creating a Django Profile model
>> for an E-commerce website.
>> Error: FieldError(message) django.core.exceptions.FieldError: Unknown
>> field(s) (username) specified for Profile
>> Kindly help me out if possible. The screenshots have been attached below
>> and the github link for the project has been provided.
>>
>> Link: https://github.com/First-project-01/Django-ecommerce (Check out
>> the 'changes' branch)
>>
>> Regards,
>> Aritra
>>
>> --
>> 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/CAFecadvxBCa6w02%3DZ887%2BnaEdY-R6B9%2BVVFzVW5zYvkt1gA2hg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAFecadvxBCa6w02%3DZ887%2BnaEdY-R6B9%2BVVFzVW5zYvkt1gA2hg%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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/CAJY8mfzFT-GqqZ0YvdLKH9gKcTAv%2B1srG9973pXYfA5f_qVA7w%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAJY8mfzFT-GqqZ0YvdLKH9gKcTAv%2B1srG9973pXYfA5f_qVA7w%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
KeLLs

-- 
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/CADYqDX1dm1Y-T89W9%3DyZQs1bH04eNUj5qcCpwieOSDoY%2BDy9Kg%40mail.gmail.com.


Re: In need of immediate help from Django community

2021-05-24 Thread Omkar Parab
Error is in forms.py file.

"model = User" not profile.

Default "User" model comes with username, email filed.

Why you're creating another email field in the Profile model?

Just fetch it using {{ user.email }}


On Tue, May 25, 2021, 1:38 AM Aritra Ray  wrote:

> Hi,
>
> I've been facing a problem recently in creating a Django Profile model for
> an E-commerce website.
> Error: FieldError(message) django.core.exceptions.FieldError: Unknown
> field(s) (username) specified for Profile
> Kindly help me out if possible. The screenshots have been attached below
> and the github link for the project has been provided.
>
> Link: https://github.com/First-project-01/Django-ecommerce (Check out the
> 'changes' branch)
>
> Regards,
> Aritra
>
> --
> 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/CAFecadvxBCa6w02%3DZ887%2BnaEdY-R6B9%2BVVFzVW5zYvkt1gA2hg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAFecadvxBCa6w02%3DZ887%2BnaEdY-R6B9%2BVVFzVW5zYvkt1gA2hg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAJY8mfzFT-GqqZ0YvdLKH9gKcTAv%2B1srG9973pXYfA5f_qVA7w%40mail.gmail.com.


Re: In need of immediate help from Django community

2021-05-24 Thread Mottaz Hegaze
I think in second image ( usercreateform ) your model needs to be User not
profile

On Mon, May 24, 2021 at 10:08 PM Aritra Ray  wrote:

> Hi,
>
> I've been facing a problem recently in creating a Django Profile model for
> an E-commerce website.
> Error: FieldError(message) django.core.exceptions.FieldError: Unknown
> field(s) (username) specified for Profile
> Kindly help me out if possible. The screenshots have been attached below
> and the github link for the project has been provided.
>
> Link: https://github.com/First-project-01/Django-ecommerce (Check out the
> 'changes' branch)
>
> Regards,
> Aritra
>
> --
> 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/CAFecadvxBCa6w02%3DZ887%2BnaEdY-R6B9%2BVVFzVW5zYvkt1gA2hg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAFecadvxBCa6w02%3DZ887%2BnaEdY-R6B9%2BVVFzVW5zYvkt1gA2hg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAHV4E-epA2sH8LrAX7y6kQ0HePvpir%3DLwCCJB%3DcC4Som4JBo0g%40mail.gmail.com.


Re: help on autologging users after signup

2021-05-24 Thread I,M& M
in drf, the request.POST dictionary does not contain the body of the 
request instead use the request.data to access the requests body.
ex.
email = request.data.get('email')
password= request.data.get('password') 
new_user = authenticate(request, email, password)
request.data contains the username and password

On Monday, May 24, 2021 at 9:29:33 AM UTC+3 tosina...@gmail.com wrote:

> I've tried that it didn't wrk
> On 24 May 2021 05:21, "lalit suthar"  wrote:
>
>> in authenticate function take values from request.data dictionary
>> email = request.data.get('email')
>> poassword = request.data.get('password')
>> On Sunday, 23 May 2021 at 07:27:51 UTC+5:30 tosina...@gmail.com wrote:
>>
>>> halo guys, i wan  make it possible for user to auto login user after 
>>> signup in my app using drf
>>> but still getting null as d user-id & returning anonymous user err
>>> can anyone help out
>>> [image: image.png]
>>> [image: image.png]
>>>
>>> -- 
>> 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/a3a45860-b65c-45f0-9c24-cd23165e5048n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/a3a45860-b65c-45f0-9c24-cd23165e5048n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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/cfbe09d9-00b9-4993-abc2-a3a87846d8e7n%40googlegroups.com.


Re: help on autologging users after signup

2021-05-24 Thread ola neat
I've tried that it didn't wrk
On 24 May 2021 05:21, "lalit suthar"  wrote:

> in authenticate function take values from request.data dictionary
> email = request.data.get('email')
> poassword = request.data.get('password')
> On Sunday, 23 May 2021 at 07:27:51 UTC+5:30 tosina...@gmail.com wrote:
>
>> halo guys, i wan  make it possible for user to auto login user after
>> signup in my app using drf
>> but still getting null as d user-id & returning anonymous user err
>> can anyone help out
>> [image: image.png]
>> [image: image.png]
>>
>> --
> 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/a3a45860-b65c-45f0-9c24-cd23165e5048n%
> 40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/a3a45860-b65c-45f0-9c24-cd23165e5048n%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAHLKn70bzO1mBQt0m%3Ds_02M1DduTyT2t1eKka-NLBBKPgReaYg%40mail.gmail.com.


Re: help on autologging users after signup

2021-05-23 Thread lalit suthar
in authenticate function take values from request.data dictionary
email = request.data.get('email')
poassword = request.data.get('password')
On Sunday, 23 May 2021 at 07:27:51 UTC+5:30 tosina...@gmail.com wrote:

> halo guys, i wan  make it possible for user to auto login user after 
> signup in my app using drf
> but still getting null as d user-id & returning anonymous user err
> can anyone help out
> [image: image.png]
> [image: image.png]
>
>

-- 
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/a3a45860-b65c-45f0-9c24-cd23165e5048n%40googlegroups.com.


Re: Can you help me solve this

2021-05-22 Thread Mehdi Ismail
Potentially cracked the migration at some stage. 
you might need to manually fix it, or fix your migration files (preferred). 

This would require for me to take a look at your database tables/structures 
and your current status of migrations/code; if you need a pair of eyes,  
you could email me back, to assist you over lets' say Anydesk or so.. 

On Thursday, 20 May 2021 at 18:33:00 UTC+5:30 Sameer Gedam wrote:

> OperationalError at /admin/products/product/add/no such table: 
> main.auth_user__oldRequest Method:
> POSTRequest URL:
> http://127.0.0.1:8000/admin/products/product/add/Django Version:
> 2.0.7Exception Type:
> OperationalErrorException Value:
> no such table: main.auth_user__oldException Location:
> C:\Users\user\.virtualenvs\trydjango-SjDXbmBR\lib\site-packages\django\db\backends\sqlite3\base.py
>  
> in execute, line 303Python Executable:
> C:\Users\user\.virtualenvs\trydjango-SjDXbmBR\Scripts\python.exePython 
> Version:
> 3.9.5Python Path:
> ['C:\\Users\\user\\Dev\\trydjango\\src', 'c:\\python39\\python39.zip', 
> 'c:\\python39\\DLLs', 'c:\\python39\\lib', 'c:\\python39', 
> 'C:\\Users\\user\\.virtualenvs\\trydjango-SjDXbmBR', 
> 'C:\\Users\\user\\.virtualenvs\\trydjango-SjDXbmBR\\lib\\site-packages']Server
>  
> time:
> Wed, 19 May 2021 16:51:46 +
>

-- 
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/03dbe0d5-ccf3-4c2d-bb13-563b93762ae4n%40googlegroups.com.


Re: Can you help me solve this

2021-05-21 Thread Eric 247ERICPOINTCOM
Hi Sameer,

Just make sure you have run python manage.py migrate after adjusting your
models.py. I ran into that error and solved it by migration.

*Kind Regards*

*Eric Bawakuno | Computer Engineer | +27795639700| +27 815152254
| eric...@gmail.com   | **Address**: 29 Rochester Road,
Observatory | Cape Town, South Africa | 7925*
f



On Thu, May 20, 2021 at 3:10 PM Sharif Mehedi 
wrote:

> I do not see anything solvable there. Maybe soak it into water! :P .
> Maybe, it will help if you can provide us with a clue to whatever you are
> trying to do and the nature of the problem you are facing in trying in
> doing.
> On Thursday, May 20, 2021, 7:02:25 PM GMT+6, Sameer Gedam <
> samged...@gmail.com> wrote:
>
>
> OperationalError at /admin/products/product/add/no such table:
> main.auth_user__oldRequest Method:
> POSTRequest URL:
> http://127.0.0.1:8000/admin/products/product/add/Django Version:
> 2.0.7Exception Type:
> OperationalErrorException Value:
> no such table: main.auth_user__oldException Location:
> C:\Users\user\.virtualenvs\trydjango-SjDXbmBR\lib\site-packages\django\db\backends\sqlite3\base.py
> in execute, line 303Python Executable:
> C:\Users\user\.virtualenvs\trydjango-SjDXbmBR\Scripts\python.exePython
> Version:
> 3.9.5Python Path:
> ['C:\\Users\\user\\Dev\\trydjango\\src', 'c:\\python39\\python39.zip',
> 'c:\\python39\\DLLs', 'c:\\python39\\lib', 'c:\\python39',
> 'C:\\Users\\user\\.virtualenvs\\trydjango-SjDXbmBR',
> 'C:\\Users\\user\\.virtualenvs\\trydjango-SjDXbmBR\\lib\\site-packages']Server
> time:
> Wed, 19 May 2021 16:51:46 +
>
> --
> 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/f4b616e3-be6b-49d9-8d62-577e32d45121n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/f4b616e3-be6b-49d9-8d62-577e32d45121n%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> --
> 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/1572993905.688196.1621516160432%40mail.yahoo.com
> <https://groups.google.com/d/msgid/django-users/1572993905.688196.1621516160432%40mail.yahoo.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAFgqToUDYBXDemfjv%3DW9iCsR%2B83CnGETd38NeDi0vt%2BvjVPkpg%40mail.gmail.com.


Re: Help me

2021-05-21 Thread Boris Pérez
Another way, maybe more familiar to u is to create the form directly
on the template (html) ..something like




And then in the view:
def your_view(request):
if request.method == "POST":
 return HttpResponse("My name is", request.POST["name_1"]
else:
 return HttpResponse("Error, method must be POST"]

And of course, add the path to your view in the urls.py file...
Greetings


2021-05-21 7:14 GMT-04:00, Théodore KOSSI :
> thanks you very much
>
> Le ven. 21 mai 2021 à 11:53, sebasti...@gmail.com
> 
> a écrit :
>
>> Here are a tutorial for django with explanations how you can use forms in
>> django
>>
>> https://tutorial.djangogirls.org/en/django_forms/
>>
>> gabriels...@gmail.com schrieb am Freitag, 21. Mai 2021 um 12:32:51 UTC+2:
>>
>>> From django import forms
>>> Class Feedback(forms.form):
>>>  name = forms.CharField(widget=forms.TextInput)
>>>
>>> Just like that and you import it into your views
>>> If you want more information you can read the django documentation too
>>>
>>> On Fri, 21 May 2021 at 09:44 Théodore KOSSI  wrote:
>>>
>>>> okay I understand. So , I want to create A general form. What can I
>>>> use?
>>>>
>>>>
>>>> Le ven. 21 mai 2021 à 10:33, 712189512  a écrit
>>>> :
>>>>
>>>>> Both forms are pretty easy to use
>>>>> Model form makes it more simpler because it takes your model and
>>>>> creates a form out of your model for you whereas general form you have
>>>>> to
>>>>> do everything from scratch
>>>>>
>>>>> On Fri, 21 May 2021 at 09:29 Théodore KOSSI 
>>>>> wrote:
>>>>>
>>>>>> general usage form. Tell me what the importance of model form?
>>>>>>
>>>>>>
>>>>>> Le ven. 21 mai 2021 à 10:27, 712189512  a
>>>>>> écrit :
>>>>>>
>>>>>>> It depends on what you want to do
>>>>>>> Are creating the form from a model or a general usage form
>>>>>>>
>>>>>>> On Fri, 21 May 2021 at 09:24 Théodore KOSSI 
>>>>>>> wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> Hellooo guys, I need your help. I want to create a form in django
>>>>>>>> and I don't know exactly what i can use to create it.
>>>>>>>>
>>>>>>>> --
>>>>>>>> theodoros17@python-developer
>>>>>>>>
>>>>>>>> --
>>>>>>>> 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/CAKiMjQENmpGCoMuE3zmuaFaYkD8t7v7Kc0OWz7G_BdQegVXSNw%40mail.gmail.com
>>>>>>>> <https://groups.google.com/d/msgid/django-users/CAKiMjQENmpGCoMuE3zmuaFaYkD8t7v7Kc0OWz7G_BdQegVXSNw%40mail.gmail.com?utm_medium=email_source=footer>
>>>>>>>> .
>>>>>>>>
>>>>>>> --
>>>>>>> Gabrielstone
>>>>>>>
>>>>>>> --
>>>>>>> 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/CAL-5MpUi4ZvrGfN20MrsFN4dTtD57Z0Ae5vWeCybBBZb-Afn6g%40mail.gmail.com
>>>>>>> <https://groups.google.com/d/msgid/django-users/CAL-5MpUi4ZvrGfN20MrsFN4dTtD57Z0Ae5vWeCybBBZb-Afn6g%40mail.gmail.com?utm_medium=email_source=footer>
>>>>>>> .
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> theodoros17@python-developer
>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to the Goo

Re: Help me

2021-05-21 Thread Théodore KOSSI
thanks you very much

Le ven. 21 mai 2021 à 11:53, sebasti...@gmail.com 
a écrit :

> Here are a tutorial for django with explanations how you can use forms in
> django
>
> https://tutorial.djangogirls.org/en/django_forms/
>
> gabriels...@gmail.com schrieb am Freitag, 21. Mai 2021 um 12:32:51 UTC+2:
>
>> From django import forms
>> Class Feedback(forms.form):
>>  name = forms.CharField(widget=forms.TextInput)
>>
>> Just like that and you import it into your views
>> If you want more information you can read the django documentation too
>>
>> On Fri, 21 May 2021 at 09:44 Théodore KOSSI  wrote:
>>
>>> okay I understand. So , I want to create A general form. What can I use?
>>>
>>>
>>> Le ven. 21 mai 2021 à 10:33, 712189512  a écrit :
>>>
>>>> Both forms are pretty easy to use
>>>> Model form makes it more simpler because it takes your model and
>>>> creates a form out of your model for you whereas general form you have to
>>>> do everything from scratch
>>>>
>>>> On Fri, 21 May 2021 at 09:29 Théodore KOSSI 
>>>> wrote:
>>>>
>>>>> general usage form. Tell me what the importance of model form?
>>>>>
>>>>>
>>>>> Le ven. 21 mai 2021 à 10:27, 712189512  a
>>>>> écrit :
>>>>>
>>>>>> It depends on what you want to do
>>>>>> Are creating the form from a model or a general usage form
>>>>>>
>>>>>> On Fri, 21 May 2021 at 09:24 Théodore KOSSI 
>>>>>> wrote:
>>>>>>
>>>>>>>
>>>>>>> Hellooo guys, I need your help. I want to create a form in django
>>>>>>> and I don't know exactly what i can use to create it.
>>>>>>>
>>>>>>> --
>>>>>>> theodoros17@python-developer
>>>>>>>
>>>>>>> --
>>>>>>> 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/CAKiMjQENmpGCoMuE3zmuaFaYkD8t7v7Kc0OWz7G_BdQegVXSNw%40mail.gmail.com
>>>>>>> <https://groups.google.com/d/msgid/django-users/CAKiMjQENmpGCoMuE3zmuaFaYkD8t7v7Kc0OWz7G_BdQegVXSNw%40mail.gmail.com?utm_medium=email_source=footer>
>>>>>>> .
>>>>>>>
>>>>>> --
>>>>>> Gabrielstone
>>>>>>
>>>>>> --
>>>>>> 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/CAL-5MpUi4ZvrGfN20MrsFN4dTtD57Z0Ae5vWeCybBBZb-Afn6g%40mail.gmail.com
>>>>>> <https://groups.google.com/d/msgid/django-users/CAL-5MpUi4ZvrGfN20MrsFN4dTtD57Z0Ae5vWeCybBBZb-Afn6g%40mail.gmail.com?utm_medium=email_source=footer>
>>>>>> .
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> theodoros17@python-developer
>>>>>
>>>>> --
>>>>> 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/CAKiMjQFO3ssc-J4hgzc_7%2Bw_VjU88uwSBeVC-Bmupyh4mDxNKQ%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/django-users/CAKiMjQFO3ssc-J4hgzc_7%2Bw_VjU88uwSBeVC-Bmupyh4mDxNKQ%40mail.gmail.com?utm_medium=email_source=footer>
>>>>> .
>>>>>
>>>> --
>>>> Gabrielstone
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Django users" group

Re: Help me

2021-05-21 Thread sebasti...@gmail.com
Here are a tutorial for django with explanations how you can use forms in 
django

https://tutorial.djangogirls.org/en/django_forms/

gabriels...@gmail.com schrieb am Freitag, 21. Mai 2021 um 12:32:51 UTC+2:

> From django import forms 
> Class Feedback(forms.form):
>  name = forms.CharField(widget=forms.TextInput)
>
> Just like that and you import it into your views
> If you want more information you can read the django documentation too 
>
> On Fri, 21 May 2021 at 09:44 Théodore KOSSI  wrote:
>
>> okay I understand. So , I want to create A general form. What can I use?
>>
>>
>> Le ven. 21 mai 2021 à 10:33, 712189512  a écrit :
>>
>>> Both forms are pretty easy to use
>>> Model form makes it more simpler because it takes your model and creates 
>>> a form out of your model for you whereas general form you have to do 
>>> everything from scratch 
>>>
>>> On Fri, 21 May 2021 at 09:29 Théodore KOSSI  wrote:
>>>
>>>> general usage form. Tell me what the importance of model form?
>>>>
>>>>
>>>> Le ven. 21 mai 2021 à 10:27, 712189512  a 
>>>> écrit :
>>>>
>>>>> It depends on what you want to do
>>>>> Are creating the form from a model or a general usage form 
>>>>>
>>>>> On Fri, 21 May 2021 at 09:24 Théodore KOSSI  
>>>>> wrote:
>>>>>
>>>>>>
>>>>>> Hellooo guys, I need your help. I want to create a form in django and 
>>>>>> I don't know exactly what i can use to create it. 
>>>>>>
>>>>>> -- 
>>>>>> theodoros17@python-developer
>>>>>>
>>>>>> -- 
>>>>>> 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/CAKiMjQENmpGCoMuE3zmuaFaYkD8t7v7Kc0OWz7G_BdQegVXSNw%40mail.gmail.com
>>>>>>  
>>>>>> <https://groups.google.com/d/msgid/django-users/CAKiMjQENmpGCoMuE3zmuaFaYkD8t7v7Kc0OWz7G_BdQegVXSNw%40mail.gmail.com?utm_medium=email_source=footer>
>>>>>> .
>>>>>>
>>>>> -- 
>>>>> Gabrielstone
>>>>>
>>>>> -- 
>>>>> 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/CAL-5MpUi4ZvrGfN20MrsFN4dTtD57Z0Ae5vWeCybBBZb-Afn6g%40mail.gmail.com
>>>>>  
>>>>> <https://groups.google.com/d/msgid/django-users/CAL-5MpUi4ZvrGfN20MrsFN4dTtD57Z0Ae5vWeCybBBZb-Afn6g%40mail.gmail.com?utm_medium=email_source=footer>
>>>>> .
>>>>>
>>>>
>>>>
>>>> -- 
>>>> theodoros17@python-developer
>>>>
>>>> -- 
>>>> 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/CAKiMjQFO3ssc-J4hgzc_7%2Bw_VjU88uwSBeVC-Bmupyh4mDxNKQ%40mail.gmail.com
>>>>  
>>>> <https://groups.google.com/d/msgid/django-users/CAKiMjQFO3ssc-J4hgzc_7%2Bw_VjU88uwSBeVC-Bmupyh4mDxNKQ%40mail.gmail.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> -- 
>>> Gabrielstone
>>>
>>> -- 
>>> 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/CAL-5MpXX_884cpG7de%2BHoMH1t1tuk1PJmT7%3DTEjhqZEVHD%2BEfA%40mail.gmail.com
>>>  
>>> <https://groups.google.com/d/msgid/django-users/CAL-5MpXX_884cpG7de%2BHoMH1t1tuk1PJmT7%3DTEjhqZEVHD%2BEfA%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>>
>>
>> -- 
>> theodoros17@python-developer
>>
>> -- 
>> 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/CAKiMjQFaU2RVAf-rV%3DCx3c6jFO9fn9koUX%3DUu20GhBygouAXcQ%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/django-users/CAKiMjQFaU2RVAf-rV%3DCx3c6jFO9fn9koUX%3DUu20GhBygouAXcQ%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> -- 
> Gabrielstone
>

-- 
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/0e093d46-bb7f-463b-b575-ddd791be2634n%40googlegroups.com.


Re: Help me

2021-05-21 Thread 712189512
>From django import forms
Class Feedback(forms.form):
 name = forms.CharField(widget=forms.TextInput)

Just like that and you import it into your views
If you want more information you can read the django documentation too

On Fri, 21 May 2021 at 09:44 Théodore KOSSI  wrote:

> okay I understand. So , I want to create A general form. What can I use?
>
>
> Le ven. 21 mai 2021 à 10:33, 712189512  a
> écrit :
>
>> Both forms are pretty easy to use
>> Model form makes it more simpler because it takes your model and creates
>> a form out of your model for you whereas general form you have to do
>> everything from scratch
>>
>> On Fri, 21 May 2021 at 09:29 Théodore KOSSI 
>> wrote:
>>
>>> general usage form. Tell me what the importance of model form?
>>>
>>>
>>> Le ven. 21 mai 2021 à 10:27, 712189512  a
>>> écrit :
>>>
>>>> It depends on what you want to do
>>>> Are creating the form from a model or a general usage form
>>>>
>>>> On Fri, 21 May 2021 at 09:24 Théodore KOSSI 
>>>> wrote:
>>>>
>>>>>
>>>>> Hellooo guys, I need your help. I want to create a form in django and
>>>>> I don't know exactly what i can use to create it.
>>>>>
>>>>> --
>>>>> theodoros17@python-developer
>>>>>
>>>>> --
>>>>> 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/CAKiMjQENmpGCoMuE3zmuaFaYkD8t7v7Kc0OWz7G_BdQegVXSNw%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/django-users/CAKiMjQENmpGCoMuE3zmuaFaYkD8t7v7Kc0OWz7G_BdQegVXSNw%40mail.gmail.com?utm_medium=email_source=footer>
>>>>> .
>>>>>
>>>> --
>>>> Gabrielstone
>>>>
>>>> --
>>>> 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/CAL-5MpUi4ZvrGfN20MrsFN4dTtD57Z0Ae5vWeCybBBZb-Afn6g%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAL-5MpUi4ZvrGfN20MrsFN4dTtD57Z0Ae5vWeCybBBZb-Afn6g%40mail.gmail.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>>
>>>
>>> --
>>> theodoros17@python-developer
>>>
>>> --
>>> 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/CAKiMjQFO3ssc-J4hgzc_7%2Bw_VjU88uwSBeVC-Bmupyh4mDxNKQ%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAKiMjQFO3ssc-J4hgzc_7%2Bw_VjU88uwSBeVC-Bmupyh4mDxNKQ%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> Gabrielstone
>>
>> --
>> 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/CAL-5MpXX_884cpG7de%2BHoMH1t1tuk1PJmT7%3DTEjhqZEVHD%2BEfA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAL-5MpXX_884cpG7de%2BHoMH1t1tuk1PJmT7%3DTEjhqZEVHD%2BEfA%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>
>
> --
> theodoros17@python-developer
>
> --
> 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/CAKiMjQFaU2RVAf-rV%3DCx3c6jFO9fn9koUX%3DUu20GhBygouAXcQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAKiMjQFaU2RVAf-rV%3DCx3c6jFO9fn9koUX%3DUu20GhBygouAXcQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
>
-- 
Gabrielstone

-- 
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/CAL-5MpXDNN3R5YgvQaxSLehkwJFAwzmOPa5D5%3DEYXxYRq7gVoA%40mail.gmail.com.


Re: Help me

2021-05-21 Thread Théodore KOSSI
okay I understand. So , I want to create A general form. What can I use?


Le ven. 21 mai 2021 à 10:33, 712189512  a
écrit :

> Both forms are pretty easy to use
> Model form makes it more simpler because it takes your model and creates a
> form out of your model for you whereas general form you have to do
> everything from scratch
>
> On Fri, 21 May 2021 at 09:29 Théodore KOSSI 
> wrote:
>
>> general usage form. Tell me what the importance of model form?
>>
>>
>> Le ven. 21 mai 2021 à 10:27, 712189512  a
>> écrit :
>>
>>> It depends on what you want to do
>>> Are creating the form from a model or a general usage form
>>>
>>> On Fri, 21 May 2021 at 09:24 Théodore KOSSI 
>>> wrote:
>>>
>>>>
>>>> Hellooo guys, I need your help. I want to create a form in django and I
>>>> don't know exactly what i can use to create it.
>>>>
>>>> --
>>>> theodoros17@python-developer
>>>>
>>>> --
>>>> 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/CAKiMjQENmpGCoMuE3zmuaFaYkD8t7v7Kc0OWz7G_BdQegVXSNw%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAKiMjQENmpGCoMuE3zmuaFaYkD8t7v7Kc0OWz7G_BdQegVXSNw%40mail.gmail.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> --
>>> Gabrielstone
>>>
>>> --
>>> 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/CAL-5MpUi4ZvrGfN20MrsFN4dTtD57Z0Ae5vWeCybBBZb-Afn6g%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAL-5MpUi4ZvrGfN20MrsFN4dTtD57Z0Ae5vWeCybBBZb-Afn6g%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>>
>>
>> --
>> theodoros17@python-developer
>>
>> --
>> 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/CAKiMjQFO3ssc-J4hgzc_7%2Bw_VjU88uwSBeVC-Bmupyh4mDxNKQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAKiMjQFO3ssc-J4hgzc_7%2Bw_VjU88uwSBeVC-Bmupyh4mDxNKQ%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> Gabrielstone
>
> --
> 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/CAL-5MpXX_884cpG7de%2BHoMH1t1tuk1PJmT7%3DTEjhqZEVHD%2BEfA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAL-5MpXX_884cpG7de%2BHoMH1t1tuk1PJmT7%3DTEjhqZEVHD%2BEfA%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
theodoros17@python-developer

-- 
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/CAKiMjQFaU2RVAf-rV%3DCx3c6jFO9fn9koUX%3DUu20GhBygouAXcQ%40mail.gmail.com.


Re: Help me

2021-05-21 Thread 712189512
Both forms are pretty easy to use
Model form makes it more simpler because it takes your model and creates a
form out of your model for you whereas general form you have to do
everything from scratch

On Fri, 21 May 2021 at 09:29 Théodore KOSSI  wrote:

> general usage form. Tell me what the importance of model form?
>
>
> Le ven. 21 mai 2021 à 10:27, 712189512  a
> écrit :
>
>> It depends on what you want to do
>> Are creating the form from a model or a general usage form
>>
>> On Fri, 21 May 2021 at 09:24 Théodore KOSSI 
>> wrote:
>>
>>>
>>> Hellooo guys, I need your help. I want to create a form in django and I
>>> don't know exactly what i can use to create it.
>>>
>>> --
>>> theodoros17@python-developer
>>>
>>> --
>>> 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/CAKiMjQENmpGCoMuE3zmuaFaYkD8t7v7Kc0OWz7G_BdQegVXSNw%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAKiMjQENmpGCoMuE3zmuaFaYkD8t7v7Kc0OWz7G_BdQegVXSNw%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> Gabrielstone
>>
>> --
>> 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/CAL-5MpUi4ZvrGfN20MrsFN4dTtD57Z0Ae5vWeCybBBZb-Afn6g%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAL-5MpUi4ZvrGfN20MrsFN4dTtD57Z0Ae5vWeCybBBZb-Afn6g%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>
>
> --
> theodoros17@python-developer
>
> --
> 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/CAKiMjQFO3ssc-J4hgzc_7%2Bw_VjU88uwSBeVC-Bmupyh4mDxNKQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAKiMjQFO3ssc-J4hgzc_7%2Bw_VjU88uwSBeVC-Bmupyh4mDxNKQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
>
-- 
Gabrielstone

-- 
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/CAL-5MpXX_884cpG7de%2BHoMH1t1tuk1PJmT7%3DTEjhqZEVHD%2BEfA%40mail.gmail.com.


Re: Help me

2021-05-21 Thread Théodore KOSSI
general usage form. Tell me what the importance of model form?


Le ven. 21 mai 2021 à 10:27, 712189512  a
écrit :

> It depends on what you want to do
> Are creating the form from a model or a general usage form
>
> On Fri, 21 May 2021 at 09:24 Théodore KOSSI 
> wrote:
>
>>
>> Hellooo guys, I need your help. I want to create a form in django and I
>> don't know exactly what i can use to create it.
>>
>> --
>> theodoros17@python-developer
>>
>> --
>> 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/CAKiMjQENmpGCoMuE3zmuaFaYkD8t7v7Kc0OWz7G_BdQegVXSNw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAKiMjQENmpGCoMuE3zmuaFaYkD8t7v7Kc0OWz7G_BdQegVXSNw%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> Gabrielstone
>
> --
> 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/CAL-5MpUi4ZvrGfN20MrsFN4dTtD57Z0Ae5vWeCybBBZb-Afn6g%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAL-5MpUi4ZvrGfN20MrsFN4dTtD57Z0Ae5vWeCybBBZb-Afn6g%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
theodoros17@python-developer

-- 
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/CAKiMjQFO3ssc-J4hgzc_7%2Bw_VjU88uwSBeVC-Bmupyh4mDxNKQ%40mail.gmail.com.


Re: Help me

2021-05-21 Thread 712189512
It depends on what you want to do
Are creating the form from a model or a general usage form

On Fri, 21 May 2021 at 09:24 Théodore KOSSI  wrote:

>
> Hellooo guys, I need your help. I want to create a form in django and I
> don't know exactly what i can use to create it.
>
> --
> theodoros17@python-developer
>
> --
> 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/CAKiMjQENmpGCoMuE3zmuaFaYkD8t7v7Kc0OWz7G_BdQegVXSNw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAKiMjQENmpGCoMuE3zmuaFaYkD8t7v7Kc0OWz7G_BdQegVXSNw%40mail.gmail.com?utm_medium=email_source=footer>
> .
>
-- 
Gabrielstone

-- 
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/CAL-5MpUi4ZvrGfN20MrsFN4dTtD57Z0Ae5vWeCybBBZb-Afn6g%40mail.gmail.com.


Help me

2021-05-21 Thread Théodore KOSSI
Hellooo guys, I need your help. I want to create a form in django and I
don't know exactly what i can use to create it.

-- 
theodoros17@python-developer

-- 
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/CAKiMjQENmpGCoMuE3zmuaFaYkD8t7v7Kc0OWz7G_BdQegVXSNw%40mail.gmail.com.


Re: Can you help me solve this

2021-05-20 Thread Sharif Mehedi
I do not see anything solvable there. Maybe soak it into water! :P .Maybe, it 
will help if you can provide us with a clue to whatever you are trying to do 
and the nature of the problem you are facing in trying in doing.
   On Thursday, May 20, 2021, 7:02:25 PM GMT+6, Sameer Gedam 
 wrote:  
 
 OperationalError at /admin/products/product/add/no such table: 
main.auth_user__oldRequest Method:
POSTRequest URL:
http://127.0.0.1:8000/admin/products/product/add/Django Version:
2.0.7Exception Type:
OperationalErrorException Value:
no such table: main.auth_user__oldException Location:
C:\Users\user\.virtualenvs\trydjango-SjDXbmBR\lib\site-packages\django\db\backends\sqlite3\base.py
 in execute, line 303Python Executable:
C:\Users\user\.virtualenvs\trydjango-SjDXbmBR\Scripts\python.exePython Version:
3.9.5Python Path:
['C:\\Users\\user\\Dev\\trydjango\\src', 'c:\\python39\\python39.zip', 
'c:\\python39\\DLLs', 'c:\\python39\\lib', 'c:\\python39', 
'C:\\Users\\user\\.virtualenvs\\trydjango-SjDXbmBR', 
'C:\\Users\\user\\.virtualenvs\\trydjango-SjDXbmBR\\lib\\site-packages']Server 
time:
Wed, 19 May 2021 16:51:46 +


-- 
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/f4b616e3-be6b-49d9-8d62-577e32d45121n%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/1572993905.688196.1621516160432%40mail.yahoo.com.


Can you help me solve this

2021-05-20 Thread Sameer Gedam
OperationalError at /admin/products/product/add/no such table: 
main.auth_user__oldRequest Method:
POSTRequest URL:
http://127.0.0.1:8000/admin/products/product/add/Django Version:
2.0.7Exception Type:
OperationalErrorException Value:
no such table: main.auth_user__oldException Location:
C:\Users\user\.virtualenvs\trydjango-SjDXbmBR\lib\site-packages\django\db\backends\sqlite3\base.py
 
in execute, line 303Python Executable:
C:\Users\user\.virtualenvs\trydjango-SjDXbmBR\Scripts\python.exePython 
Version:
3.9.5Python Path:
['C:\\Users\\user\\Dev\\trydjango\\src', 'c:\\python39\\python39.zip', 
'c:\\python39\\DLLs', 'c:\\python39\\lib', 'c:\\python39', 
'C:\\Users\\user\\.virtualenvs\\trydjango-SjDXbmBR', 
'C:\\Users\\user\\.virtualenvs\\trydjango-SjDXbmBR\\lib\\site-packages']Server 
time:
Wed, 19 May 2021 16:51:46 +

-- 
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/f4b616e3-be6b-49d9-8d62-577e32d45121n%40googlegroups.com.


I need help with getting latest object after filtering

2021-05-10 Thread Francis Akabo
Hi Everyone!
I am working on a project that is supposed to allow users to transfer files 
amongst each other. A transferred file can only be viewed by the user to 
whom the file has been transferred or an is_staff account.

*My Model*
class File(models.Model):
TYPES = (
('GENERAL', 'General'),
('PERSONAL', 'Personal'),
)
type = models.CharField(max_length=10, choices=TYPES, default='Personal')
no = models.CharField(max_length=250, unique=True, null=True)
name = models.CharField(max_length=250, unique=True, null=True)
created = models.DateTimeField(auto_now_add=True, null=True)
updated = models.DateTimeField(auto_now=True)
class Meta:
ordering = ('-created',)

def __str__(self):
return f'{self.no}'

def get_absolute_url(self):
return reverse('outgoing_file', args=[self.pk])

class Transfer(models.Model):
STATES = (
('OUTGOING', 'Outgoing'),
('INCOMING', 'Incoming'),
)
file = models.ForeignKey('File', on_delete=models.CASCADE, 
related_name='transfers')
state = models.CharField(max_length=10, choices=STATES, 
default='Outgoing')
file_from = models.ForeignKey(User, on_delete=models.SET_NULL, 
null=True, related_name='transfers_from')
file_to = models.ForeignKey(User, on_delete=models.SET_NULL, null=True, 
related_name='transfers_to')
recipient_name = models.CharField(max_length=250)
incoming_date = models.DateTimeField(auto_now=True)
due_date = models.DateTimeField(default=due_date(), null=True)
updated = models.DateTimeField(auto_now=True)
def __str__(self):
return f'{self.file_from} {self.file_to}'

*My Views*
@login_required
def outgoing_file_list(request):
if request.user.is_staff:
files = File.objects.all()
else:
files = File.objects.filter(transfers__file_to_id=request.user.id)

context = {
'files': files,
}
*NOTE:*
When the same file is transferred to a user multiple times, I want the 
query to return the newest item only. That to me will make the file 
accessible per user. Any recommended approach to achieve this is welcome.

*My Template*
**
*#*
*File Type*
*File Number*
*File Name*
*Recipient Name*
*Office Number*
*Transferred To*
*Outgoing Date*
*Due Date*
*Actions*
**
**
**
*{% for file in files %}*
**
*{{ forloop.counter }}*
*{{ file.type }}*
*{{ file.no }}*
*{{ file.name | title  }}*
*{{ file.transfers.recipient_name 
}}*
*{{ file.transfers.recipient_office 
}}*
*{{ file.transfer_to.get_full_name 
}}*
*{{ file.outgoing_date.date }}*
*{{ file.due_date | timeuntil }}*
**
*{% if request.user.is_staff %}*
**
*Receive*
**
**
*{% endif %}*

**
*Transfer*
**
**
**
**
*{% endfor %}*

*NOTE: All related fields in the table do not show ie.*
*file.transfers.recipient_name*
*file.transfers.recipient_office*
*file.transfer_to.get_full_name*
*and the remaining.*

Thanks.

-- 
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/801238dc-3aff-4bd6-8863-726eb024a163n%40googlegroups.com.


Re: need help integrating SSL with react/django web app

2021-05-09 Thread John McClain
Hello Ammar,

we're stuck, have been for days

We have nginx set in ec2 instance but cannot get the ssl to slip in.

I copied in Divy who is also working to get this solved

any help would be appreciated


can you help me with this or provide any documentation

On Sat, 8 May 2021 at 10:16, Ammar Mohammed  wrote:

> I am using Nginx as a proxy for my Django app and this method is working
> just fine.
>
> On Sat, May 8, 2021, 11:14 Ammar Mohammed  wrote:
>
>> I think you're supposed to install the certificate in your web server
>> (Nginx, Apache).
>> Follow the manual to install it to your server and everything will be
>> fine.
>>
>> On Sat, May 8, 2021, 10:35 John McClain  wrote:
>>
>>> Hello,
>>>
>>> I am having difficulties connecting SSL to my React/Python webapp
>>>
>>> I am trying to integrate the PWA and am having difficulties getting the
>>> SSL to adopt to the app.
>>>
>>> Does anyone have experience with this?
>>>
>>> Cheers
>>>
>>> --
>>> John McClain
>>>
>>> Cell: 085-1977-823
>>> Skype: jmcclain0129
>>> Email: jmcclain0...@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/CAN-hv_qHS2wdhuwYQLob1C_uM8vgfpbqnvxGke5oy8CyuT551g%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAN-hv_qHS2wdhuwYQLob1C_uM8vgfpbqnvxGke5oy8CyuT551g%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
> 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/CAHs1H7stQG2aqWD95LxH3PSUGaijRYL0%2BEmGCWC2s57A4dJwBw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHs1H7stQG2aqWD95LxH3PSUGaijRYL0%2BEmGCWC2s57A4dJwBw%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
John McClain

Cell: 085-1977-823
Skype: jmcclain0129
Email: jmcclain0...@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/CAN-hv_q65qzyrnC6BTxsm8p%3DLtbjz8iVx11WsFA5higpFKJpfA%40mail.gmail.com.


Re: need help integrating SSL with react/django web app

2021-05-08 Thread John McClain
i recently configured nginx, it wasn't part of the stack initially. I will 
try and work through it. I broke down and actually bought a cert so 
hopefully, it will solve the problems

thanks for your feedback

On Saturday 8 May 2021 at 10:17:27 UTC+1 amarb...@gmail.com wrote:

> I am using Nginx as a proxy for my Django app and this method is working 
> just fine.
>
> On Sat, May 8, 2021, 11:14 Ammar Mohammed  wrote:
>
>> I think you're supposed to install the certificate in your web server 
>> (Nginx, Apache).
>> Follow the manual to install it to your server and everything will be 
>> fine.
>>
>> On Sat, May 8, 2021, 10:35 John McClain  wrote:
>>
>>> Hello,
>>>
>>> I am having difficulties connecting SSL to my React/Python webapp
>>>
>>> I am trying to integrate the PWA and am having difficulties getting the 
>>> SSL to adopt to the app.
>>>
>>> Does anyone have experience with this?
>>>
>>> Cheers
>>>
>>> -- 
>>> John McClain
>>>
>>> Cell: 085-1977-823
>>> Skype: jmcclain0129
>>> Email: jmccla...@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...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/CAN-hv_qHS2wdhuwYQLob1C_uM8vgfpbqnvxGke5oy8CyuT551g%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/af701aab-5c6f-4f3d-94cf-93b8ab454984n%40googlegroups.com.


Re: need help integrating SSL with react/django web app

2021-05-08 Thread Ammar Mohammed
I am using Nginx as a proxy for my Django app and this method is working
just fine.

On Sat, May 8, 2021, 11:14 Ammar Mohammed  wrote:

> I think you're supposed to install the certificate in your web server
> (Nginx, Apache).
> Follow the manual to install it to your server and everything will be fine.
>
> On Sat, May 8, 2021, 10:35 John McClain  wrote:
>
>> Hello,
>>
>> I am having difficulties connecting SSL to my React/Python webapp
>>
>> I am trying to integrate the PWA and am having difficulties getting the
>> SSL to adopt to the app.
>>
>> Does anyone have experience with this?
>>
>> Cheers
>>
>> --
>> John McClain
>>
>> Cell: 085-1977-823
>> Skype: jmcclain0129
>> Email: jmcclain0...@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/CAN-hv_qHS2wdhuwYQLob1C_uM8vgfpbqnvxGke5oy8CyuT551g%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/CAHs1H7stQG2aqWD95LxH3PSUGaijRYL0%2BEmGCWC2s57A4dJwBw%40mail.gmail.com.


Re: need help integrating SSL with react/django web app

2021-05-08 Thread Ammar Mohammed
I think you're supposed to install the certificate in your web server
(Nginx, Apache).
Follow the manual to install it to your server and everything will be fine.

On Sat, May 8, 2021, 10:35 John McClain  wrote:

> Hello,
>
> I am having difficulties connecting SSL to my React/Python webapp
>
> I am trying to integrate the PWA and am having difficulties getting the
> SSL to adopt to the app.
>
> Does anyone have experience with this?
>
> Cheers
>
> --
> John McClain
>
> Cell: 085-1977-823
> Skype: jmcclain0129
> Email: jmcclain0...@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/CAN-hv_qHS2wdhuwYQLob1C_uM8vgfpbqnvxGke5oy8CyuT551g%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/CAHs1H7uEcZpRjUrPawkchg1ACS-2OR2R7t2OW8FG9jPdF0B-hg%40mail.gmail.com.


need help integrating SSL with react/django web app

2021-05-08 Thread John McClain
Hello,

I am having difficulties connecting SSL to my React/Python webapp

I am trying to integrate the PWA and am having difficulties getting the SSL
to adopt to the app.

Does anyone have experience with this?

Cheers

-- 
John McClain

Cell: 085-1977-823
Skype: jmcclain0129
Email: jmcclain0...@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/CAN-hv_qHS2wdhuwYQLob1C_uM8vgfpbqnvxGke5oy8CyuT551g%40mail.gmail.com.


Re: Looking for help installing django

2021-05-06 Thread parmeshwar deharkar
hi bro
i just tell you django is very easy to install .
just follow down step:
check your terminal now type: python --version
now run command : pip install django
now make project : python django-admin startproject testproject
now go to project folder: cd testproject
see manage.py file in project folder and run command : python manage.py
runserver


: run your project now Thank any problem just tell me i will solve that for
you

On Fri, May 7, 2021 at 12:07 AM Kasper Laudrup 
wrote:

> On 06/05/2021 20.17, Philip Pelletier wrote:
> > All I did was install and start django. I made no edits of any kind. I
> > even reinstalled python and got the same problem,
> >
>
> Just installing Django will not run an HTTP server and point your
> browser to port 8000 on your localhost, so obviously you did something
> more than that.
>
> If you want someone to help you, be honest and specific in what you've
> done and what you are trying to achieve.
>
> 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/e4c6528a-2946-8d57-1d7c-29a5e1e02e51%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/CAFyF%2BQgWsjApakH%3Df2y1LukPCtQnK3ffnRcEcT5mCmCpGhJ76g%40mail.gmail.com.


Re: Looking for help installing django

2021-05-06 Thread Kasper Laudrup
On 06/05/2021 20.17, Philip Pelletier wrote:
> All I did was install and start django. I made no edits of any kind. I
> even reinstalled python and got the same problem,
>

Just installing Django will not run an HTTP server and point your
browser to port 8000 on your localhost, so obviously you did something
more than that.

If you want someone to help you, be honest and specific in what you've
done and what you are trying to achieve.

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/e4c6528a-2946-8d57-1d7c-29a5e1e02e51%40stacktrace.dk.


OpenPGP_signature
Description: OpenPGP digital signature


Re: Looking for help installing django

2021-05-06 Thread DJANGO DEVELOPER
yeah, Sharif is right. follow the official dos. if you still not
understanding the flow. come back and ask again.

On Thu, May 6, 2021 at 11:24 PM Sharif Mehedi 
wrote:

> I suggest you follow the official documentation page to properly set up
> for a django project.
> Getting Started: https://docs.djangoproject.com/en/3.2/intro/
>
> If you have trouble following the doc. Please, ask for help, and also be
> specific about what part of documentation you do not understand.
> On Friday, May 7, 2021, 12:17:48 AM GMT+6, Philip Pelletier <
> philippellet...@gmail.com> wrote:
>
>
> All I did was install and start django. I made no edits of any kind. I
> even reinstalled python and got the same problem,
>
> On Thursday, May 6, 2021 at 1:40:29 PM UTC-4 abubak...@gmail.com wrote:
>
> can you please explain to me that what are you trying to do? because you
> have explained nothing in your question about your problem
>
> On Thu, May 6, 2021 at 10:26 PM Sharif Mehedi 
> wrote:
>
> Not very understandable, no useful information on your message body, only
> there's an exception!
> Try to understand what you are doing and when you understand ask for help
> if you cannot solve it yet.
> On Thursday, May 6, 2021, 10:27:35 PM GMT+6, Philip Pelletier <
> philipp...@gmail.com> wrote:
>
>
>
> I get this error message on the browser at 127.0.01:8000
>
> Environment:
>
>
> Request Method: GET
> Request URL: http://127.0.0.1:8000/
>
> Django Version: 3.2.1
> Python Version: 3.9.4
> Installed Applications:
> ['django.contrib.admin',
>  'django.contrib.auth',
>  'django.contrib.contenttypes',
>  'django.contrib.sessions',
>  'django.contrib.messages',
>  'django.contrib.staticfiles',
>  'events']
> Installed Middleware:
> ['django.middleware.security.SecurityMiddleware',
>  'django.contrib.sessions.middleware.SessionMiddleware',
>  'django.middleware.common.CommonMiddleware',
>  'django.middleware.csrf.CsrfViewMiddleware',
>  'django.contrib.auth.middleware.AuthenticationMiddleware',
>  'django.contrib.messages.middleware.MessageMiddleware',
>  'django.middleware.clickjacking.XFrameOptionsMiddleware']
>
>
>
> Traceback (most recent call last):
>   File
> "C:\Users\phili\python\myclub\vert\lib\site-packages\django\core\handlers\exception.py",
> line 47, in inner
> response = get_response(request)
>   File
> "C:\Users\phili\python\myclub\vert\lib\site-packages\django\utils\deprecation.py",
> line 119, in __call__
> response = self.process_response(request, response)
>   File
> "C:\Users\phili\python\myclub\vert\lib\site-packages\django\middleware\clickjacking.py",
> line 26, in process_response
> if response.get('X-Frame-Options') is not None:
>
> Exception Type: AttributeError at /
> Exception Value: 'tuple' object has no attribute 'get'
>
> --
> 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/7a861eb5-df71-4c0b-a239-82c28d18cb06n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/7a861eb5-df71-4c0b-a239-82c28d18cb06n%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> --
> 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/1289025461.1281886.1620321964614%40mail.yahoo.com
> <https://groups.google.com/d/msgid/django-users/1289025461.1281886.1620321964614%40mail.yahoo.com?utm_medium=email_source=footer>
> .
>
> --
> 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/a1e303f9-c2d4-4e1b-939c-58ccd559d576n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/a1e303f9-c2d4-4e1b-939c-58ccd559d576n%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> --
> 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...@

Re: Looking for help installing django

2021-05-06 Thread Sharif Mehedi
 I suggest you follow the official documentation page to properly set up for a 
django project. 
Getting Started: https://docs.djangoproject.com/en/3.2/intro/
If you have trouble following the doc. Please, ask for help, and also be 
specific about what part of documentation you do not understand.
On Friday, May 7, 2021, 12:17:48 AM GMT+6, Philip Pelletier 
 wrote:  
 
 All I did was install and start django. I made no edits of any kind. I even 
reinstalled python and got the same problem,

On Thursday, May 6, 2021 at 1:40:29 PM UTC-4 abubak...@gmail.com wrote:

can you please explain to me that what are you trying to do? because you have 
explained nothing in your question about your problem
On Thu, May 6, 2021 at 10:26 PM Sharif Mehedi  wrote:

Not very understandable, no useful information on your message body, only 
there's an exception!Try to understand what you are doing and when you 
understand ask for help if you cannot solve it yet.   On Thursday, May 6, 2021, 
10:27:35 PM GMT+6, Philip Pelletier  wrote:  
 
 
I get this error message on the browser at 127.0.01:8000
Environment:


Request Method: GET
Request URL: http://127.0.0.1:8000/

Django Version: 3.2.1
Python Version: 3.9.4
Installed Applications:
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'events']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware']



Traceback (most recent call last):
  File 
"C:\Users\phili\python\myclub\vert\lib\site-packages\django\core\handlers\exception.py",
 line 47, in inner
    response = get_response(request)
  File 
"C:\Users\phili\python\myclub\vert\lib\site-packages\django\utils\deprecation.py",
 line 119, in __call__
    response = self.process_response(request, response)
  File 
"C:\Users\phili\python\myclub\vert\lib\site-packages\django\middleware\clickjacking.py",
 line 26, in process_response
    if response.get('X-Frame-Options') is not None:

Exception Type: AttributeError at /
Exception Value: 'tuple' object has no attribute 'get'



-- 
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/7a861eb5-df71-4c0b-a239-82c28d18cb06n%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...@googlegroups.com.


To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1289025461.1281886.1620321964614%40mail.yahoo.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/a1e303f9-c2d4-4e1b-939c-58ccd559d576n%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/2135254379.1114876.1620325487578%40mail.yahoo.com.


Re: Looking for help installing django

2021-05-06 Thread Philip Pelletier
All I did was install and start django. I made no edits of any kind. I even 
reinstalled python and got the same problem,

On Thursday, May 6, 2021 at 1:40:29 PM UTC-4 abubak...@gmail.com wrote:

> can you please explain to me that what are you trying to do? because you 
> have explained nothing in your question about your problem
>
> On Thu, May 6, 2021 at 10:26 PM Sharif Mehedi  
> wrote:
>
>> Not very understandable, no useful information on your message body, only 
>> there's an exception!
>> Try to understand what you are doing and when you understand ask for help 
>> if you cannot solve it yet.
>> On Thursday, May 6, 2021, 10:27:35 PM GMT+6, Philip Pelletier <
>> philipp...@gmail.com> wrote: 
>>
>>
>>
>> I get this error message on the browser at 127.0.01:8000
>>
>> Environment:
>>
>>
>> Request Method: GET
>> Request URL: http://127.0.0.1:8000/
>>
>> Django Version: 3.2.1
>> Python Version: 3.9.4
>> Installed Applications:
>> ['django.contrib.admin',
>>  'django.contrib.auth',
>>  'django.contrib.contenttypes',
>>  'django.contrib.sessions',
>>  'django.contrib.messages',
>>  'django.contrib.staticfiles',
>>  'events']
>> Installed Middleware:
>> ['django.middleware.security.SecurityMiddleware',
>>  'django.contrib.sessions.middleware.SessionMiddleware',
>>  'django.middleware.common.CommonMiddleware',
>>  'django.middleware.csrf.CsrfViewMiddleware',
>>  'django.contrib.auth.middleware.AuthenticationMiddleware',
>>  'django.contrib.messages.middleware.MessageMiddleware',
>>  'django.middleware.clickjacking.XFrameOptionsMiddleware']
>>
>>
>>
>> Traceback (most recent call last):
>>   File 
>> "C:\Users\phili\python\myclub\vert\lib\site-packages\django\core\handlers\exception.py",
>>  
>> line 47, in inner
>> response = get_response(request)
>>   File 
>> "C:\Users\phili\python\myclub\vert\lib\site-packages\django\utils\deprecation.py",
>>  
>> line 119, in __call__
>> response = self.process_response(request, response)
>>   File 
>> "C:\Users\phili\python\myclub\vert\lib\site-packages\django\middleware\clickjacking.py",
>>  
>> line 26, in process_response
>> if response.get('X-Frame-Options') is not None:
>>
>> Exception Type: AttributeError at /
>> Exception Value: 'tuple' object has no attribute 'get'
>>
>> -- 
>> 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/7a861eb5-df71-4c0b-a239-82c28d18cb06n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/7a861eb5-df71-4c0b-a239-82c28d18cb06n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>> -- 
>> 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/1289025461.1281886.1620321964614%40mail.yahoo.com
>>  
>> <https://groups.google.com/d/msgid/django-users/1289025461.1281886.1620321964614%40mail.yahoo.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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/a1e303f9-c2d4-4e1b-939c-58ccd559d576n%40googlegroups.com.


Re: Looking for help installing django

2021-05-06 Thread DJANGO DEVELOPER
can you please explain to me that what are you trying to do? because you
have explained nothing in your question about your problem

On Thu, May 6, 2021 at 10:26 PM Sharif Mehedi 
wrote:

> Not very understandable, no useful information on your message body, only
> there's an exception!
> Try to understand what you are doing and when you understand ask for help
> if you cannot solve it yet.
> On Thursday, May 6, 2021, 10:27:35 PM GMT+6, Philip Pelletier <
> philippellet...@gmail.com> wrote:
>
>
>
> I get this error message on the browser at 127.0.01:8000
>
> Environment:
>
>
> Request Method: GET
> Request URL: http://127.0.0.1:8000/
>
> Django Version: 3.2.1
> Python Version: 3.9.4
> Installed Applications:
> ['django.contrib.admin',
>  'django.contrib.auth',
>  'django.contrib.contenttypes',
>  'django.contrib.sessions',
>  'django.contrib.messages',
>  'django.contrib.staticfiles',
>  'events']
> Installed Middleware:
> ['django.middleware.security.SecurityMiddleware',
>  'django.contrib.sessions.middleware.SessionMiddleware',
>  'django.middleware.common.CommonMiddleware',
>  'django.middleware.csrf.CsrfViewMiddleware',
>  'django.contrib.auth.middleware.AuthenticationMiddleware',
>  'django.contrib.messages.middleware.MessageMiddleware',
>  'django.middleware.clickjacking.XFrameOptionsMiddleware']
>
>
>
> Traceback (most recent call last):
>   File
> "C:\Users\phili\python\myclub\vert\lib\site-packages\django\core\handlers\exception.py",
> line 47, in inner
> response = get_response(request)
>   File
> "C:\Users\phili\python\myclub\vert\lib\site-packages\django\utils\deprecation.py",
> line 119, in __call__
> response = self.process_response(request, response)
>   File
> "C:\Users\phili\python\myclub\vert\lib\site-packages\django\middleware\clickjacking.py",
> line 26, in process_response
> if response.get('X-Frame-Options') is not None:
>
> Exception Type: AttributeError at /
> Exception Value: 'tuple' object has no attribute 'get'
>
> --
> 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/7a861eb5-df71-4c0b-a239-82c28d18cb06n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/7a861eb5-df71-4c0b-a239-82c28d18cb06n%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> --
> 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/1289025461.1281886.1620321964614%40mail.yahoo.com
> <https://groups.google.com/d/msgid/django-users/1289025461.1281886.1620321964614%40mail.yahoo.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAKPY9p%3DGzdAxUXOTCtKuAg%3D6LMJj_tgWMp68%3DbMpW7MZut4i6Q%40mail.gmail.com.


Re: Looking for help installing django

2021-05-06 Thread Sharif Mehedi
Not very understandable, no useful information on your message body, only 
there's an exception!Try to understand what you are doing and when you 
understand ask for help if you cannot solve it yet.   On Thursday, May 6, 2021, 
10:27:35 PM GMT+6, Philip Pelletier  wrote:  
 
 
I get this error message on the browser at 127.0.01:8000
Environment:


Request Method: GET
Request URL: http://127.0.0.1:8000/

Django Version: 3.2.1
Python Version: 3.9.4
Installed Applications:
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'events']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware']



Traceback (most recent call last):
  File 
"C:\Users\phili\python\myclub\vert\lib\site-packages\django\core\handlers\exception.py",
 line 47, in inner
    response = get_response(request)
  File 
"C:\Users\phili\python\myclub\vert\lib\site-packages\django\utils\deprecation.py",
 line 119, in __call__
    response = self.process_response(request, response)
  File 
"C:\Users\phili\python\myclub\vert\lib\site-packages\django\middleware\clickjacking.py",
 line 26, in process_response
    if response.get('X-Frame-Options') is not None:

Exception Type: AttributeError at /
Exception Value: 'tuple' object has no attribute 'get'



-- 
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/7a861eb5-df71-4c0b-a239-82c28d18cb06n%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/1289025461.1281886.1620321964614%40mail.yahoo.com.


Need help setting up django

2021-05-06 Thread Philip Pelletier



Environment:


Request Method: GET
Request URL: http://127.0.0.1:8000/

Django Version: 3.2.1
Python Version: 3.9.4
Installed Applications:
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'events']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware']

I get this error

Traceback (most recent call last):
  File 
"C:\Users\phili\python\myclub\vert\lib\site-packages\django\core\handlers\exception.py",
 
line 47, in inner
response = get_response(request)
  File 
"C:\Users\phili\python\myclub\vert\lib\site-packages\django\utils\deprecation.py",
 
line 119, in __call__
response = self.process_response(request, response)
  File 
"C:\Users\phili\python\myclub\vert\lib\site-packages\django\middleware\clickjacking.py",
 
line 26, in process_response
if response.get('X-Frame-Options') is not None:

Exception Type: AttributeError at /
Exception Value: 'tuple' object has no attribute 'get'

-- 
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/bc0a8dcc-1bcd-4e7d-a17c-eaf6b39f4533n%40googlegroups.com.


Looking for help installing django

2021-05-06 Thread Philip Pelletier

I get this error message on the browser at 127.0.01:8000

Environment:


Request Method: GET
Request URL: http://127.0.0.1:8000/

Django Version: 3.2.1
Python Version: 3.9.4
Installed Applications:
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'events']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware']



Traceback (most recent call last):
  File 
"C:\Users\phili\python\myclub\vert\lib\site-packages\django\core\handlers\exception.py",
 
line 47, in inner
response = get_response(request)
  File 
"C:\Users\phili\python\myclub\vert\lib\site-packages\django\utils\deprecation.py",
 
line 119, in __call__
response = self.process_response(request, response)
  File 
"C:\Users\phili\python\myclub\vert\lib\site-packages\django\middleware\clickjacking.py",
 
line 26, in process_response
if response.get('X-Frame-Options') is not None:

Exception Type: AttributeError at /
Exception Value: 'tuple' object has no attribute 'get'

-- 
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/7a861eb5-df71-4c0b-a239-82c28d18cb06n%40googlegroups.com.


<    1   2   3   4   5   6   7   8   9   10   >