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
Abhishek
Please suggest me best YouTube channel for learning about django
Eternity
Please suggest me best YouTube channel for learning about django
https://youtube.com/@DennisIvy?si=ZdMqiB0t-2KOICIx
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
A3S
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????
Identify the Issue: The error message you provided suggests that the migration 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
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
Frodo
Can i get the user roles management in realestate application
I am developing one at the moment, will be glad to get share once once am done
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
To check whether a user is logged in or not should we use the condition in all the routing?
Do you want to check only or to redirect+deny the usage to non logged users?
Muflone
I want to redirect to login page..
There are decorators and classes to handle this
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?
Muflone
Should use DJango Admin?
Only if you need it, else not
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.
jahanbini01
Hello, everyone. Who can help me? I can't make migration by admin.
if your database is not valid delete your database and migration files and try again
Nurlan
Can you go to private messages? I can't explain this error without photos
Doragonsureiyā
Can you go to private messages? I can't explain this error without photos
To share code or error tracebacks, use a pasting service, like: - https://linkode.org - https://dpaste.org
Muflone
Can you go to private messages? I can't explain this error without photos
This is a group for developers, not an Instagram with photos of kittens Learn to explain and learn to read the error messages. You have zero chance of succeeding if you don't learn these two things
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 ?
Bibhuti
is there a tool to make our code clean in django
Pretty code or something like that an extension vs code
Mirco
is there a tool to make our code clean in django
Ruff + black can do all the stuff now 😊 2 tools to be installed rather than some if used with pre-commit even better
Yaroslav
flake8
Yaroslav
pre-commit
Mirco
flake8
ruff is faster 😊
kiran
Show the data if id =1 or id=2 can we query like this..
kiran
In django filter
kiran
I need to query the resuls two data with id 1 and 2
kiran
Can we do this in django..
Doragonsureiyā
Can we do this in django..
Looks like you need to read the documentation of it
kiran
I need to query the resuls two data with id 1 and 2
I need to get the query of status (requested and accepted)
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
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?
DRF uses ORM to interact with database Don't get confused Django layer to query database is always through ORM unless you write raw queries
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.
Doragonsureiyā
Gonna start to learn Django REST , can anyone provide me with a good resource.
Are you looking for Django REST Framework documentation? Here you have it: https://www.django-rest-framework.org/