Anonymous
i need a telegram bot which sends to users a sms with rest api
Anonymous
who can help me?
Anonymous
i need a integration with django + telegram bot
Rutherford
Build projects. Create something like stack overflow😊
Rutherford
Python scope simply refers to the position of variables in your code. We have 3 types of python scopes. Global scope. Non local scope and Local scope. Global Scope. Variables which can be read from any where in your programme. Local Scope. These are variables defined inside functions. Nonlocal Scope. These are variables defined inside a nested function. Eg def name(): def greet(): x = 'Hello' #do_something return #something In the sample code above. the variable x is non local to the function name.
Rutherford
Is it possible without Javascript?
Depends. If you want to be editting the DOM, you will need some JavaScript.
Sumit
Hi Everyone, I am using graphql with django, I am using graphene for this. I run the following subscription and gets the bad request error.
Sumit
subscription{ taskCreated{ taskName } }
....
Depends. If you want to be editting the DOM, you will need some JavaScript.
I heard that without JS webpages will be static and not "full-featured" that is why JS is mandatory. So, maybe it is better to learn JS and it's frameworks than Python-Django and again JS?
Sumit
Bad Request: /api/ [19/Apr/2021 13:22:53] "GET /api/ HTTP/1.1" 400 53
Rutherford
Why not. Django just handles backend . Whatever you will do with your front end doesn't matter. If it's integrated well with the backend. That's why we can build sites with react(js library) and Django
....
If you would like to do that. I suggest learning react and some Node.js
I am asking which way is simplier and straight forward for beginners like me?
Sumit
Rutherford
I am asking which way is simplier and straight forward for beginners like me?
Django bro. You will reap the benefits later. Js can be learnt in a month if you understand basic python
Rutherford
Rutherford
You welcome.
....
👍
Rutherford
👍
If you want to go into full stack. Some html, CSS, js ,Node, SQL, and some react will do.
vijay
how to devlop a video confrence app in django
Agent Q
how to devlop a video confrence app in django
Just use Jitsi or something. Why build another?
vijay
Just use Jitsi or something. Why build another?
no i want my own website and it is for students
vijay
please tell the way to build a video confrence app in django
Agent Q
please tell the way to build a video confrence app in django
2 options. 1. Use Jitsi's API and do your own integration. Or 2. Google it.
Nice
I'm practicing the voting polls app which is given in the website I'm facing an error init() takes 1 positional agrument but 2 were given I unable to find in which .py file it is located
Anonymous
Send code request?
....
I'm practicing the voting polls app which is given in the website I'm facing an error init() takes 1 positional agrument but 2 were given I unable to find in which .py file it is located
https://stackoverflow.com/questions/28122963/typeerror-init-missing-2-required-positional-arguments-client-socket-a Hopefully you were not banned by Google 😉
syntaxError
Hi, when start with the server by running the command python manage.py runserver in the terminal. I got a message in red letters about 18 unapplied migration(s). but I didn't write anything in my project. how could I solve this problem?
jay
Restore it or start fresh
Nadeem
Anyone tell me how to get a only one field in django models queryset
Nadeem
Only single feild bro
Nadeem
Anyone tell me how to get a only one field in django models queryset
For example. Registration form ke data model me se
Nisis
Only single feild bro
You wanna filter the field or do what with it?
Nadeem
Ok brother
Nadeem
I am trying
Nadeem
Values
Yes values
Damir
Yes values
Single argument will not return list afaik
Haseeb
i need help i want create 3 user model admin customer and manager how i create and views
Nadeem
Ok but I want only one values
Nadeem
Suppose I need only chat I'd in models
Nadeem
After that I want to perform a operation on chat I'd
Damir
After that I want to perform a operation on chat I'd
queryset.values_list('id',flat=True) <QuerySet [3117437, 3115066, 3126124, 3120369']>
syntaxError
Rishabh
Hi, How do I display a message in the UI. In views.py - an if statement is there, so the if the statement is false then I should display a message in UI.
Rishabh
but its a simple one line message , I mean using context when we have a key value works better ?
syntaxError
migrate then?
👍🏻👍🏻
Jyboyyy
I'm new to Django and instead of using Django forms ,I'm using bootrap forms with user model that I have created I have to check the login details before giving access to the user dashboard . https://stackoverflow.com/questions/67162578/django-redirect-is-not-redirecting
Zey
If I save a data in session and after some time I again save a data with same name so it will replace that data?
Anonymous
Hello i have problem from js file for load image in web! can you help me?
Sai
🤙 Like I check the entire request and response in the browser itself. I want to hide it. Any ways or any suggestions. Thanks In ADVANCE!!!!
Doragonsureiyā
Hello i have problem from js file for load image in web! can you help me?
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z" Just ask about your problem directly! With ~90,000 people here, the probability that someone will help is pretty high. How to ask smart questions: http://catb.org/~esr/faqs/smart-questions.html
J
anyone have a good resource for adding a basic captcha to a form? I can't really find one
Firstname
Hi there! Has anyone used DjangoFilterConnectionField for foreign key ids?
Focky
Amazing.
Shahd
What is the data type of the return value for request.POST[ name_html]?
Agent Q
jay
Passing dict value in Templates <form action="{% url 'media:convert' format.keys %}" method="post" enctype="multipart/form-data" > {% csrf_token %} <div> {{form.as_p}} <select name="formats"> {% for key, value in format.items %} <option value="{{ key }}">{{ value }}</option> {% endfor %} </select> <button class="button" type="submit">Submit</button> </div> </form> How do i pass selected option in the form. When i try this i get an error
𝖒𝖓𝖒.𝖋𝖑𝔂
hi i am new
𝖒𝖓𝖒.𝖋𝖑𝔂
hope doing great
Doragonsureiyā
hi i am new
Please move your "Hello" and other social talk to @PythonOfftopic.
Shahd