Godwin
Hello, can somebody help me, how do I increment + 1 on button click in django without using ajax?....i'm a beginner in django.
Jay
Вин Король Саксов
Jay
I was looking for some recommendations for smooth release, I have set up 2 environments, I split settings files and have different DBs for all the envs which are working just fine, I am using Zappa(AWS lambda) for deploys, I was wondering is there an elegant way of migrating data(not models but data inside models) than preparing PostgreSQL DB rollouts, Could not find much on the internet, so asking here, Thanks!
Pravin
Some resources for Api's in Django??
Ankit
I want to customize UserAdmin Class using list_display I want to show address in the Users Table but I am getting error
Doragonsureiyā
I want to customize UserAdmin Class using list_display I want to show address in the Users Table but I am getting error
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain:
- what you're doing
- what you're expecting
- what you're using
- where you're running the script
- what Python version you're using
- what packages and their versions you're using
- and the most important thing: show the code YOU wrote (read rule 5️⃣ for that)
and more details, that way your chances to get help will increase
Anonymous
Noted, sorry
Ankit
Maxim
Maxim
Ankit
Okay so the error is <class 'user.admin.AdjUserAdmin'>: (admin.E108) The valur of 'list_display[3]' refers to 'address', which is not a callable, an attribute of 'AdjUserAdmin', or an attribute or method on 'auth.User'
Maxim
I foresee the following line starting with "ok, here is my code where the error is occurring"
Abhijeet
I have embedded tinymce editor to my admin section, but i can't upload images from local folder. Anyone can help
Doragonsureiyā
I have embedded tinymce editor to my admin section, but i can't upload images from local folder. Anyone can help
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain:
- what you're doing
- what you're expecting
- what you're using
- where you're running the script
- what Python version you're using
- what packages and their versions you're using
- and the most important thing: show the code YOU wrote (read rule 5️⃣ for that)
and more details, that way your chances to get help will increase
Anonymous
Anyone can tell how to configure https in ec2 with nginx
Tanu
Can you please ban this id
Athar
How can I implement email password as well as phone otp authentication in django rest framework
Both in same project
Tanu
I'd name(.)
Tanu
In your django group
Tanu
Plzz sir
Tanu
it asked me for the job
Maxim
Tanu
49 doller pr hour
Rajesh
Hi can anyone help me in django custom user authentication?
Rajesh
If anyone knows about plz dm me
Doragonsureiyā
If anyone knows about plz dm me
Can i send you a private message?
No. We do not provide one-on-one tutoring, hire someone if you need it. Questions are better answered in public so that everyone can learn.
Tanu
Tanu
I leave this grp
Athar
Who is doing this
XTM
Hi, I have elastic search working with my django app.
Can someone tell me how to make the admin search bar work with it?
игорь/igor
XTM
How does elastic work with your Django project?
Db is indexed there and I can access it via elasticsearch queries
It's a huge database. I recently implemented ES so I can search fast. But I need to search from admin panel where I have some actions and the display of the DB data is clear.
игорь/igor
Use it in admin the same way you use it elsewhere. You need to override get_search_results in model in admin.py. Although read docs
Saikat
{% load static %}
<link rel="stylesheet" type="text/css" href="{% static 'style.css' %}" media="all" />
css is not loading. why? please help
игорь/igor
Saikat
in page source it is showing
<link rel="stylesheet" type="text/css" href="/static/style.css" media="all" />
Anonymous
Saikat
Anonymous
Saikat
0hh, i am sorry
Eugene
Why is my form not valid ?
i just wanted to call field from my form and change it every time i push button.
if request.method == 'POST' and 'cancel' in list(request.POST.items())[1]:
form = CreateStoryForm(request.POST, request.FILES, instance=story)
print(form.dict)
form.dict['is_active'] = False
print(form.is_valid())
if form.is_valid():
form.save()
messages.success(request, 'good')
return redirect('home')
else:
pass
игорь/igor
Eugene
Ajit
Hello Developers..!!
Ajit
I have a doubt.
I am new to Django, and Getting started now.
I am running a django app via Command prompt with
Python manage.py runserver
But, this is showing error in the Browser saying
This Site can't be Reached
Err_Connection_refused.
How to solve this??
Braimah
Ajit
Are you getting any error from the terminal?
Noo no.. Terminal is running fine, but when terminal shows Port no.to go for the output, i.e ip address where the actual output will be shows(in my case Chrome), showing no result..
Maxim
Maxim
did you tried 127.0.0.1:8000 ?
Ajit
Ajit
VISHNU
I am using generic foreign key for user relation.
So in admin panel I need to make like if I select the content type I need to show the email related to that content type how it can be done.
Ankit
Hello everyone I get stuck in my project where I am using User Model which is inbuilt and UserAdmin which is also a inbuilt class, Now I want to customize my Model fields like I don't want to show First_name which is default field of UserAdmin Class and instead of that I want to show the field name like city. But it is not working I am getting an error
Ankit
the error is <class 'user.admin.AdjUserAdmin'>: (admin.E108) The valur of 'list_display[3]' refers to 'address', which is not a callable, an attribute of 'AdjUserAdmin', or an attribute or method on 'auth.User'
Mo
Hi, although a filed is defined as floatfield in model but after assigning value its type is class str. why it is like that? thanks
Jay
Anonymous
Anonymous
Ankit
Ankit
Ankit
Which jay has told me
Anonymous
Which jay has told me
Your are trying to customize your model in the admin interface. Your provided an option in list_display which was not defined in your model. That's the error you are getting.
Ankit
Yes
Ankit
But I am so confused
Ankit
To remove that bug
rtg
Hi! Django lovers! Question: I have a Installation(models.Model) and ImageInstallation(models.Model) When i create new Installation, y need to create a folder for images (folder with installation id name). Example static/installation/1/ How can i do that? 🤔 Thanks!
Mirco
Anurag