Anonymous
I m unable to send media ...so u can look it up online
Poppu
Guy's is there django hosting cost on Azure is really 20to 25$ isn't it too much. I recently got my Azure students account then I see cost on dynamic web app. Is there anyway to reduce the cost so I can run website atleast 9 to 12 months with in 100$ cradits.
Doragonsureiyā
I m unable to send media ...so u can look it up online
Rule 5️⃣: Never post walls of text or screen photos. Use paste bins like https://del.dog, https://nekobin.com
Kishor
how to signup with mobile number
Doragonsureiyā
how to signup with mobile number
What are you talking about?
Kishor
want to create signup in django with mobile number verification
Kishor
otp
H
how to signup with mobile number
Use firebase mobile otp for free
KS
Anyone worked on web based place finder project using python django
Priyanshu
From where to learn basic of django and javascript
Doragonsureiyā
From where to learn basic of django and javascript
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Priyanshu
🙏thanks
Kevin
Apart from crispy-forms which other tool can i use
Yusuf
sorry
Yusuf
how can i fix this error »»»»»TypeError at /user/login/ login() takes 1 positional argument but 2 were given
Fà
Please send me a good django tutorial book.
Doragonsureiyā
Please send me a good django tutorial book.
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
عبید اللہ
I can't install django on my python When I insert pip freeze or pip install django Give me error Please help me I have windows and python 3.10 File "<stdin>", line 1 pip freeze ^^^^^^^^^^ SyntaxError: invalid syntax. Perhaps you forgot a comma? >>>
George
I can't install django on my python When I insert pip freeze or pip install django Give me error Please help me I have windows and python 3.10 File "<stdin>", line 1 pip freeze ^^^^^^^^^^ SyntaxError: invalid syntax. Perhaps you forgot a comma? >>>
That is a shell command not a python instruction. Pip is not a python module. It is a program bundled with python that is used to manage packages. Exit your python interpreter and use it in your shell.
Nayan
Is there any good videos to learn class based view in django from basics to advance ?
Lamepic
Can anybody help me implement a django authentication where the user provides an employee Id and a token is generated and sent to the user’s email, then the user inputs the token in a field provided at the login page in order to be logged in. Please help or point me to a resource that might help. Thanks
priyanka
Have you installed Django in the virtual environment?
Yes now working actually I am running two projects so problem arised. Now I have resolved it thanks
♈
Django in how to set 3 time invalid OTP after user account lock 5 minutes ?
البهي
how can you order key after using annotate
Chapi
Hello Guys, how can i pass Class data between two Django Views, by keeping the data ? i am working on Google OAuth Generation so if you are using Gmail OAuth token google requires you to go to some url and come back with some kind of authorization code message so to make this possible on Django i should keep the intialize class untill the token is filled. the code i wanna have is like this class View(TemplateView): def get(self, request, *args, **kwargs): gmail_stuff = GMailTokenGenerator.from_client_config(credential, SCOPES) url = gmail_stuff.get_url() return render(request, 'gmailpush/index.html', {"url": url }) def post(self, request, *args, **kwargs): code = request.POST.get('code') credential = gmail_stuff.authenticate(code) return HttpResponse(credential) but as you can see the gmail_stuff is not global where should i put the intialization to access it in both get and post with out lossing data
Anonymous
how to make food recommendation system in django? i don't have any idea how to start .please help me ..
Anonymous
Good morning django lover
Anonymous
Tell me best hosting for django project for a long time
Sparrow
Tell me best hosting for django project for a long time
Heroku is good for testing deployment and having projects there.
Sparrow
If in future Increase the traffic
Then you have to pay for a Dyno.
Rohan
If in future Increase the traffic
Do you know how much traffic you’d need to want to scale up your system?
Rohan
And will you keep resources reserved just cuz you think your traffic will take a quantum leap in future?
Anonymous
Thanku
Arav
Hey am newbie trying to create a new project for booking bus ticket and can u guys help me out
Amor
Hi guys I'm using saml2 so SSO login and facing issue while login! It's giving me the error like WSGIREQUEST has no attribute session! Does anyone know about this issue kindly do help me!
Clevrr
Hey am newbie trying to create a new project for booking bus ticket and can u guys help me out
Why don't you actually start the project first, then whenever you encounter a problem you can't fix (or can't find a solution on google), you can then ask for help here
Anonymous
hi. I have an account app which handles registration and login. I have a popup login/register form on my homepage in its own 'home' app. How can I send home's form data to account?
Randy
Good day to all! Does anyone have any refs on using django.contrib.sitemaps featuring i18n?
ARBAAB
i got card item id from session and added cart to database and created a function which increasing cart item quantity with having plus button in template and also i have minus button, the plus button works fine when i click it, it increases item quantity by 1 but when i click minus button it also increases item quantity by one, although the urls and the functions are different for both add_to_cart and remove_from_cart, could anybody can help?
Shadow
https://stackoverflow.com/questions/69642175/show-specific-data-in-a-table-django Can someone help me with this?
Shadow
So like I want to display a specific status based on the department so if example, logistic side will display all the data with the status that is reception
Clevrr
So like I want to display a specific status based on the department so if example, logistic side will display all the data with the status that is reception
I don't understand what you're trying to do. Do you want to display all data with with 'reception' status by default? or when the user searched for it?
Shadow
The search one is currently what I have done, i am testing if my search works for all of it
Clevrr
By default
try this else: allusername = Photo.objects.all().filter(status='reception') after checking if search_post is None
Prabhakaran
Microsoft Authenticaton worked for me with localhost demo.. and when i am trying to publish it with the web.. I am getting an error unable to decrypt..
Shadow
try this else: allusername = Photo.objects.all().filter(status='reception') after checking if search_post is None
Currently I have the all username there which is by default to arrange it the newest date and time, if I use that in the else statement I don’t think it will work
Shadow
That's why I asked if you were trying to display all the data with reception status by default
By default it should display the date and time that is the newest with the status reception
Shadow
Maybe I rephrase my question
Shadow
ok
Yup so how do I make it so that it display the date and time the latest with the status reception
Hunde
Application error An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command heroku logs --tail
Clevrr
Yup so how do I make it so that it display the date and time the latest with the status reception
so you're trying to order the data to show the latest ones first?
Shadow
Yes, the latest date and time with status reception will only be shown in the logistic page
Kishor
what are the front end you are all using
Clevrr
Yes, the latest date and time with status reception will only be shown in the logistic page
why don't you append .order_by("-Datetime") like this allusername = Photo.objects.filter(Q(reception__icontains=search_post) | Q(partno__icontains=search_post) | Q( Customername__icontains=search_post) | Q(mcoNum__icontains=search_post) | Q(status__icontains=search_post) | Q(serialno__icontains=search_post)).order_by("-Datetime")
Clevrr
Oh let me try :)
hope it works
ARBAAB
Can we see the code of both functions
sending media is not allowed here so...
Doragonsureiyā
sending media is not allowed here so...
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like: - https://del.dog - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev If you posted a wall of text, go back and delete it.
User
Hi all, I need to send json data held in a variable in my frontend to server, the data is generated through several user interactions and calculations in the frontend, how do I send this to the server? Do I use forms itself or any other way ?
Prabhakaran
I want some help reference in django -microsoft-authentication .. I am able to make it working using the localhost:8000 but while publishing it on my domain it returms an error that unable to decrypt
Arav
Hello I would like to print an error message in my django project