Add search to my blog app

2020-05-20 Thread sunday honesty
Hello everyone! I have got a question. I am a Django beginner trying to build my first web app after completing a book. I made an app I called developers forum where authenticated users can post something like question or code achievement and another can comment in form of answer. I want to

Re: Add search to my blog app

2020-05-20 Thread sunday honesty
I don't know JavaScript On Wed, May 20, 2020, 5:25 PM Vishesh Mangla wrote: > Hi if you want a search bar you need javascript which will do the dynamic > stuff. Add an event listener to you of html and use > “change” as the event. Then you need to insert and remove elements on the > DOM based

RE: Re: NEW TO DJANGO

2020-05-20 Thread Vishesh Mangla
Haven’t you used the redirect() function in Django? Sent from Mail for Windows 10 From: Madhav NandanSent: 20 May 2020 22:19To: Django usersSubject: Re: NEW TO DJANGO I need to know what I should do so that once I click a hyperlink, it will redirect me to a payment page and I need to make a

RE: Re: Add search to my blog app

2020-05-20 Thread Vishesh Mangla
Then you have a better option to learn react(a frontend framework for _javascript_). You cannot do dynamic stuff on the web without using _javascript_. Sent from Mail for Windows 10 From: sunday honestySent: 20 May 2020 21:57To: django-users@googlegroups.comSubject: Re: Add search to my blog app I

Re: Can you help me out?

2020-05-20 Thread Suraj Thapa FC
Django channels On Wed, 20 May, 2020, 9:07 pm chaitanya orakala, wrote: > Hi Meera, > Please go through this link, it might help you > https://chatterbot.readthedocs.io/en/stable/django/ > > how ever if you are ok with third-party applications, you can choose > Zendesk or Drift. > > Thank You

RE: Add search to my blog app

2020-05-20 Thread Vishesh Mangla
Hi if you want a search bar you need _javascript_ which will do the dynamic stuff. Add an event listener to you of html and use “change” as the event. Then you need to insert and remove elements on the DOM based on the text in the search box. For more info ask on  https://webchat.freenode.net/ in

Re: NEW TO DJANGO

2020-05-20 Thread Madhav Nandan
I need to know what I should do so that once I click a hyperlink, it will redirect me to a payment page and I need to make a working payment option like paypal integration or razorpay integration. I did installed sdk, I made account on razorpay. what next? thanks for response. > > *From:

RE: Re: NEW TO DJANGO

2020-05-20 Thread Vishesh Mangla
  Sent from Mail for Windows 10 From: Madhav NandanSent: 20 May 2020 22:19To: Django usersSubject: Re: NEW TO DJANGO I need to know what I should do so that once I click a hyperlink, it will redirect me to a payment page and I need to make a working payment option like paypal integration or

Add search to my blog app

2020-05-20 Thread Ali Ahammad
At first you should make search search template where you should put what and how you want display Then you should write a views.py function where you should use query=request.GET[‘queer’] Object_list=Post.objects.filter(title__icontains=query) *same for the content If you want and then you

RE: Add search to my blog app

2020-05-20 Thread Vishesh Mangla
Or one thing you can do w/o _javascript_, that is send a post request to the server through a form and then redirect to a view with a blog matching that search query.  Template: {{csrf_token}} //see the correct template tagSubmit Views:def index(request):    if request.method ==”POST”:   

RE: Add search to my blog app

2020-05-20 Thread Vishesh Mangla
_javascript_ it that needs to be done dynamically otherwise redirect() Sent from Mail for Windows 10 From: Ali AhammadSent: 20 May 2020 22:32To: Django usersSubject: Add search to my blog app At first you should make search search template where you should put what and how you want display Then

Can you help me out?

2020-05-20 Thread meera gangani
I create a chatroom in django Please let me help if you know how to do it? Otherwise you can tell me a library so at least I can do it myself? Thanking You -Meera -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Re: HOW TO PROTECT SOURCE CODE DEPLOYED TO A REMOTE SERVER

2020-05-20 Thread James Shen
try to deploy using a container technology like a docker , only expose port 80, and keep the login to SSH to yourself. On Wed, May 20, 2020 at 4:54 PM John McClain wrote: > Hello Sunday, > > I wonder if you could deploy to git and use one of the licenses there to > protect the code. I think

how to show blog posts according to categories and the list of categories in html template?

2020-05-20 Thread Ali Ahammad
0 1 i am trying to make site with django and want to categorize each post and a category list. in the category list every category name will be shown as a list and every category name will be linked to the posts according to their categories.

Re: Reverse for 'display_data' not found. 'display_data' is not a valid view function or pattern name

2020-05-20 Thread Jorge Gimeno
On Tue, May 19, 2020 at 10:56 PM ratnadeep ray wrote: > Hi all, > > I am getting the below error when I am trying to load the home page: > Reverse for 'display_data' not found. 'display_data' is not a valid view > function or pattern name > > My views.py file is as follows: > > > >> def

Re: HOW TO PROTECT SOURCE CODE DEPLOYED TO A REMOTE SERVER

2020-05-20 Thread Sunday Iyanu Ajayi
Thank you so much. I really appreciate *AJAYI Sunday * (+234) 806 771 5394 *sunnexaj...@gmail.com * On Wed, May 20, 2020 at 7:18 AM Derek wrote: > Yes - short answer is you cannot really "protect" Python code directly > (see: https://python-compiler.com/post/how-to-distribute-python-program )

Re: Can you help me out?

2020-05-20 Thread chaitanya orakala
Hi Meera, Please go through this link, it might help you https://chatterbot.readthedocs.io/en/stable/django/ how ever if you are ok with third-party applications, you can choose Zendesk or Drift. Thank You On Wed, May 20, 2020 at 11:19 AM meera gangani wrote: > I create a chatroom in django

Re: Add search to my blog app

2020-05-20 Thread sachin chaurasiya
>From which book you have had learnt django On Wed, May 20, 2020, 9:46 PM sunday honesty wrote: > Hello everyone! I have got a question. I am a Django beginner trying to > build my first web app after completing a book. > > I made an app I called developers forum where authenticated users can

TypeError: __init__() got an unexpected keyword argument 'Null'

2020-05-20 Thread hajar
hello django users , I hope u r doing well ! why can't I use Null in this case of foreign key , I hope you can see the picture below that's my class and the error [image: err.png] -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Django foreign-key cannot assign must be a instance

2020-05-20 Thread saqlain abbas
try to pass -1.0 On Tue, May 19, 2020 at 1:08 PM Aldian Fazrihady wrote: > replace > ``` > Report.objects.create(param=test_name,comp=compon,value=test_value) > ``` > with > ``` > Report.objects.create(param=test_name,comp_id=compon,value=test_value) > ``` > > On Tue, May 19, 2020 at 2:39 PM

Re: TypeError: __init__() got an unexpected keyword argument 'Null'

2020-05-20 Thread Jorge Gimeno
Similar to keys in a dictionary, keyword argument names are case sensitive. Try to pass in the lowercase version 'null': Raison_Non_Delivery_cd = models.ForeignKey(Raison, on_delete=models.CASCADE, related_name='raisonNonDelivery', null=True) -Jorge On Wed, May 20, 2020 at 5:05 PM hajar

How to invoke Sub Form which have MULTIPLE OPTIONS to choose inside Django Form.

2020-05-20 Thread Sai
Hi Everyone, I am pretty much familiar with Django Forms with models. I want to build a Submit Form which consists of attributes like UserName, Email, address field and 3 options to select the packages, for example, Basic, Standard, and Advanced. I have gone through Django Docs but there is

Please help me out?

2020-05-20 Thread meera gangani
I want to mark the attendance of employee using ip address or any other way can you please help me out of the situation? Thanking You, Meera. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

RE: Please help me out?

2020-05-20 Thread Vishesh Mangla
You need to look at the “header” of the request object for those details. Sent from Mail for Windows 10 From: meera ganganiSent: 21 May 2020 10:39To: django-users@googlegroups.comSubject: Please help me out? I want to mark the attendance of employee using ip address or any other waycan you please

Re: How to invoke Sub Form which have MULTIPLE OPTIONS to choose inside Django Form.

2020-05-20 Thread chaitanya orakala
Thank you for your response. I see some javascript inside the form. I am not fully aware of it. is there any template which I can use in forms?? On Thu, May 21, 2020 at 1:22 AM Vishesh Mangla wrote: > #template > > > Volvo > Saab > Opel > Audi > > > > > > > > > > > > > > > > > >

RE: How to invoke Sub Form which have MULTIPLE OPTIONS to choose inside Django Form.

2020-05-20 Thread Vishesh Mangla
#template   


Re: Can't Fix the No Reverse Error in Ajax

2020-05-20 Thread Motaz Hejaze
Change your ajax method from "post" to "get" , you are not submitting any data to use post . Also change the method in your form too , and share the error message please. On Wed, 20 May 2020, 6:18 am Ahmed Khairy, wrote: > Do you mean that this line should be changed? > >

Re: HOW TO PROTECT SOURCE CODE DEPLOYED TO A REMOTE SERVER

2020-05-20 Thread Mike Dewhirst
On 20/05/2020 4:17 pm, Derek wrote: Yes - short answer is you cannot really "protect" Python code directly (see: https://python-compiler.com/post/how-to-distribute-python-program ) Long answer - don't sell your code to anyone that you do not trust with it.  Obviously, there is a legal route,

Re: HOW TO PROTECT SOURCE CODE DEPLOYED TO A REMOTE SERVER

2020-05-20 Thread Derek
Yes - short answer is you cannot really "protect" Python code directly (see: https://python-compiler.com/post/how-to-distribute-python-program ) Long answer - don't sell your code to anyone that you do not trust with it. Obviously, there is a legal route, but there is also the "name and

Getting the except django.core.exceptions.ImproperlyConfigured while querying DB

2020-05-20 Thread ratnadeep ray
I am trying to fetch a few rows from the DB using the following code in my views.py: from django.http import HttpResponsefrom django.shortcuts import renderfrom fusioncharts.models import QRC_DB def display_data(request,component): query_results =

Re: HOW TO PROTECT SOURCE CODE DEPLOYED TO A REMOTE SERVER

2020-05-20 Thread John McClain
Hello Sunday, I wonder if you could deploy to git and use one of the licenses there to protect the code. I think they would be bound by the use the license permits. Have you looked at this as a possibility? John On Tue, 19 May 2020 at 02:35, Sunday Iyanu Ajayi wrote: > I get your point but my

Re: how to use youtube links in my website

2020-05-20 Thread Christian Ledermann
I would retrieve the RSS from YouTube, and process it server side with feedparser and render it in django https://pypi.org/project/feedparser/ https://feeder.co/knowledge-base/rss-feed-creation/youtube-rss/ On Sat, 16 May 2020 at 01:35, John McClain wrote: > Can't you just use the script in

RE: Re: how to use youtube links in my website

2020-05-20 Thread Vishesh Mangla
 Why just you not use the html5 video tag?Sent from Mail for Windows 10 From: Christian LedermannSent: 20 May 2020 15:16To: django-users@googlegroups.comSubject: Re: how to use youtube links in my website I would retrieve the RSS from YouTube, and process it server side with feedparser and render

Re: Can't Fix the No Reverse Error in Ajax

2020-05-20 Thread Hella Nick
是的,正确的写法为 Like Motaz Hejaze 于2020年5月20日周三 下午2:06写道: > Change your ajax method from "post" to "get" , you are not submitting any > data to use post . > > Also change the method in your form too , and share the error message > please. > > On Wed, 20 May 2020, 6:18 am Ahmed Khairy, > wrote: >

Re: Getting the except django.core.exceptions.ImproperlyConfigured while querying DB

2020-05-20 Thread Hella Nick
如果您确定数据库中有数据的话,那么就是您该视图的url设计错误。Django数据库查询的get方法查询不到数据会报错。希望可以帮助到您。 ratnadeep ray 于2020年5月20日周三 下午4:16写道: > I am trying to fetch a few rows from the DB using the following code in my > views.py: > > from django.http import HttpResponsefrom django.shortcuts import renderfrom >

Re: Getting the except django.core.exceptions.ImproperlyConfigured while querying DB

2020-05-20 Thread Hella Nick
此处有语法错误: path('display_data/', views.display_data, name= 'display_data'), 正确的写法为:path(r'^display_data//$', views.display_data, name= 'display_data/'), 请记住,一定要加 / -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group