Anonymous
How to slov the plurals problem
Anonymous
class SecondaryMenuHome(models.Model):
menu_item = models.CharField(max_length=50)
urls = models.CharField(max_length=500)
target = models.CharField(max_length=7)
def str(self):
return self.menu_item
Anonymous
how remove 's' at admin site
Anonymous
it shows Secondary menu homes
gamer_boy
hello guys, i want to make a quiz app but i got stuck in the problem.i want to make a view which return question which have same quiz title and choices which have same question.(i want to show the question and their choices on page and when i submit the answer it will redirect to next question)
gamer_boy
models.py
gamer_boy
plz help me
Anonymous
what
👍
def str(self):
return self.question_txt """ use str instead str"""
Sirius
Hello everybody!
I have some questions about AbstractBaseUser. Is there someone who can help me?
Mr.Robot
Yes
Anonymous
Use uphub.io/codebin to share you code live.
Mirco
Anonymous
this has been resolved now
Anonymous
thanks
Mirco
😊
Anonymous
could you tell me how call a list from database
Anonymous
hi, I have couple questions here.
can I use forms.Form and or, forms.ModelForm for dynamic form adding in django?
is it possible to do using Form / ModelForm without using formset?
Rohan
Anonymous
i have lits of links
Anonymous
in my data bse
Rohan
Anonymous
home_secondarymenuhom
Anonymous
table
Anonymous
yes
Rohan
Share the model class
Rohan
And which column you want as a list? What is the filter?
Anonymous
Use uphub.io/codebin to share you code live.
Anonymous
menu_item
Anonymous
Anonymous
Model
Rohan
SecondaryMenuHome.objects.values_list('menu_item', flat=True)
Anonymous
Model
https://www.uphub.io/bin/nAhwpq
Rohan
You can create a custom manager to return list directly but I'm not sure if you're aware of it.
Rohan
Please read Django basics and refer the docs as much as possible.
Anonymous
Anonymous
Anonymous
😂
Anonymous
Where is the list of items in model?
Anonymous
Inside the Home app
Anonymous
i want to get the list item in my base.htm under Home ap
Anonymous
So the urls is the list
Anonymous
In the model?
Anonymous
yes
Anonymous
now i have changed in my view.py
Anonymous
it redirects an error
Ghorz
I want my from to automatically select request.user
below link is my pasted source
https://dpaste.de/9r0A
Raghad
I want to know what is ( coverage report) command means ?
Is it kind of testing ?
Mirco
Raghad
Could you explain more 😅?
Mirco
Do you know what TDD is ? Test driven development ?
Raghad
No
Mirco
In a few words , it's a way to develop by writing tests before main code
Mahmoud
I face difficulity to find an idea to make a project
What you can advise me ?
Aditya
I am unable to inherit child class from base class
👍
Anonymous
👋 This is my model in model.py folder. I want to display in my website the images which I have uploaded at admin site, but I can't do it now. Here is my views. My views class inherits from the ListView, which, I suppose, is the cause of the problem. What must I do?
El
i have a error in corsheaders
El
https://pastebin.com/hEHqDAcT
El
why?
Anonymous
Mohit
Best way to make a website multilingual.. ?
I am using internationalization in Django but in that whenevr i want any string to be translated i need to enter its translated string in (.po) file
I wan something that can translate the entire html with little modification in html page or python code
Happy
Nedd
Hello everyone. I have a form that requires you to input a title and upload an audio file(so far I allow any file to be uploaded). When I send the post request, there are two issues I face. 1) The view audio.views.upload_audio_file didn't return an HttpResponse object. It returned None instead. So basically even though the form.is_valid() should return True, it returned False. 2) I check my request information and even though I have uploaded a file, it shows that as a part of variable of the POST request and there is no separate FILES data. Here's what I get "FILES
No FILES data"
Nedd
I am absolutely clueless about how to go about this
Mohit
no other framework
r0b0t
Anyone who has used django-storages to store media files on google cloud storage. How do i get the uri of the object? django-storages only returns a public url
Mirco
Ragul
Send me django tutorial please for begineers
Not Your Dad
sizemore
is there a bulk create view for django
sizemore
When I use bulk_create, django always inserts one more data in mysql
sizemore
i use bulk_create in CreateView
Shubham
Hello guys
Shubham
Im getting an error