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

2020-05-19 Thread ratnadeep ray
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 home(request): > #query_results = QRC_DB.objects.all() > return

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

2020-05-19 Thread Ahmed Khairy
Do you mean that this line should be changed? No ! Don't Print it On Tuesday, May 19, 2020 at 11:11:12 PM UTC-4, Hella Nick wrote: > > button标签中的type属性设置为button, > > Ahmed Khairy > 于2020年5月20日周三 上午1:54写道: > >> I am trying to use Ajax

Re: I am facing issues in sharing module.

2020-05-19 Thread Akshat Zala
I have Posts and Friends model in blog and friend apps respectively. In friend model: I have fromuser, touser, and status as fields. In Posts model, I have title, content, author_id anddatecreated and modified date. On Monday, 18 May 2020 20:12:14 UTC+5:30, Akshat Zala wrote: > > I am facing

Re: Integrate wepay payments in django site

2020-05-19 Thread Akshat Zala
You can install the following package and study the documentation: 1. https://pypi.org/project/django-wepay/ On Tuesday, 19 May 2020 22:56:24 UTC+5:30, Shyam Acharjya wrote: > > greetings, > > has anyone here have any prior experience in integrating wepay to a django > site? if yes please share

Re: NEW TO DJANGO

2020-05-19 Thread Akshat Zala
You can study https://developer.paypal.com/docs/api/quickstart/ On Wednesday, 20 May 2020 08:57:06 UTC+5:30, Akshat Zala wrote: > > I agree with Vishesh, You require api key which needs to be in settings.py > file > > On Tuesday, 19 May 2020 20:43:17 UTC+5:30, Vishesh Mangla wrote: >> >> Your

Re: NEW TO DJANGO

2020-05-19 Thread Hella Nick
你是阿三吗? Akshat Zala 于2020年5月20日周三 上午11:27写道: > I agree with Vishesh, You require api key which needs to be in settings.py > file > > On Tuesday, 19 May 2020 20:43:17 UTC+5:30, Vishesh Mangla wrote: >> >> Your question is not clear to me. What exactly do you want ?You do not >> require django to

Re: NEW TO DJANGO

2020-05-19 Thread Akshat Zala
I agree with Vishesh, You require api key which needs to be in settings.py file On Tuesday, 19 May 2020 20:43:17 UTC+5:30, Vishesh Mangla wrote: > > Your question is not clear to me. What exactly do you want ?You do not > require django to go to a site , rather you require a hyperlink. > > >

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

2020-05-19 Thread Hella Nick
Django中的表单提交按钮不要使用submit属性,否则会触发get请求,或者发生错误。 Hella Nick 于2020年5月20日周三 上午11:09写道: > button标签中的type属性设置为button, > > Ahmed Khairy 于2020年5月20日周三 上午1:54写道: > >> I am trying to use Ajax to submit a like button, I believe everything is >> in order but I keep getting

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

2020-05-19 Thread Hella Nick
button标签中的type属性设置为button, Ahmed Khairy 于2020年5月20日周三 上午1:54写道: > I am trying to use Ajax to submit a like button, I believe everything is > in order but I keep getting django.urls.exceptions.NoReverseMatch: Reverse > for 'like_post' with arguments '('',)' not found. 1 pattern(s) tried: >

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-19 Thread Hella Nick
你帮我获得加拿大的工作移民签证,我就可以帮你解决问题。 在 2020年5月17日星期日 UTC+8上午4:51:45,chaitan写道: > > Hi, I am facing ModuleNotFoundError in my Django application. It got > configured with multiple settings files for production, Development & > Testing. > When I Try to run Python manage.py runserver --settings=

Re: Can Django (application itself) connect to MySQL via Kerberos/GSSAPI ticket instead of password?

2020-05-19 Thread Hella Nick
Mysql8.0以上的版本更改了加密规则,这可能需要你多研究一下遇到的问题。我记得需要修改Django框架中的一些源码。 在 2020年5月20日星期三 UTC+8上午9:37:33,Edward Rose写道: > > Hello - Does Django have any support for the web application itself being > able to connect to MySQL using Kerberos Authentication / GSSAPI rather than > a hard coded database user

Re: Media files and download url

2020-05-19 Thread Riska Kurniyanto Abdullah
https://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html You can used that modules and set the ACL. You can jump here, in Vitor article : https://simpleisbetterthancomplex.com/tutorial/2017/08/01/how-to-setup-amazon-s3-in-a-django-project.html then go to the chapter : Mixing

Can Django (application itself) connect to MySQL via Kerberos/GSSAPI ticket instead of password?

2020-05-19 Thread Edward Rose
Hello - Does Django have any support for the web application itself being able to connect to MySQL using Kerberos Authentication / GSSAPI rather than a hard coded database user name and password? I have searched around the web for a while and am still trying to find a way to get a Django web

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-19 Thread Mike Dewhirst
I thought I'd go back and look at your original post. Your settings file looks a bit tricky. I learned to deal with multiple settings files a long time ago so I don't know what current best practice is. Essentially, the way I do it is to have a complete base.py with all settings in a default

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-19 Thread chaitanya orakala
Thank Jeorge. I went through that blog long back but I can't find a relation to my Error. I will try contacting my manager regarding this. will let you know if I find anything. Have a great day On Tue, May 19, 2020 at 2:44 PM Jorge Gimeno wrote: > I'm not sure why you're getting an exception.

Re: Categories and shoe Subcategories according to the parent category.

2020-05-19 Thread Clive Bruton
There are django modules for hierarchical navigation https://djangopackages.org/grids/g/navigation/ -- Clive On 19 May 2020, at 23:20, saqlain abbas wrote: Please tell me if anyone knows about this. On Mon, May 18, 2020 at 4:50 PM saqlain abbas wrote: Hi, if i add Categories , for

Re: Categories and shoe Subcategories according to the parent category.

2020-05-19 Thread Antje Kazimiers
you could have a field "parent" in your Model Category which is a ForeignKey to Category itself, so Category is a self-referencing table. Then in your first dropdown you only show those entries where parent is None and in your second one where parent == accessories. you need to get this right

Re: Categories and shoe Subcategories according to the parent category.

2020-05-19 Thread saqlain abbas
Please tell me if anyone knows about this. On Mon, May 18, 2020 at 4:50 PM saqlain abbas wrote: > Hi, if i add Categories , for example > 1)accessories > 2)sports > 3)books > Subcategories: > accessories is the parent category > child categories are > watches > jewlry > caps > how can i show if

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-19 Thread Jorge Gimeno
I'm not sure why you're getting an exception. I know the import mechanism in Python 2 was a bit different, so I'm not sure if that's the issue or if Django's import mechanism isn't finding your settings file. I don't know if you have tried this, but I saw a blog post on using multiple settings

Re: Getting HTTP 301 on static resources

2020-05-19 Thread jtaylor___
Someone suggested to have Apache handle the static content, and that solved my problem. Thank you -- 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

Can't Fix the No Reverse Error in Ajax

2020-05-19 Thread Ahmed Khairy
I am trying to use Ajax to submit a like button, I believe everything is in order but I keep getting django.urls.exceptions.NoReverseMatch: Reverse for 'like_post' with arguments '('',)' not found. 1 pattern(s) tried: ['score/like/(?P[0-9]+)$'] I am not sure what is the reason. Need help to

How To create a chatroom in django

2020-05-19 Thread Tobi DEGNON
You can use something like django channel, it is use to create asynchronous app like chat 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

Re: I'm new to this django help me out

2020-05-19 Thread meera gangani
You can watch django tutorial series on youtube otherwise you can also apply to the courses on coursera or udemy On Tuesday, May 5, 2020 at 10:55:48 PM UTC+5:30, sree lekha wrote: > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To

How To create a chatroom in django

2020-05-19 Thread meera gangani
. -- 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: Marketing django project

2020-05-19 Thread Md Russel
Derails please. On Tue, 19 May 2020 02:28 Fred XU, <18611615...@163.com> wrote: > Hi, > > Do you need Chinese guys for this project? > > Fred > > 发自我的iPhone > > 在 2020年5月18日,21:44,maninder singh Kumar 写道: > >  > Dear all, > > Require sales and marketing interns for django, javascript based >

Re: How to pass a variable to views from a template using href ?

2020-05-19 Thread Ignat Petrov
You should be able to do that by using a relative path instead of the absolute "/execute". Just use something like href="{% url 'execute' 'SQL' %}. For this to work you need to name the url path as 'execute'. That way you'll pass the 'SQL' value to the endpoint. Here is example from the polls

Re: Marketing django project

2020-05-19 Thread Md Russel
Hi, Details please. Russel On Tue, 19 May 2020 10:35 Md Russel, wrote: > Derails please. > > On Tue, 19 May 2020 02:28 Fred XU, <18611615...@163.com> wrote: > >> Hi, >> >> Do you need Chinese guys for this project? >> >> Fred >> >> 发自我的iPhone >> >> 在 2020年5月18日,21:44,maninder singh Kumar

using mod_python and django3.02??

2020-05-19 Thread Robert O.
I wrote a django site (django3.02) and want to deploy it using mod_python. Is that even doable/ reasonable?. Do I need to use django version <1.5? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Integrate wepay payments in django site

2020-05-19 Thread Shyam Acharjya
greetings, has anyone here have any prior experience in integrating wepay to a django site? if yes please share the process it would be a really big help regards. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

RE: NEW TO DJANGO

2020-05-19 Thread Vishesh Mangla
Your question is not clear to me. What exactly do you want ?You do not require django to go to a site , rather you require a hyperlink.  Sent from Mail for Windows 10 From: Madhav NandanSent: 19 May 2020 20:34To: django-users@googlegroups.comSubject: NEW TO DJANGO Dear Django fellas, I'm new to

NEW TO DJANGO

2020-05-19 Thread Madhav Nandan
Dear Django fellas, I'm new to Django here. I started learning and it's been a while and I'm facing a lot of issues. Can somebody help me with *''how can I integrate a payment system like PayPal to a link?''* Like I have a link, if someone clicks on that link that will redirect the user to the

Re: How to pass a variable to views from a template using href ?

2020-05-19 Thread Desh Deepak
You can use slug On Tue, 19 May 2020, 6:44 pm ratnadeep ray, wrote: > Hi all, > > My requirement is to pass a variable to the view from the template using > href. > > For example, I have written the following line of code: > > SQL data > > > So using the above line, can we send the value "SQL"

Re: Getting HTTP 301 on static resources

2020-05-19 Thread jtaylor___
Unfortunately, my Apache doesn't support wsgi. I'm using ProxyPass in Apache. It's working to bring back the pages, just not the static content like CSS & JS. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

RE: How to pass a variable to views from a template using href ?

2020-05-19 Thread Vishesh Mangla
In your views.py check “dir” on request.GET object to see what you have got.  Sent from Mail for Windows 10 From: ratnadeep raySent: 19 May 2020 18:44To: Django usersSubject: How to pass a variable to views from a template using href ? Hi all,  My requirement is to pass a variable to the view from

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

2020-05-19 Thread Andréas Kühne
You can't really do that with Python - however - IF you want to go down that route, you can just use the pyc files - you can theoretically backwards compile them, but I think this is the most you can do Regards, Andréas Den tis 19 maj 2020 kl 03:36 skrev Sunday Iyanu Ajayi : > I get your

Re: Getting HTTP 301 on static resources

2020-05-19 Thread Andréas Kühne
You need to configure apache correctly and set up your static url in django. See here for an explanation: https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/modwsgi/#serving-files Regards, Andréas Den tis 19 maj 2020 kl 03:38 skrev jtaylor___ : > I'm setting up a Django instance

How to pass a variable to views from a template using href ?

2020-05-19 Thread ratnadeep ray
Hi all, My requirement is to pass a variable to the view from the template using href. For example, I have written the following line of code: SQL data So using the above line, can we send the value "SQL" clicking on the link of "SQL data" to the method "execute" written in the views? If

RE: Re: required help to save SECRET_KEY and Third party Private API key

2020-05-19 Thread Vishesh Mangla
Why don’t you use the decouple module? Use it and add it to your gitignore.  Sent from Mail for Windows 10 From: Anirudh choudharySent: 19 May 2020 13:14To: django-users@googlegroups.comSubject: Re: required help to save SECRET_KEY and Third party Private API key thanks for your answer  after your

Re: CouchDB as Django backend database

2020-05-19 Thread Akshat Zala
You can refer to the link below: 1. https://stackoverflow.com/a/50521563/4511992 On Friday, 15 May 2020 19:46:52 UTC+5:30, Gopesh Shriwas wrote: > > Hi All, > > Can anybody help me on using couchdb as a django backend database. I went > though with multiple options available on the internet

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

2020-05-19 Thread Aldian Fazrihady
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 ratnadeep ray wrote: > Can you please say in which line we should make that change because in

Re: required help to save SECRET_KEY and Third party Private API key

2020-05-19 Thread Anirudh choudhary
thanks for your answer after your answer, I have tried to edit the ~/.profile file and /etc/profile/ but still, I can't see my key inside my VM instance i am putting SECRET_KEY="jhsgdjadtad876s87dsadsad7sa" in the above file .but when i run the command "env" i can see my key thankyou On Tue,

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

2020-05-19 Thread ratnadeep ray
Can you please say in which line we should make that change because in so many places I am using comp. So in all the places should I change that ? On Tuesday, 19 May 2020 12:36:19 UTC+5:30, Aldian Fazrihady wrote: > > Use comp_id= instead of comp= > > Regards, > > Aldian Fazrihady >

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

2020-05-19 Thread Aldian Fazrihady
Use comp_id= instead of comp= Regards, Aldian Fazrihady http://aldianfazrihady.com Pada tanggal Sel, 19 Mei 2020 13.49, ratnadeep ray menulis: > Hi all, > > I am trying to add a row in the DB using the following views.py: > > # Create your views here. >> from django.shortcuts import render >>

Django foreign-key cannot assign must be a instance

2020-05-19 Thread ratnadeep ray
Hi all, I am trying to add a row in the DB using the following views.py: # Create your views here. > from django.shortcuts import render > from fusioncharts.models import Component,Report > import xlrd > def pie_chart(request): > labels = [] > data = [] > loc =