Re: " AttributeError at /register/ " facing problem in implementing user registration

2020-05-24 Thread Kasper Laudrup
Hi Madhav, On 24/05/2020 04.54, Madhav Nandan wrote: Hi, I need help here. I did the required changes in forms.py as well as in view.py but my user registration still not working. Once again, try to make sense from the error messages. They are actually pointing to your problem quite

JSON data

2020-05-24 Thread HJ
hello guys hope you are doing well I am trying to make a highchart but I found a problem in the view function so my chart doesn't show becuase of that view function def jsonDepend(request): dataset = mail_item_countries_depend.objects.all().values('exped','destin', 'count') data =

403 Forbidden

2020-05-24 Thread sunday honesty
Trust you're doing great guys! Please can someone help with the template name where 403 forbidden message that always displays when you raise PermissionDenied. I want to customize the message that should display... I have tried 403.html in my registration folder inside my templates folder but

Re: 403 Forbidden

2020-05-24 Thread Kasper Laudrup
Hi Sunday, On 24/05/2020 13.46, sunday honesty wrote: Trust you're doing great guys! Please can someone help with the template name where 403 forbidden message that always displays when you raise PermissionDenied. I want to customize the message that should display... I have tried 403.html in

Re: 403 Forbidden

2020-05-24 Thread Kasper Laudrup
Hi Sunday, On 24/05/2020 15.04, sunday honesty wrote: What I mean is that it's still outputting the default " 403 forbidden" and not using any custom template. If it's because default=True in my settings, why did my other custom template at "templates/registration/... displayed? OK. That

Re: 403 Forbidden

2020-05-24 Thread sunday honesty
Yes, I have both custom password_reset_email.html and password_reset_subject.txt at /registration/... But are you sure the correct name is 403.html? On Sun, May 24, 2020, 2:11 PM Kasper Laudrup wrote: > Hi Sunday, > > On 24/05/2020 15.04, sunday honesty wrote: > > What I mean is that it's

Re: " AttributeError at /register/ " facing problem in implementing user registration

2020-05-24 Thread Kasper Laudrup
Hi Madhav, On 24/05/2020 13.08, Madhav Nandan wrote: I'm creating a register page. see the screenshot below., I'm following lectures and doing as instructed but still stuck. I don't see how the screenshots are related to the issue you are having. Please explain. here is the source code

Re: 403 Forbidden

2020-05-24 Thread sunday honesty
What I mean is that it's still outputting the default " 403 forbidden" and not using any custom template. If it's because default=True in my settings, why did my other custom template at "templates/registration/... displayed? On Sun, May 24, 2020, 1:59 PM Kasper Laudrup wrote: > Hi Sunday, > >

Error while trying to send email for password reset

2020-05-24 Thread sunday honesty
I got the following error while trying to send email with send grid smtp UnicodeEncodeError: 'ascii' codec can't encode character '\u2020' in position 168: ordinal not in range(128) -- You received this message because you are subscribed to the Google Groups "Django users" group. To

function model which generate a code for model field

2020-05-24 Thread Anselme SERI
> > from django.db import models > > > def codeid(): > lastid = MyModel.objects.last(id) > autocode = '' > if lastid == 0: > autocode = 'BAC1' > elif lastid != 0: > if len(lastid) <= 8: > lastid += 1 > autocode = 'D/BAC/' +

Re: 403 Forbidden

2020-05-24 Thread Kasper Laudrup
Hi Sunday, On 24/05/2020 15.17, sunday honesty wrote: Yes, I have both custom password_reset_email.html and password_reset_subject.txt at /registration/... But are you sure the correct name is 403.html? That makes sense. You don't have custom *error* pages, but custom registration pages.

Re: JSON data

2020-05-24 Thread Saurabh Adhikary
data = [{"exped": "MA", "destin": "AL", "count": 2}, {"exped": "MA", "destin": "BS", "count": 1}] mylist = [] for a in data : mylist.append([a['exped'],a['destin'],a['count']]) On Sunday, 24 May 2020 17:16:46 UTC+5:30, HJ wrote: > > hello guys hope you are doing well > > I am trying to

What is considered copyright when it comes to building a website?

2020-05-24 Thread Adam Scerra
I understand that many CSS style sheets are passed around and shared frequently across the web. My question is when does leveraging someone else's web page code become illegal? Example here is: Finding a website that I would like to emulate. Copying their HTML files and CSS files. Editing the

Re: Template Variations title not showing

2020-05-24 Thread Ahmed Khairy
Helloo, Check my views in this question link, it might be useful On Saturday, May 23, 2020 at 1:35:32 AM UTC-4, oldtimer wrote: > > I cannot get variations or I tried model forms for options as well and > cannot get either to add to the cart. I can get both to display as options > on the

Re: Template Variations title not showing

2020-05-24 Thread Ahmed Khairy
here is the link https://groups.google.com/forum/#!topic/django-users/5SckOumQLQM On Sunday, May 24, 2020 at 10:38:18 PM UTC-4, Ahmed Khairy wrote: > > Helloo, > > Check my views in this question link, it might be useful > > On Saturday, May 23, 2020 at 1:35:32 AM UTC-4, oldtimer wrote: >> >> I

RE: Error while trying to send email for password reset

2020-05-24 Thread Vishesh Mangla
\u...    represents a Unicode character and you are using an ascii-decoder to decode it.Consider using encoding=”utf-8”. Sent from Mail for Windows 10 From: sunday honestySent: 24 May 2020 21:09To: Django usersSubject: Error while trying to send email for password reset I got the following error

Re: What is considered copyright when it comes to building a website?

2020-05-24 Thread Mike Dewhirst
If you listen to Tim Berners-Lee, the design of web browsers should always enable revealing the source of the page for the prime purpose of educating others to develop websites. It is designed in. If you are concerned, drop them a line and congratulate them on a good layout and thank them for

aws s3 file upload without imagefiled and filefield

2020-05-24 Thread Parampal Singh
please help -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit

Changing in the Quantity of variants reflecting in the wrong item in Order Summary

2020-05-24 Thread Ahmed Khairy
Helloo, I have a problem with the variations and the quantity related to it in the order summary page. It was working perfectly and all of a sudden (this is an example to simplify): when I add to the cart 2 items: - Item X with a size small - Item X with a size medium When I change the

Issue with CRUD Operation

2020-05-24 Thread Ifeanyi Chielo
Hello, I performed a CRUD operation and every thing is working well except two things 1. my insert form does not clear the text boxes after saving a record 2. my delete operation renders an error page after deleting a record with a message ''DoesNotExist at /delete/3/" or "AttributeError at

aws s3 file upload without imagefiled and filefield

2020-05-24 Thread Parampal Singh
*first sorry for weak English* *in code * *im get image from url * *save like that* #load image in skimage libray img = io.imread(poster) #to edit image opencv convert colors to rgb img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) #now load logo logo = cv2.imread("static/assets/logo_o.jpg") h_img,

Re: function model which generate a code for model field

2020-05-24 Thread Kasper Laudrup
Hi Anselme, On 24/05/2020 17.48, Anselme SERI wrote: I try  to to write a correct function for my model which  generate a str + incremental number according last id model. Your code is obviously wrong for quite a few reasons, but I at least simply cannot understand what you are trying to