Mirco
great so you don't know what a Django validator is
Mirco
so please could u study it on Django docs ?
Mirco
I've provided u the link this morning
Mirco
trust me after you have studied it, your goal will be much easier
Anonymous
I am trying to understand the database models in django. I wanna create a TodoList application which contains many todolists and many items in those lists. I added models and added foreign keys but don't know how to add a new item/todo to a new list. Any references ?
Anonymous
Have you tried the tutorial from django doc?
I was following along but because of that time thing in polls app I have to quit
Anonymous
https://www.pythonistaplanet.com/to-do-list-app-using-django/
mm He is creating only one list I want to create multiple lists and those table will be connected. I added the ForeignKey but don't know how to add a new item in list from shell.
Anonymous
https://pastebin.com/u/bhuvanbk
Anonymous
https://pastebin.com/u/bhuvanbk
many time i have tried but again and again iam getting same error pls help me
Mirco
if you don't know how to create model's instances, study again Django basics from docs tutorials
Anonymous
List1 - item1 item2 List2 - item1 item2 I've created 2 models classes one for List and one for Item and connected them with Foreign Key. When I create an instance of List How do I add an Item in it.
Mirco
spend time to understand
Anonymous
Ohk Thanks
Mirco
Ohk Thanks
you can find on official docs how to create related objects
Mirco
Ohk Thanks
and think better about models, are sure ForeignKey is enough ? the same item can appear into other lists
Utsho Sadhak
I created a sign up page for my website When I first go to the sign up page it show me the character of password but I want it will be shown only when user did not give the right kind of password. How to fix this problem?
Utsho Sadhak
Anyone ??
Mahammadhusain
How to change value of booleanfield (True/False) with button click with Django??
Abdulloh
Hello I can't get image url from this webpage: https://makromarket.uz/products/cai-taskentskii-granuly-i-listya-250g-8wz can anyone help me?
Rony
I have a simple question. What is best? Aws or heroku to deploy a Django project? I never used aws. Is it good?
Rohan
But it’ll require some level of system administration and management
Rohan
If your application is small on target audience and you lack DevOps experience, go for heroku
Rony
It’s job purpose.
Rony
But some job circular ask for aws that’s why I was interested
Rony
Heroku will be fine
I think I understand now. Thanx.
Mirco
But it’ll require some level of system administration and management
https://aws.amazon.com/blogs/containers/introducing-aws-copilot/ This one will help developers a lot!
..
If your apps is small you should prefer pythonanywhere for hosting
..
My app is only to show in my job application.
Why not use some function instead of using a whole machine use ibm cloud or firebase functions for the same they both provide it for free almost
Azar
Hi I wanna make action in admin django to export to pdf. Could u please send me tutorial about it???
Heigler Rocha
Hi I wanna make action in admin django to export to pdf. Could u please send me tutorial about it???
You can use pyfpdf as a helper to generate the file(s), then, write a custom admin action calling your generate function. Pyfpdf tutorial: https://pyfpdf.readthedocs.io/en/latest/Tutorial/index.html Custom actions tutorial: https://docs.djangoproject.com/en/3.1/ref/contrib/admin/actions/#writing-actions
purva
anyone configured logstash in Django, Is it mandatory to provide database_path parameter?
Sumit
I made one model and register with admin.py but when open in browser admin panel and open that model its showing error
Ismail
hello I want to add two models into DetailView Class how i can do it?
Shubham
django.db.utils.IntegrityError: FOREIGN KEY constraint failed
Mirco
django.db.utils.IntegrityError: FOREIGN KEY constraint failed
You are not setting the related object before saving
Shivam
can we do calculation on aggregate function?? Like this monthly = pra.aggregate(Avg('totalBuses')/10000 - 23)
Shivam
???
Feisal
Hey guys looking for a python/django, js/angular gig, contract or full time job..i have over 3 years industry experience. will send my cv and works on request. Thank You
Ujjwal
I want to integrate ml model in my django app .any good resource ???
Abhishek
Anyone did?, add one more field in User model.
Mirco
Anyone did?, add one more field in User model.
https://simpleisbetterthancomplex.com/tutorial/2016/07/22/how-to-extend-django-user-model.html
Abhishek
Thanks
Abhishek
But this not work for me i already use one-to-one Field..
Abhishek
Have you add field in user?
Mirco
But this not work for me i already use one-to-one Field..
Nope I think you have used the User - Profile strategy with 1to1 so option 2 in that article
Mirco
Have you add field in user?
Read that article option 3 and you will understand
Mirco
Okay let me check again
With that method you can create custom user model with new fields
Abhishek
Okay, but project in mid stage, so this is good approach to work with custom user model when already set existing user
Yuvraj
'IntegerField' object has no attribute 'is_hidden'
Mirco
Okay, but project in mid stage, so this is good approach to work with custom user model when already set existing user
Eh eh that's the main problem and why using a custom user is better at the beginning Now it's a pain
garrip91
How can I add Django to my operating system environment variables (I am using Windows 10)?
garrip91
Do you mean environment variables like SECRET_KEY?
It isn't secret key or password or token
garrip91
@LAbef My CMD-command "django-admin startproject ..." doesn't work