max 17
Adilet
yep
it's ok when you filter by fields without underscore in name
but if you have underscore in your field name, it not gonna work
max 17
NN
Hi there. Is there a way to show a form embedded in an admin view? Or an inline
v6nom 『 🅽🆃🅼 』
Hello i have a input and i want to add only this input in a div html
py
start_event = forms.CharField(label=False, widget=forms.TextInput(attrs={'class': 'input100'}))
How i can make ?
0x01
Hi everyone, I’m working on a blog project that has 2 apps (dashboard and blog).
I’ve been able to work on the dashboard app but I have issues connecting and displaying the blog posts/front end.
In essence, how do I link the the 2 apps when I import models from the dashboard app?
👑 Dharmzeey
👑 Dharmzeey
Vladyslav
hey everyone)
RuntimeError: Model class test_project.core.models.Clothes doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
my app is in installed_apps, but there is this problem
Vladyslav
what should I do🥹
Neo
Neo
class YourModel(models.Model):
...
...
class Meta:
app_label = 'whatever_app_name'
Neo
or check your application's app.py
0x01
Vladyslav
Vladyslav
RuntimeError: Conflicting 'clothes' models in application 'clothes': <class 'core.models.Clothes'> and <class 'test_project.core.models.Clothes'>.
Vladyslav
I don't understand why it seems like there is 2 modules core
The Inspired
show your INSTALED_APPS
Dhruv
Can we automate sqlite database to update everytime an query has been made
Doragonsureiyā
Dhruv
What are you talking about?
I have an api which gives me a csv file
That api gives csv file according to the keyword searched
That csv i need to keep in my database(one time is simple(manually))
I want to automate that code which remakes the table flushing the previous one
Ihechukwu
Favas
Any body know how to have vustom filter for tabular inlines
Santosh
Hello Guys, plz anyone knows how to use button tag using html from python code for the output of Puzzle Number Game??
Favas
Like list_filter for normal listing in admin
Marat Popov
need help! I'm making a navigation menu, the transition occurs via a link to a dynamic page with parameters from different database models. Throws an error: ```
keyword arguments '{'pk': ''}' not found
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="{% url 'prof-detail' pk=professor.idDiscipline_id %}">Info</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'prof-detail-discipline' pk=discipline.idDiscipline %}">Disciplines</a>
</li>
Ravi
need help! how to associate model with current user while saving?
Ravi
How to create a model which contain two fields like created_author as Current user and updated_author when record is updated as current User
Anonymous
Anonymous
And if you want to check if the current user who wants to edit the post or something is the actual author then you can just perform some condition checks
Anonymous
Like
if request.user == post.author
Do this
Else:
You're not the author of this post
Anonymous
Eslam
Guys is it normal to use uuid instead of slug to display the product
Семерухин Михаил
Eslam
Ganesh
How to save logged in user ID to database using view and same filter data added by user
Mirco
Gumi
I'm using django's EmailMultiAlternatives to send html template as mail, but when I send mail it does not load css, I tried with external and Internal CSS both
https://drive.google.com/file/d/1jNsQ-ZnpXY86biHA7qASygZZwGYtoKTj/view?usp=sharing
This is what I am doing
Naggafin
Naggafin
mail clients typically refuse to download external css files so you usually need to inline your css
Bagaudin
how open file debug.log?
Shivam
how open file debug.log?
To enable debug logging information and open the debug log file:
Select Preferences from the Preferences Toolbar.
The Viewer/General dialog box displays.
Click the Error Log File check box.
Click OK to save your selection.
Open the Debug Log located in the following directory: 
Windows XP, Windows Server 2003 - c:\Documents and Settings\[user]\Local Settings\Temp\Prizm Viewer Log File.txt
Windows Vista, Windows 7, Windows Server 2008 - c:\Users\[user]\AppData\Local\Temp\Prizm Viewer Log File.txt
Windows Vista, Windows 7, Windows Server 2008 With IE in Protected Mode - c:\Users\[user]\AppData\Local\Temp\Low\Prizm Viewer Log File.txt
Open the Prizm Viewer Log File.txt by double-clicking the filename. The debug log file displays:
Ganesh
MUHAMMAD Ahmed
Is any way to embed video from local directory without media folder.
Bagaudin
Yogesh
How to access admin panel after deployment in production help me
Sibiselva
I am creating small api with sqlite3 as db . In filter method if i pass lte or gte means the data is properly fetching but if i gave both lte and gte means all data in the db is returning. How to fix it
Vaibhav
Egor
Hello everyone.
Tell me how to authenticate using the link if the access of insecure applications is blocked?
Ajn
Anyone have guide on deployment of django application on Aws instance
Sibiselva
Doragonsureiyā
Can i send photo
Rule 5️⃣: Never post walls of text or screen photos. Use paste bins like https://linkode.org, https://nekobin.com (or your favorite one)
Sibiselva
Would be helpful if you can share code + expected output
https://nekobin.com/camuqudiqu this is function
In filter iam passing agegte=20,agelte=30.
So the expected out is the age between 20 and 30 but the actual output iam getting is whole data.
If I use any one filter like age__let=20 means the data below age 20 is returning
Sibiselva
Anwar Sadik
Anwar Sadik
Any one to help to deploy django project in aws
Sibiselva
Mahmood
Hi everyone
I'm making a site where the domain change dynamicly from the server
I'm using custom app something like the "Django Sites Framework"
The domain stores in a model in the database, and I want to update the ALLOWED_HOSTS from a model in the database
Anyone have an trick to do this
Doragonsureiyā
Mahmood
Naughty
Can anyone guide in add,update,delete and displays products in django and fetch category
Arslan
Hi why swagger gives an error when I go to the handle with the get method {
"detail": "Authentication credentials were not provided."
} I am logged in to the admin area status code 401
Mirco
Arslan
Thanks
Boogeyman
Hey everyone how can i used store procedure in my django model
V
Any project ideas in django
Doragonsureiyā
Yogesh
How to access admin panel after deployment in production
Yogesh
Anyone have idea
Emmanuel
Mahmood
Check out Django tenancy
This doesn't fix my problem
I just want to know how to update the ALLOWED_HOSTS from queryset, when i run my project
If you know where i should put the code for updateing the settings.ALLOWED_HOSTS when the my project run
This will be helpful
And Thanks for your answer
Raymond
Avi
Hi any django developer i need help please
Ali
Just post your question here & who can answer will help u
.
Mahmood