Anshu
Any Django developer here who can help me in integrating paypal and stripe payment gateway?
Visit their official site for integration with python, as stripe has built in package for python
Maxim
Hey guys, can someone help me with this? https://stackoverflow.com/questions/70235838/django-aggregate-combine-two-expressions-in-one-dict-as-output-field/70237036#70237036
𝑀𝒶𝓉𝒾𝓃
Hi Does anyone know how to implement a small calendar in the Django template? I did everything and tried every method, but it didn't work! SelectDateWidget does not return data even when I want to use it to create a simple form.
2X
Can anyone share me a working code of stripe and paypal subscription with webhooks in Django
Anonymous
In form.py
Shaik
Pagenot found error is coming
Shaik
Please help me
Shaik
How to solve this?
Azamat
Pagenot found error is coming
It means page doesn't exists. Are u using pagination?
Azamat
Than it means maybe ur url aren't working
Azamat
Check full error
Anonymous
Hi I want Python to bring me the keywords in the text box in a predominant word in Word. How can it be done? What most office locations do
Doragonsureiyā
Hi I want Python to bring me the keywords in the text box in a predominant word in Word. How can it be done? What most office locations do
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
Anonymous
!ot
I can come PV
Mirco
I can come PV
Nope you will be blocked ☺️
MAK
May I know how to learn django
MAK
From scratch
Doragonsureiyā
May I know how to learn django
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Marvel
Any idea of the how to django app in domain:8000 and front as react in domain live in Linux server using nginx ??
Marvel
server { listen 8000; server_name domain_name; location = /favicon.ico { access_log off; log_not_found off; } location /static/ { root /root/backend/exchange_bot; } location / { include proxy_params; proxy_pass http://unix:/run/gunicorn.sock; } } server { listen 80; server_name domain_name; root /root/front/build; index index.html index.htm; location / { try_files $uri /index.html =404; } }
Marvel
this is my nginx.service file
Marvel
it was only 80 post but i was font in 80 port and backend django in 8000 port it was possible in one server hendle both in domainname ??
Doragonsureiyā
Hi! This group is English-only. Please, translate your message into English and delete the non-english message. Or move to a group speaking your language (type "!ol" to see the list). Thank you.
FireFrench
Hello everyone. Can anyone suggest how to deal with the error or find the cause? Error: Unknown error, contact administrator Status: 502 Called when using the api service. Gunicorn + nginx bundle. Everything worked like a clock, and now the server began to issue. The site itself is working, but the api is not
Behnâm
it was only 80 post but i was font in 80 port and backend django in 8000 port it was possible in one server hendle both in domainname ??
you can have multiple server blocks with different server names. a good way for your project is to serve react app on port 80 (example.com) and serve the django app on 80 (api.example.com)
Vitaliy
Hi all there are 5+ million records containing the JsonField field, example of the field: {"id": "1", "name": "Name", "key": {"1": "1", "2": "2", "list_id": ["1", "2"]}} which index is better to use if you need filtering like this data__key__list_id__has_any_key = ["1", "2"]?
R.
!ol
Doragonsureiyā
Python groups in other languages (‼️ Not managed by us ‼️) Amharic @python_amharic Arabic @arabipython Azerbaijani @azepug Chinese @pythonzh French @python_francais German @pythonde Hebrew @pythonisrael Hindi @pyindianew Indonesian @pythonid Italian @python_ita @pythonita Kazakh @python_kz Malaysia @pythonmalaysia Persian @pyfarsi Portuguese @pythonbr Russian @ru_python_beginners @ru_python Spanish @PythonEsp Swahili @python_eafrica Turkish @python_tr Uzbek @python_uz If you have an (active) group you want to add, ask in the meta group, link in the rules page.
Hrutuja
Hello all, I am doing project in flask but in which i facing problem when render template in it
Hrutuja
Help me to solving this issue
Doragonsureiyā
Hello all, I am doing project in flask but in which i facing problem when render template in it
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Mani
Hey, this code is not working, any idea why? it's selenium screenshot take. driver.save_screenshot('/assets/transfers/{}.png'.format('test')) when I give no path, it works fine, but I want it to be saved in that path. Tested it many times, nothing helped me so far. It runs through celery and django, when I give no path, it saves in django root. but I want to save it to my static file to show to user.
Shaik
How to reverse a list in django
Shaik
Please tell anyone
William
How to reverse a list in django
Do you mean data order?
Shaik
Do you mean data order?
For example list=[a,e,I,o,u] is a list and output get like list=[u,o,I,e,a]
William
For example list=[a,e,I,o,u] is a list and output get like list=[u,o,I,e,a]
You can search It on google. How to reverse a list in python?
Poppu
Guys it's possible to switching the functions via django admin using drop-down button. e.g: I using text transaction api to translate the text but due to low budget plan use both Azure and Google translate api (3+2). So I just want to switching those two functions so I can reduce my translation cost. ( When ever anyone reach their limits)
Harsh
{% for i in all_items %} <a href="{% url "{{i.name}}" %}" alt="{{i.name}}" Can anyone tell me why it is giving me error , i want to fetch the name from DB which is same as name in url patterns given is
Anonymous
Maybe you should close for loop {% endfor %}
Harsh
Reverse for '{{i.name}}' not found. '{{i.name}}' is not a valid view function or pattern name. {% url "{{i.name}}" %} < - this
Andrew
Hello, who can help with django.forms ?? Need: 1) field to input date with limit (not earlier than today) 2) field to input time with limit (not earlier than now() + datetime.timedelta(hours=2) ) Didn’t find the solution, help please)
Klaus
hello guys, did anyone know how to find mean in ORM. if I have certain number of scores of user, how to find mean in that? help me please
Klaus
basic math, add all scores than divide to the number of users
Yeah, I know that but how to do using ORM ?
S A I
Can anyone help me how to open Django workspace in pycharm ???
S A I
I installed Django
Anonymous
I am new member for this group I doubt about django form Can anyone tell me If user hit submit button then next what will happened How can we get user enter information Please clear my doubt thank you
Wajahat Hussain
Hello friends hope all are doing well. Anybody please share simple implementation of datatables with Django.
Wajahat Hussain
William
I am new member for this group I doubt about django form Can anyone tell me If user hit submit button then next what will happened How can we get user enter information Please clear my doubt thank you
In the form, you have to provide the action = the view URL and method = GET or POST. In your view, you can get the form data using a request.GET.get(input tag name) for GET method and request.POST.get() for POST method
Wajahat Hussain
Shyam
Hello guys I have completed basic python and now I want to start django framework so I request to everyone please guide me
Doragonsureiyā
Hello guys I have completed basic python and now I want to start django framework so I request to everyone please guide me
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Shyam
Thank you for sharing
Alisher shamuratov
#help How can I render 2 diferent def to one html
William
#help How can I render 2 diferent def to one html
No, you can't. Better do It in one
Anonymous
Hi friends, django refrence please?
Alisher shamuratov
William
how can I do it
The two def function similar or different like you don't want to display the data in that HTML page
Alisher shamuratov
The two def function similar or different like you don't want to display the data in that HTML page
I am just doing landing page and I have to render all function to one html
Alisher shamuratov
and I have more than 2 def
William
I am just doing landing page and I have to render all function to one html
I assume that you want to display all the function data on a single HTML page right?