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
>>
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
> http://aldia
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,
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 so
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 like
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
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
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 runn
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 p
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
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 and
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" c
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 pa
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 Dja
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
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 receivi
.
--
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/
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
> a
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 tu
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 写道
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 unsubscri
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 django-use
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
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 django-users+
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 fi
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
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 wit
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 exam
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.
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 s
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 ap
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 publi
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 nam
你帮我获得加拿大的工作移民签证,我就可以帮你解决问题。
在 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= settings_d
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:
> ['scor
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 django.urls.exceptions.NoReverseMa
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.
>
>
>
>
你是阿三吗?
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 g
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 qu
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
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 iss
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 t
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 render(re
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?
>
>
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
shame
45 matches
Mail list logo