Developing E - Commerce Website

2019-07-23 Thread Lim Kai Wey
Greetings, A new Django user here. I would like to ask if anyone could recommend any guides or tips in developing the functionalities in an E-Commerce website e.g.( Add to Cart). As well as the model setup for the products, is it better to have the all the products underneath one model OR it i

Re: let the previous file as it is now i am doing another one and it is showing same problem

2019-07-23 Thread Lim Kai Wey
To Ajeet, I believe this tutorial may help you understand authentication implementations. It won’t ultimately be your end user registrations but it’s a basic start. Link: https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Authentication Regards, Kai Wey On Tue, Jul 23, 2019 at 7:

Re: Developing E - Commerce Website

2019-07-23 Thread Lim Kai Wey
To Daniel, Thank you so much for your recommendation! I’ll go check it out! :) Regards, Kai Wey -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+un

Re: Developing E - Commerce Website

2019-07-23 Thread Lim Kai Wey
Alright, thank you guys so much for the resources! I’ll take a look into them! Thank you guys so much for helping! :) Regards, Kai Wey -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from

Re: about Django tutorial

2019-07-24 Thread Lim Kai Wey
To 田村佑太, *Is it fine if you show use your urls.py in the polls app as well? I believe the problem is caused from there. * *Regards,* *Kai Wey* On Wed, Jul 24, 2019 at 7:03 PM 田村佑太 wrote: > Using the URLconf defined in mysite.urls, Django tried these URL > patterns, in this order: > >1. ad

Re: How to access first_name ad last_name in extended User model

2019-07-24 Thread Lim Kai Wey
To pastufrazio, I believe instead of OneToOneField, you should try using, user = models.ForeignKey( settings.AUTH_USER_MODEL, on_delete=models.CASCADE, ) Since the authentication is imported. Regards, Kai Wey -- You received this message because you are subscribed to the G

Re: Writing your first Django app, part 1 - Can't Follow it

2019-07-31 Thread Lim Kai Wey
To Sammy, Are you sure your urls.py is in the correct file directory? As in it should be in mysite/mysite/urls.py instead of mysite/urls.py Regards, Kai Wey -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and sto

Re:

2019-07-31 Thread Lim Kai Wey
I’m not sure this could help your situation but it did solve mine for Photo Uploading, since uploading images and files are similar. Hope it helps! https://stackoverflow.com/questions/34006994/how-to-upload-multiple-images-to-a-blog-post-in-django Regards, Kai Wey -- You received this message b

Re: Writing your first Django app, part 1 - Can't Follow it

2019-07-31 Thread Lim Kai Wey
Sammy, would you mind attaching the whole project folder? Thanks Regards, Kai Wey -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googl

Re: Error arises again and again\

2019-08-01 Thread Lim Kai Wey
如果有需要, 我能帮忙翻译,看你俩聊好像有点痛苦。 Translation: I can help translate if you guys want... I don’t mind translating Regards, Kai Wey -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an

Re: Error arises again and again\

2019-08-01 Thread Lim Kai Wey
哈哈哈 我真不介意,大家都来这学习嘛。互相帮忙是应该的。 Translation: I really don’t mind translating, this is where we all learn. It’s a must to help each other out. Ps. The three letters he said translate that I’m a nice person Regards, Kai Wey -- You received this message because you are subscribed to the Google Group

Re: Error arises again and again\

2019-08-01 Thread Lim Kai Wey
请翻译 : 问题是由于python2.7 和python3.6 之间的版本差异导致的。 这位小兄弟在使用python3.6 的版本。加载一个python2.7 版本的包。django-common。 需要寻找这个包的python3.6 版本, 如果没有这个版本的话 就需要寻找其他的解决方案。 Translates: The problem is due to the difference between the Python version 2.7 and 3.6. Because you’re using Python 3.6, you’ll have to have another P

Re: Error arises again and again\

2019-08-01 Thread Lim Kai Wey
> > I want to build the follow system in my website how i can do that >> > beacuse i am using that ajax so that i can > building follow system > and i am learning from https://learning.oreilly.com/library/view/django-2-by/9781788472487/d61f6f4a-a9f1-4f9f-b0eb-18ae1518a2dd.xhtml 翻译: 他说,他需要用那系统来

Re: Error arises again and again\

2019-08-01 Thread Lim Kai Wey
他还有问要怎么弄才行。 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.g

Re: Error arises again and again\

2019-08-01 Thread Lim Kai Wey
我找了一篇帖子 主要讲如何在django 中使用ajax 来实现前端和后端的通信。 可以参考一下这篇帖子 https://blog.csdn.net/IqqIqqIqqIqq/article/details/52160662 当然这篇帖子中有一部分内容是中文。但是代码逻辑是相同的。 Translate: I found an article, that mainly teaches the backend and frontend between Django and Ajax. Although the article is in mandarin, but the logic of t

Re: Error arises again and again\

2019-08-01 Thread Lim Kai Wey
他说,他要在他社交网站弄个 用户关注 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://g

Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Lim Kai Wey
I do agree that you Sammy could try changing the mysite/mysite/setting.py INSTALLED_APPS=[ 'polls.apps.PollsConfig', The rest of the code """ ] And I too was wondering if he placed 'polls/' as his URL in mysite/polls/urls.py that cause the error

Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Lim Kai Wey
Besides that, I do recommend Morzilla's Django Tutorial too, as it covers more in the tutorial compared to Django's own tutorial. Link: https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Tutorial_local_library_website Regards, Kai Wey On Thu, Aug 1, 2019 at 6:35 PM L

Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Lim Kai Wey
Glad it all worked out. Good luck at your journey. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discus

3D Object Interaction

2019-08-21 Thread Lim Kai Wey
Greetings, I would like to ask if anyone has a suggested way for creating a 3D object which can be interacted with on Django. Any suggestions are welcomed. Thanks in advance. Regards, Kai Wey -- You received this message because you are subscribed to the Google Groups "Django users" group. To

3D Object Interaction

2019-08-23 Thread Lim Kai Wey
Greetings, I would like to ask if anyone has a suggested way for creating a 3D object which can be interacted with on Django. Any suggestions are welcomed. Thanks in advance. Regards, Kai Wey -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: 3D Object Interaction

2019-08-24 Thread Lim Kai Wey
To Thiago, No I certainly have not. Thank you for the recommendation, I’ll check it out. Regards, Kai Wey -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to djang

Re: Please help me in views.py

2019-09-04 Thread Lim Kai Wey
Hey Amit, I suggest you to follow this tutorial to build your project, https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Tutorial_local_library_website It teaches you all the basics that you need to know from scratch, which in my opinion will answer all the questions you're asking

Re: calling index.html

2019-09-28 Thread Lim Kai Wey
Greetings Müller, In order for your template to load for that specific page, you have to state it under that page’s view in views.py Eg: class IndexView(): template_name = “index.html” // Or if it’s a function view def index(request): return render(request, 'app/index.html', context

Re: calling index.html

2019-09-28 Thread Lim Kai Wey
Note: Nonetheless, you should read more about the documentation or the tutorials available since everything you need to start you first Django project is already there. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this gro

Changing Queryset into String

2020-01-24 Thread Lim Kai Wey
Greetings everyone, I would like to ask if anyone knows how to convert my queryset into string or if there is a better approach to what I am trying to accomplish. In theory, I am trying to assign all the text into a variable and tokenize the whole string so that I can find the top 10 most comm