Shivam
Django best tutorial
evakuator
Python 3.8 bug small but it works, please help
Mahdi
Jagir
Hi iam new in django how can save attendance of mutiple teacher in database with single click plz help
Anmol
Can anyone tell me , how can I share my code?
Anmol
Copy paste?
Master of None
Copy paste?
pastebin, github (gist) bitbucket.....
Anmol
Ok thanks
Anonymous
How we can. Restrict a user for entering in a particular page if he doesn't have that permission by using the django group methods
Please send link of any article or post related to this
Anonymous
Please reply
Master of None
Neo
how can i implement monthly/annual subscription using DRF, any references?
whatsinaname
My signup form wasn't working(users were not being added) until I changed my form action, I don't understand why
whatsinaname
What does form action do?
William
What does form action do?
Form action has a connection with the views function. You have to mention the URL of that view function using template tags in action. For eg. If you want to delete the data on submitting the form you have to do something like this
action="{% url 'delete' i.id %}". And in view function
def delete_data(request, pk):
z = Model.objects.get(id=pk)
z.delete()
William
Check the Django documentation for a clear explanation and few more examples.
whatsinaname
Не выходи из комнаты.
Hello. Need help with a form request.
There are 2 tables. Author and Book (names for example, so you don't need to look at the logic), linked through FK.
Need to group the authors by the book and go through them in a loop. The question is how to select only the last 50 authors of each book.
https://gist.github.com/m0nte-cr1st0/0adc0c73c0e5d9281c4bf8c5665fe593
Yaswanth
How can I use dictionary data in templates.. I.e.., passes from view to template
Yaswanth
Anonymous
Why
saturn
Do any body knows why i cannot import third party app (newsapi) to my Django project even after installing it
Tom
saturn
Yes already added, the same happened when i try to import s3boto3storages
Не выходи из комнаты.
Rakesh
Не выходи из комнаты.
wtf?
Rakesh
Не выходи из комнаты.
Не выходи из комнаты.
Also this give me last 50 authors for all books. I need last 50 authors for each book.
Rakesh
Rakesh
Same as list slicing in python
Не выходи из комнаты.
Rakesh
Sorry I can't give a perfect solution without even seeing your code
Rakesh
I could only Help you with the basic idea
Kamran
How to add two database with different app in single project ?? I am new in django please help me
V3N2R4
hi, I need help
Kamran
How brother can u please explain actually i am stuck here please help
Mirco
Doragonsureiyā
How brother can u please explain actually i am stuck here please help
Don't ask meta questions like:
"Any user of $x here?"
"Anyone used technology $y?"
"Hello, I need help on $z!"
Just ask directly! The better you are at explaining the problem, the more likely you are to get help.
Asking smart questions
Anonymous
category column of second table must get title of first table, not first table id?
Vladislav
who can tell me, why if i write some text in my forms and its not correct whole text - disappear?
Lokesh
Some one can guide me in a error...
I am making a model in Django and create one of the Imagefield but when I migrate with SQL Server it's data types is showing nvarchar in SQL Server
Lokesh
Please solve this problem...
Charly
Lokesh
But Sir its showing nvarchar data type in sql database while I am making a model with Imagefield in Django
Anonymous
Charly
Charly
you only need to save the path of the image
Lokesh
But i can't save file in the database...
There is only an option is coming to type nvarchar
Charly
Charly
just paths, I told you the same multiple times
Lokesh
But i want to fetch images from the database to the web page...
ann
Please solve the problem ....Django loops through all items , but it only saves one record
Vicky
I'm new to python and django , when the points comes to Python, it's obviously getting suffer to think logic for coding and solving problems, so anyone as a fresher how did u manage this situation when u were as my stage ?? Any tips please how to get stronger in coding
Charly
Vicky
Where i can get practice
Vicky
Any usefull resources
Anonymous
https://stackoverflow.com/questions/67716188/show-result-of-form-submitting-in-pop-up-box-in-javascript-after-submitting-form pls help
Vicky
👌tq
Darta
is it possible to override edit page for model item in django admin.. for example show image preview instead of only link
Nurgazy
File "/usr/lib/python3.8/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
Matin
Hi
how can i set verbose_name in model based on LANGUAGE_CODE?
Onks
I need to make a search page for the django model. Should I be using forms.Form or forms.ModelForm? I dont need to change the data, just need to make it searchable through a webpage.
ELYAS
Onks
ModelForm is used only to edit the data?
محمدرضا
How can i update a formset?
ELYAS
ModelForm is used only to edit the data?
for search you can use html form tag with input type search and you must set the name attribute to get data base on this name it's easier than using django form I think try it
Onks
yes the name tag is how I will be using the data provided by the GET/POST request
Onks
thank you for clarifying
Anonymous
I put Django loops through all items , but it only saves one record. can someone help
John
Can anyone help me how to make a django model field both unique with case sensitive
John
???
Anonymous
Hello
Please help while I am trying to save user as user.save() in views I didn't get any error and when I given details for register and click on register button it is in same page but my details doesn't saved in backend