Re: Python-django project
Thank you all for your interest!!! On Fri, Aug 7, 2020 at 2:18 PM Anu Pande wrote: > Interested. > > On Fri, Aug 7, 2020, 21:09 hajar Benjat wrote: > >> Interested >> >> On Tue, Jul 21, 2020, 4:10 AM learn code wrote: >> >>> Hi everyone, >>> >>> I am learning python and django, like to work on the projects to improve >>> more.If any one interested to join with me to work on the projects,plz send >>> me a email. >>> >>> -- >>> You received this message because you are subscribed 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/e7116e9b-9458-4f49-a638-135c4b5874e0o%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/CAMcj6WfU0_0g4qdV8LqqOVo7Lrad7HipL7QDG%3Dxc4ZTx7OHHWQ%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-users/CAMcj6WfU0_0g4qdV8LqqOVo7Lrad7HipL7QDG%3Dxc4ZTx7OHHWQ%40mail.gmail.com?utm_medium=email&utm_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/CAFWCH_rtLhqDvrJf0UCeB2PfLj-cZRzy4xtNgZkVFo-k8XJ1Bg%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAFWCH_rtLhqDvrJf0UCeB2PfLj-cZRzy4xtNgZkVFo-k8XJ1Bg%40mail.gmail.com?utm_medium=email&utm_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/CAPUBRGUKRwmCqGoDOTjbHQzSEu3ip9FBWrgse2dkjPAg1ncmrA%40mail.gmail.com.
Python-django project
Hi everyone, I am learning python and django, like to work on the projects to improve more.If any one interested to join with me to work on the projects,plz send me a email. -- You received this message because you are subscribed 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/e7116e9b-9458-4f49-a638-135c4b5874e0o%40googlegroups.com.
Re: How to add a user ratings feature in djnago application?
Hi, Thank you!! On Mon, Jun 15, 2020, 6:27 PM Kelvin Sajere wrote: > > > On Tue, Jun 16, 2020 at 02:22 learn code wrote: > >> Hi, >> >> Thank you for your reply,sorry ,still I didn't understand how to add >> ratings. >> >> On Sat, Jun 13, 2020, 2:29 PM Gs_1001 wrote: >> >>> Hey, >>> >>> A rating feature for a peer reviewed books website would look somewhat >>> like: >>> - A books model having "no_of_reviews" and "rating" field >>> >>> Every time a user rates a book no_of_reviews field would be incremented >>> and rating field would be updated. >>> >>> If you think I somehow missed the point then please let me know. >>> >>> On Sunday, June 14, 2020 at 12:37:05 AM UTC+5:30, learn code wrote: >>>> >>>> Hello Everyone, >>>> >>>> Can anyone tell me how to add a star rating feature in Django >>>> application? >>>> >>> -- >>> You received this message because you are subscribed 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/dcce83fc-5925-4587-9ed6-d6884cd85b39o%40googlegroups.com >>> <https://groups.google.com/d/msgid/django-users/dcce83fc-5925-4587-9ed6-d6884cd85b39o%40googlegroups.com?utm_medium=email&utm_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/CAPUBRGXuHCwuyZFzwQvdcYdYeofAjcrnwqGkigMwCj109TMnsw%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-users/CAPUBRGXuHCwuyZFzwQvdcYdYeofAjcrnwqGkigMwCj109TMnsw%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . > > > > It seems you would like something already done, rather than the concept of > having to construct it yourself.. If that’s the case, then just use a ready > made app. Django star ratings. Read and understand the documentation, and > you are good to go. I used this in one of my app. > >> >> -- > 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/CADYqDX1-jnUUqyAwbPXOMwpL2k%2BQTxWNEVYu5jYEjeMahHopXQ%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CADYqDX1-jnUUqyAwbPXOMwpL2k%2BQTxWNEVYu5jYEjeMahHopXQ%40mail.gmail.com?utm_medium=email&utm_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/CAPUBRGXAHb1Gicb%3DqZXP%2B9buSp3wLbo9h5msrLnFJmYwuwsbOw%40mail.gmail.com.
Re: How to add a user ratings feature in djnago application?
Hi, Thank you for your reply,sorry ,still I didn't understand how to add ratings. On Sat, Jun 13, 2020, 2:29 PM Gs_1001 wrote: > Hey, > > A rating feature for a peer reviewed books website would look somewhat > like: > - A books model having "no_of_reviews" and "rating" field > > Every time a user rates a book no_of_reviews field would be incremented > and rating field would be updated. > > If you think I somehow missed the point then please let me know. > > On Sunday, June 14, 2020 at 12:37:05 AM UTC+5:30, learn code wrote: >> >> Hello Everyone, >> >> Can anyone tell me how to add a star rating feature in Django application? >> > -- > You received this message because you are subscribed 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/dcce83fc-5925-4587-9ed6-d6884cd85b39o%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/dcce83fc-5925-4587-9ed6-d6884cd85b39o%40googlegroups.com?utm_medium=email&utm_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/CAPUBRGXuHCwuyZFzwQvdcYdYeofAjcrnwqGkigMwCj109TMnsw%40mail.gmail.com.
Re: How to add a user ratings feature in djnago application?
Thank you for your reply. Can you tell me more details how can I do that? On Sat, Jun 13, 2020, 12:21 PM Rupesh Dahal wrote: > You can save rating on database and show them with the help of JS. > > On Sun, Jun 14, 2020 at 12:52 AM learn code > wrote: > >> Hello Everyone, >> >> Can anyone tell me how to add a star rating feature in Django application? >> >> -- >> You received this message because you are subscribed 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/ec01e0d3-78d3-4bd4-9dc0-ff9ec0da1866o%40googlegroups.com >> <https://groups.google.com/d/msgid/django-users/ec01e0d3-78d3-4bd4-9dc0-ff9ec0da1866o%40googlegroups.com?utm_medium=email&utm_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/CAC-WMxm2MosgKr4amv5A0SkWOXGGOWxLXKn3Dya_o%2BAHk7WymQ%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAC-WMxm2MosgKr4amv5A0SkWOXGGOWxLXKn3Dya_o%2BAHk7WymQ%40mail.gmail.com?utm_medium=email&utm_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/CAPUBRGUHS1Q4MQrzwS64WA7pXnmCWfDgtQ-LhmUAeLwQTL6C9g%40mail.gmail.com.
How to add a user ratings feature in djnago application?
Hello Everyone, Can anyone tell me how to add a star rating feature in Django application? -- You received this message because you are subscribed 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/ec01e0d3-78d3-4bd4-9dc0-ff9ec0da1866o%40googlegroups.com.
Re: How to display calendar in django webapplication?
Thank you!!! On Thu, Jun 11, 2020, 6:18 AM Perceval Maturure wrote: > check this one too > https://www.huiwenteo.com/normal/2018/07/24/django-calendar.html > > On Thu, Jun 11, 2020 at 2:05 AM learn code > wrote: > >> Thank you so much!!! >> >> On Wed, Jun 10, 2020 at 2:46 PM Miracle wrote: >> >>> Check this project pinax calendars >>> https://github.com/pinax/pinax-calendars >>> >>> On Wed, 10 Jun 2020, 10:43 pm learn code, >>> wrote: >>> >>>> Hi everyone, >>>> >>>> I'm working on a website. In that, I need to display available dates >>>> and timings dynamically. Anyone knows please help me. >>>> >>>> -- >>>> You received this message because you are subscribed 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/6ac935a7-5602-4539-84dd-d746b943823do%40googlegroups.com >>>> <https://groups.google.com/d/msgid/django-users/6ac935a7-5602-4539-84dd-d746b943823do%40googlegroups.com?utm_medium=email&utm_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/CADZv-jC3odzF2ip-mqr2_avz9nF00g-v%2BorVF3Owjbq14KE8Vw%40mail.gmail.com >>> <https://groups.google.com/d/msgid/django-users/CADZv-jC3odzF2ip-mqr2_avz9nF00g-v%2BorVF3Owjbq14KE8Vw%40mail.gmail.com?utm_medium=email&utm_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/CAPUBRGVMxcvCb-mOSyBxy_hBVOxEL%2Bz%2B9_SYhiCouhkPq42q4Q%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-users/CAPUBRGVMxcvCb-mOSyBxy_hBVOxEL%2Bz%2B9_SYhiCouhkPq42q4Q%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > > > -- > *Perceval Maturure* > > *083 303 9423* > > -- > You received this message because you are subscribed 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/CAFZtZmDuZZqjej4kdwLVhC62bMJdzJeTpbOSCbpqXrCMEFGSFg%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAFZtZmDuZZqjej4kdwLVhC62bMJdzJeTpbOSCbpqXrCMEFGSFg%40mail.gmail.com?utm_medium=email&utm_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/CAPUBRGWyBCHC_%2BACTBt6h0O_JZinhmJdj5zBXZT_VnXX3udPyg%40mail.gmail.com.
Re: How to display calendar in django webapplication?
Thank you so much!!! On Wed, Jun 10, 2020 at 2:46 PM Miracle wrote: > Check this project pinax calendars > https://github.com/pinax/pinax-calendars > > On Wed, 10 Jun 2020, 10:43 pm learn code, wrote: > >> Hi everyone, >> >> I'm working on a website. In that, I need to display available dates and >> timings dynamically. Anyone knows please help me. >> >> -- >> You received this message because you are subscribed 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/6ac935a7-5602-4539-84dd-d746b943823do%40googlegroups.com >> <https://groups.google.com/d/msgid/django-users/6ac935a7-5602-4539-84dd-d746b943823do%40googlegroups.com?utm_medium=email&utm_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/CADZv-jC3odzF2ip-mqr2_avz9nF00g-v%2BorVF3Owjbq14KE8Vw%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CADZv-jC3odzF2ip-mqr2_avz9nF00g-v%2BorVF3Owjbq14KE8Vw%40mail.gmail.com?utm_medium=email&utm_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/CAPUBRGVMxcvCb-mOSyBxy_hBVOxEL%2Bz%2B9_SYhiCouhkPq42q4Q%40mail.gmail.com.
How to display calendar in django webapplication?
Hi everyone, I'm working on a website. In that, I need to display available dates and timings dynamically. Anyone knows please help me. -- You received this message because you are subscribed 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/6ac935a7-5602-4539-84dd-d746b943823do%40googlegroups.com.
Multiple checkboxes are not working,it is showing selected choice isn't a valid choice.
Hello, I'm working on a application form it has multiple checkboxes,when I submit the form it is showing selected choice isn't a valid choice. If anyone knows how to use checkboxes in ModelForm plz help me. Models.py class Application(models.Model): STATE_CHOICES =( ("1","Alabama"),("2","Alaska"),("3","Arizona"),("4","Arkansas"),("5", "California"),("6","Colorado"), ("7","Connecticut"),("8","Delaware"),("9","Florida"),("10","Georgia"),( "11","Hawaii"),("12","Idaho"), ("13","Illinois"),("14","Indiana"),("15","Iowa"),("16","Kansas"),("17", "Kentucky"),("18","Louisiana"), ("19","Maine"),("20","Maryland"),("21","Massachusetts"),("22","Michigan" ),("23","Minnesota"),("24","Mississippi"), ("25","Missouri"),("26","Montana"),("27","Nebraska"),("28","Nevada"),( "29","New Hampshire"),("30","New Jersey"), ("31","New Mexico"),("32","New York"),("33","North Carolina"),("34", "North Dakota"),("35","Ohio"), ("36","Oklahoma"),("37","Oregon"),("38","Pennsylvania"),("39", "Rhode Island"),("40","South Carolina"), ("41","South Dakota"),("42","Tennessee"),("43","Texas"),("44","Utah"),( "45","Vermont"),("46","Virginia"), ("47","Washington"),("48","West Virginia"),("49","Wisconsin"),("50", "Wyoming"), ) GENDER_CHOICES=( ('male','Male'), ('female','Female'), ) k=( ('yes','Yes'), ('no','No'), ) degree=( ('yes','Yes'), ('no','No'), ) classroom=( ('yes','Yes'), ('no','No'), ) genres1=( ('classical','Classical'), ('rock','Rock'), ('musical Theater','Musical Theater'), ('country','country'), ('blues','Blues'), ('christian Contemporary','Christian Contemporary'), ('gospel','Gospel'), ('other','Other'), ) languages1=( ('english','English'), ('spanish','Spanish'), ('german','German'), ('chinese','Chinese'), ('hindi','Hindi'), ('french','French'), ('russian','Russian'), ('turkish','Turkish'), ) firstname=models.CharField(max_length=50) lastname=models.CharField(max_length=50) Email=models.EmailField() phonenumber=models.CharField(max_length=15) password = models.CharField(max_length=100) confirm_password=models.CharField(max_length=100) address1 = models.CharField(max_length=100) address2 = models.CharField(max_length=100) state = models.CharField(max_length=100,choices=STATE_CHOICES) city = models.CharField(max_length=100) zipcode=models.CharField(max_length=15) DOB=models.DateField() Gender=models.CharField(max_length=50,choices=GENDER_CHOICES) k=models.CharField(max_length=50,choices=k) degree=models.CharField(max_length=50,choices=degree) classroom=models.CharField(max_length=50,choices=classroom) genres=models.CharField(max_length=50, choices=genres1) languages=models.CharField(max_length=50, choices=languages1) created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True) application_field = models.SlugField(max_length = 200) def __str__(self): return self.firstname .. Views.py from django.shortcuts import render,redirect, get_object_or_404 from onlinetutors.models import Category,tutors from .forms import application from .models import Application Create your views here. def registration(request): if request.method == 'POST': form=application(request.POST) if form.is_valid(): form.save() print("Hello") firstname=form.cleaned_data['firstname'] lastname=form.cleaned_data['lastname'] Email=form.cleaned_data['Email'] phonenumber=form.cleaned_data['phonenumber'] password = form.cleaned_data['password'] confirm_password=form.cleaned_data['confirm_password'] address1 = form.cleaned_data['address1'] address2 = form.cleaned_data['address2'] state = form.cleaned_data['state'] city =form.cleaned_data['city'] zipcode=form.cleaned_data['zipcode'] DOB=form.cleaned_data['DOB'] Gender=form.cleaned_data['Gender'] k=form.cleaned_data['k'] degree=form.cleaned_data['degree'] classroom=form.cleaned_data['classroom'] genres=form.cleaned_data['genres'] languages=form.cleaned_data['languages'] form=Application(firstname=firstname,lastname=lastname,Email = Email,phonenumber=phonenumber, password=password,address1=address1,address2=address2, state = state,city=city,zipcode=zipcode, DOB=DOB,Gender=Gender,k=k,degree=degree,classroom=classroom, languages=languages,genres=genres) form.save() return redirect("/thankyou/") else: form=application() return render(request,"registration.html",{"form":form}) forms.p