Tushar
I want to connect dynamic database it may be in sql, Postgrysql Or other rdbms, where credentials share throw the api request is this possible if yes please help me
ashu
Abhishek
Please suggest me best YouTube channel for learning about django
Eternity
Eternity
This channel is quite good for beginners
Sachin
Hi All, I have come across a very unique kind of problem and have got nothing from Google
Sachin
The issue is that I wish to use a python function's output as password for postgres db in my django application
Sachin
But settings.py file calls that function only once when the application is being spin-up
Sachin
Spin-up --> python manage.py runserver
Shaheen
i just delete some of migrations files so now i cant make migrations
Shaheen
raise this error (django.db.migrations.exceptions.NodeNotFoundError: Migration web_app.0019_alter_salary_sid dependencies reference nonexistent parent node ('web_app', '0018_salary_sid_alter_salary_id') )
how to fix this????
Shaheen
anyone please help me
Shaheen
Shaheen
A3S
web_app.0019_alter_salary_sid depends on a parent migration named 'web_app', '0018_salary_sid_alter_salary_id', but this parent migration doesn't exist.
A3S
parent migration doesn't exist
A3S
i think
Shaheen
so, i cant use it ever again??
🐺WolfFang 🐺
Ok, I just wanted to help
㊝┇ᴋᴀᴋᴀʀᴏᴛᴏㅤ☁︎
Can i get the user roles management in realestate application
Doragonsureiyā
Can i get the user roles management in realestate application
We're not here to do your job for you.
This group is to help you on specific issues you have in YOUR code, so you have to show the code you wrote by yourself and explain where and why you are stuck... as simple as that. 🤷🏻♂️
Muflone
so, i cant use it ever again??
Restore the file from backups, trash, git
If you have not both of them, stop your development now and setup them
Ahmed kamal
iam beginner and i have small error and one can help?!
Doragonsureiyā
iam beginner and i have small error and one 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
Bhargav
I try too many times but can't achieve transfer data from one model to another model and after transfer data old model data will be delete. Please give solution for that.
Артём
Hey guys!
How to create cart system in django?
Explain to me pls
Anonymous
I I have a doubt
Anonymous
To check whether a user is logged in or not should we use the condition in all the routing?
Muflone
Anonymous
Anonymous
Oooh okay thanks.
Anonymous
Actually currently I'm checking the user login by setting a session id.
Anonymous
Is that the proper way or safe way?
Muflone
Not the correct way
Anonymous
Should use DJango Admin?
Anonymous
Okay. Thank you so much.
Muflone
https://docs.djangoproject.com/en/4.2/topics/auth/default/#limiting-access-to-logged-in-users
Continue reading, don't follow the first solution only
Anonymous
Okay
Nurlan
Hello, everyone. Who can help me? I can't make migration by admin.
Muflone
Nurlan
Can you go to private messages? I can't explain this error without photos
Muflone
Hint: the error message refers to a database not writable
Nurlan
thank you, i done it
Nurlan
work it
Lauriano
Hi guys
I'm new to django,
and I'm creating a crud based on a tutorial on the internet.
I need to add a field in an already created form, the class that adds the fields is this:
@login_required
def new(request):
if request.method == 'POST':
form = NewItemForm(request.POST, request.FILES)
if form.is_valid():
item = form.save(commit=False)
item.created_by = request.user
item.save()
return redirect('item:detail', pk=item.id)
else:
form = NewItemForm()
return render(request, 'item/form.html', {
'form': form,
'title': 'New item',
})
How can I add a field in this class?
Nguyen Xuan Ngoc
https://github.com/unfoldadmin/django-unfold
Hi guys I want to install this admin theme can I copy the source to my project instead of running pip install django-unfold ?
pranav
Lightbourne
Vaibhav
Максим
Yaroslav
flake8
Yaroslav
pre-commit
Mirco
Yaroslav
kiran
Show the data if id =1 or id=2 can we query like this..
kiran
In django filter
Maxim
kiran
I need to query the resuls two data with id 1 and 2
Maxim
kiran
Can we do this in django..
kiran
Both are in single field it will change according to the status
kiran
Carrerrequests.objects.filter(status=requested,status=accepted)
Kareem
I am a bit confused
Django and rest framework offer queries that interact with database that's for Crud, filtering etc..
Which type of queries i should use always? ORM? or rest framework api queries?
Mirco
Anonymous
To everyone new to Django the key to mastering Django is first watch a YouTube tutorial of "Django for beginners" I will recommend Dennis ivy video 7hrs long then you can start reading and learning from Django documentation
Eternity
Yes, dennis 7hrs video is perfect. I started learning Django with it
Anonymous
Cos in the documentation you will find functions that will make you lazy(makes you write less code) and if you are having any difficulty read and understand very well don't give up then when you have tried your best and you don't still understand a particular part in the documentation search about that topic on YouTube/interact with an AI or ask here for more understanding
Dron
Gonna start to learn Django REST , can anyone provide me with a good resource.