Anonymous
Hi, apply to Backend Development (Django) remote position. Just reach out to this email: blasko@selfdecode.com
Anonymous
yes, 2 years, but if you do the initial tests well, you will be considered as an intern
Anonymous
any experience needed?
yes, 2 years, but if you do the initial tests well, you will be considered as an intern
Anonymous
Any questions you have just send an email to the adress. tnx
Akhil
Anyone who can do paid work in django for 2hrs, precisely from 9:30-11:30 in the morning on 14june 2021
____Cheems
Hi everyone, I'm working on an Ecommerce website project. I want to show product price according to size of the product. How can i implement this. ?
Sharwin
I have an error, I used the django built in 'users' model to store my users. I have another model to store the Articles of users. Now I wanna filter the articles of every particular user in the user-profile page. and i used the query below "user1=request.user user_articles=Article.objects.filter(author=user1.username).values('author').order_by('date')"
Sharwin
But it throws an error saying
Sharwin
Field 'id' expected a number but got 'myuser'.
Sharwin
Does anyone have any idea on this?
William
Does anyone have any idea on this?
Try removing .username in author
Sharwin
Thanks!
Sharwin
I got it partly solved
William
Instead of passing a request.user in a variable. Its better if you pass it directly inside the filter.
Sharwin
Try removing .username in author
even then it doesn't filter based on the username
Sharwin
it simply shows all the articles published
William
it simply shows all the articles published
Filtered by authenticated user
dmitriy
Hi everyone, I have a tricky question. I am trying to customize the model editor page, I need to change the logic in one field, which I will describe below: initially the field looks like a normal selection field, but based on what choices I make in this field, a new selection field will be added next to the first one. When it comes to saving a part of the model, both options will be saved as a single row
dmitriy
any suggestions?
Bharathwajan
anybody deployed django on digital ocean i tried configuring gunicorn.socket file but when i run curl --unix-socket /run/gunicorn.sock local host i received error curl: (56) Recv failure: Connection reset by peer
Harshit
Guys how we can send image file as response in Django from class based view.
mansour
Hello I have a Python file that should be running around the clock How to run cpanel.
Anonymous
How can i create slugs for each user.username?
Anonymous
Anyone?
Oleksiy
Anyone?
I believe there should be function slugify() somewhere in django utils
Charly
Hm, no other way?
what is wrong with that?
Anonymous
Oleksiy
Hm, no other way?
Third party apps for django or , maybe, you can write such function by yourself. Then add method with "property" decorator, or create a field in the model with post-save hook, or new save() method
‎_/-\_¦--¦‎
Hm, no other way?
I think this might be helpful https://django-autoslug.readthedocs.io/en/latest/
Anonymous
I used to create my slugs in another way, like get_absolute_url. But here i could not get username
Anonymous
Thank you guys
Anonymous
I have following models: class Book(Model): name = models.CharField() class Author(Model): books = ManyToManyField(Book) I can query all books of an author using: author.books.all() How to get that by querying Book Model: Book.objects.filter() I am trying to get this via Book Model because it's getting queries by a datatables.js to allow dynamic table. I have an author detail page which will show all his books as a datatable.
William
I'm not sure whether it's an author=1 or author__id=1
William
Do check the Django documentation
Astrit
Hello guys hope your doing well can anyone tell me how can i display foreign keys into django admin,when inheriting from AbstracUser.
Astrit
If anyone can help me through it
Astrit
Here is my stack quesation: https://stackoverflow.com/questions/67811332/django-display-foreign-key-on-admin-dashboard-when-inheriting-from-abstractuser
Boukri
i need help solve this problem (i can't open manage.py) if can someone help me
DonLarry
You can't open or run ?
-
And good django project ideas?
Charly
DonLarry
a project suggester
XDDDDDDD Google: django project ideas 1st result: https://www.upgrad.com/blog/django-project-ideas-topics-beginners/
Jasir_
I got str returned nin-string error, how can I fix this, because I can't add any item from backend
Jasir_
anyone please m stucked here for hours
.
I need help with creating unique profile and content page for different user can anyone help me please!
Zikrulloh
Hello everyone i am new to django. I am trying to send email from a form on a localhost web page but when i receive the email it does not show the 'from' email in the sent email. Can anyone explain it please?
Zikrulloh
The form has inputs for subject message and email from the sender.
Zikrulloh
And send email is like: ( Messagesubject, Message, Messageemail, ['to' my email], Failsilently=false )
Himanshu
Can someone suggest how to create char autofield of max length = 5, in django models (with Oracle DB)
Lavlesh
Guys anyone Having realtime example tutorial of django+python?
Lavlesh
I'm beginner, can some please share some good tutorial of django+python.
Onks
personally I feel that you need to learn from as many sources as possible because every tutorial has something new to offer, but this was a good starting point for me. Additionally you can look into Corey Schafer's blog app, it was a bit complicated for me initially but after a while I learnt a lot from there.
Yaswanth
Can anyone tell me , what is the use of middleware and why we wanna use it..?
هادی
i need help solve this problem django.db.utils.OperationalError: FATAL: Peer authentication failed for user "postgres"
Onks
Thanks you so much for your suggestions ☺️
Would even recommend books, since videos are difficult to refer to everytime. Django beginners by Nigel George was pretty concise, around 300 pages. Once you get comfortable with how django works, you could give the books a try.
Hikmet
Hi there! I want to make database connection url for using it in view. import connection_url def db_connection(engine, username, password, host, port, db_name): conn = connection_url.config('{}://{}:{}@{}:{}/{}'.format(engine, username, password, host, port, db_name)) return conn Something like that. The question is, am I doing it right? Means does conn return connection object? Because I would like to pass it through session to another view in django P.s I am using django-connection-url library
Ankit
Can anyone help ? Please list some Django projects for begginner and intermediate?
Sharwin
I'm beginner, can some please share some good tutorial of django+python.
https://www.youtube.com/watch?v=n-FTlQ7Djqc&list=PL4cUxeGkcC9ib4HsrXEYpQnTOTZE1x0uc
Anonymous
Thanks you so much for your suggestions ☺️
Building a website with django 3 by nigel george is best beginners book for building a small web project, i myself read it and its been 1 month since i started learning django, for video purposes prefer dennis ivy and Corey schafer ofc.
Kissanth
For django
Deleted
searchable select box library Select2 could not work: https://stackoverflow.com/questions/67819127/searchable-select-box-library-select2-could-not-work
Pragya
Can u help me anyone please... How to get data from html page in view. Py using context
Prabhakaran
Can u help me anyone please... How to get data from html page in view. Py using context
In short.. Store the database query in a variable and pass it into context then place the variables in html page.
Macurrent
I love already done projects in django. which book has alot of resources for already done projects. Even a website would be better