William
When I delete a product, the order of the IDs is broken. 1, 2, 6, 8 I want to rebuild the IDs from 1
No, you can't do that. Because every item you have created will have a unique id. When you delete that id you can't replace the id with the next value.
William
And also I'm unable to execute command django-admin runserver
Its python manage.py runserver or py manage.py runserver
Yaswanth
William
django-admin is used to creating new project and creating app
Yaswanth
django-admin is used to creating new project and creating app
But when I run that command it's saying like : requested setting DEBUG , but settings are not configured. You must define the environment variable DJANGO_SEETINGS_MODULE or call settings.configure() before accessing settings...
William
django-admin and manage.py — Django 3.2.3 documentation https://django.readthedocs.io/en/stable/ref/django-admin.html
William
Maybe this will help you
William
👍
Manish
I have a table attribute with ManyToMany relationship. how can I see data value of this field in MySQL workbench.
The Arrow 🎶
i want to know how to export all database in django
Dharmu
Crontab not working in windows There are any solution
Anonymous
Good day I need help how do I make otp for forgot password in django API
Dharmu
Anybody worked with crontab
The Arrow 🎶
Doragonsureiyā
Anybody worked with crontab
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
Mirco
👋 hi any one here
Just export with pgdump if you are using Postgres
The Arrow 🎶
no i use mysql
Mirco
no i use mysql
So check how to export a database with MySQL on Google
The Arrow 🎶
Mirco
how do this
https://www.sqlshack.com/how-to-backup-and-restore-mysql-databases-using-the-mysqldump-command/
나다니엘
hi there.... how to use query params to filter table? i can't find any detailed explanation on how to use "query parameters" in url path in the official doc list/ - list all items in table list?q=keyword - filter/search & return the result
Mirco
Doragonsureiyā
thank
You're welcome! 😊
Mirco
no..
Ok so in your views you can find the query parameters in request.GET Based on your example request.GET["q"]
나다니엘
thanks
Mirco
thanks
Then for something more reusable there is django-filter
나다니엘
Doragonsureiyā
i'll check it out. thanks
You're welcome! 😊
Anna Karolina
how do I create the link (CharField)?
Mirco
how do I create the link (CharField)?
It does not make any sense Explain yourself better
Anonymous
anyone working on drf with mongo?
bablu
If i use playsound error is coming mci is not initializing on some files. some files are working
Anna Karolina
It does not make any sense Explain yourself better
already got it, thanks, excellent week
Mirco
anyone?
! anyone
Doragonsureiyā
anyone?
Maybe anyone is here, yes, but they are not obliged to read everyone's message here neither to reply to everyone's message, if someone wants to reply to your message, they will do that, just don't try to draw attention to your message writing "anyone?" every 5 minutes, that will lead you to be warned for SPAM/Flood, just be patient or use Google/DuckDuckGo to research about your question instead of wasting time here waiting for people to do your work. Have a nice day 😊
Si
I want to add my project to github but I can't
Si
anyone can help
Abdul Shakoor
Hi I need a help: https://stackoverflow.com/questions/67578338/how-do-i-reverse-one-to-many-foreignkey-relation
Anonymous
django rest api model serializer foreignkey value support DRF panel. but not show front API . so how to rectify this problem
Daler
Deepak
Is combining Django with React create powerful web pages ?
Shree
I am trying to creat django webapp which will consist of CRUD operations.Do anybody know how to provide del functionality in modal
William
Create a view function to get the is of the data and delete it and in modal form add delete view function url into it. That's it
Bunty chhatri wala..
If there are 4 users and every user have 8-10 posts.. but i want to display 2 post per user on Home page (Which is accessible by anyone whether a user or not) .. how to query that?
Dev
share Django flask tutorial practical
Dev
And projects
Bunty chhatri wala..
Use paginatio
Without using pagination..it cant be done with query?
William
By pagination only you can divide the content for the next pages.
William
Query by recent posts
William
User order_by('-date_created')
Rushabh
https://del.dog/liphenuvys.txt How to pass data from one view to another without dynamic url..
Rushabh
How I pass data in redirect ?
Shree
How to delete table data using confirmation modal
Anonymous
Hello,I am trying to build an doc appointment booking using django,I am new to django...i have completed almost everyitng that is required in tis project..but now i want to display available time slots to patient so he/she can book the appointment..can anyone help me with ths?
Vinayak
I am building django registration page it's giving value error Page if password we enter is same as username
William
I am building django registration page it's giving value error Page if password we enter is same as username
Yes, you need to use lowercase, uppercase, special characters, and numbers. Try this.
Vinayak
Ya but if someone enters same password as username it redirect to value error page
Vinayak
I want to give message in the registration page such that password must be strong
Shalin
I have choosed online job portal web application in college project and i am currently working on my project so there is one thing i would like to ask that i am thinking to implement one functionality like online interviewing due to cureent pandamic situation so how can i implement it ??
William
I want to give message in the registration page such that password must be strong
Use Django default libraries like UserCreationForm with crispy forms. It will do all the validation for the forms.
William
Check crispy forms in Django. That will do the work that you have asked