Aamin
there's a package for that django-environ Google it or u can parse the .env file using some python package and use it
Aamin
or use docker
Mikhail
hey guys, how many of u had been working with twilio ?
Mikhail
is it difficult to set ?
Doragonsureiyā
hey guys, how many of u had been working with twilio ?
Please don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello I need help on $z" Just ask about your problem directly! With 42k+ people the probability that someone will help is pretty high. Also please read: http://catb.org/~esr/faqs/smart-questions.html
John
Im starting to learn serializer in django, just want to ask when is the best way to use serializer or let say when will I should use serializer? TIA. .
Ram
What does meta class in django do?(I am new to django)
Ram
If you’ve a sample project to understand this, can you share ? I will learn and create one myself. That will help me understand better. ESP with a Postgres backend.
Rajab
https://www.djangoproject.com/weblog/2019/oct/14/django-30-beta-1-released/
Remy
Im starting to learn serializer in django, just want to ask when is the best way to use serializer or let say when will I should use serializer? TIA. .
I guess if you need serializers, its that you need an API. DRF includes serializers for that purposes
Remy
For a regular website you dont need them
Remy
Someone correct if I’m wrong
Ghorz
Im starting to learn serializer in django, just want to ask when is the best way to use serializer or let say when will I should use serializer? TIA. .
Mr. Continuesly asking WHICH, WHEN, will do you no good. It shows you've not made use of it. Try to put your options to action, you'll know what's best by the time you have used them. There is no specific answer to your questions because use case differ. Better programmera makes mistake, try try try fail fail fail success. My advice: before asking WHICH AND WHEN, do something you'll get the answer yourself.
Ghorz
is it difficult to set ?
Have you read the docs
Tony
Be more explicit
What I am trying to say is that I am trying to create an e commerce website and I want to assign an event to the add busket button which will increase the number of items in the user's cart but I can't find a way of doing that in Django.
Денис
probably you could use something like this https://docs.djangoproject.com/en/2.2/ref/models/fields/#uuidfield
Денис
What does meta class in django do?(I am new to django)
Meta does exactly this: https://docs.djangoproject.com/en/2.2/ref/models/options/
Ihor 🐈
Hello there! I encountered with incompatibility between DRF 3.10+ and Django-swagger. Does anybody know, will it be fixed in future releases?
Ihor 🐈
Because this package was really useful and convenient for me
cj
Because this package was really useful and convenient for me
DRF has its own tool to document APIs and try them
cj
https://www.django-rest-framework.org/coreapi/from-documenting-your-api/#built-in-api-documentation
Ram
Hello there! I encountered with incompatibility between DRF 3.10+ and Django-swagger. Does anybody know, will it be fixed in future releases?
Try Drf_yasg. Though it’s deprecated, I found that better than Django-rest-swagger which was built on top of drf-yasg
Anonymous
Anybody plz tell me... How can I see my Admin Page (Databases) after deployment on heroku server.... Plzzzz guys
Ram
who saaiiidd drf yasg deprecated??!
I think I’ve told the opposite. Django rest swagger isn’t maintained anymore. I’ve read that in their doc
inchidi
Yes
so the problem is you dont know how to create new superuser right?
Owolabi
hello please i need help resolving the errors i'm having in my django project
Anonymous
so the problem is you dont know how to create new superuser right?
By using python manage.py create superuser right?
Owolabi
I'm working on an app that enables authenticated users to post articles from their profile and i need it to redirect to the post detail after saving the form data but gives an error instead
Anonymous
then whats your problem?
Where to run this command?
Anonymous
While development environment we can use www.localhost:8000/admin But in production environment how can I go to admin panel
inchidi
While development environment we can use www.localhost:8000/admin But in production environment how can I go to admin panel
if you dont want to bother with heroku, just set your local settings.py database to use database you use in server
inchidi
then create superuser like usual
D4RK
Hi dear friends How can know or send web push notification in admin panel if new object add or change in django?
Owolabi
Pls, I'm having this error when i submit post form 'IntegrityError at /posts/new_post/ UNIQUE constraint failed: posts_post.user_id' any help would be appreciated, thnx
Денис
Just wondering why did you ignore me on asking to post your code on pastebin. Just wondering why...
Денис
Nevertheless, why OneToOneField? One user - one post?
Денис
sorry i dont understand what you meant by pastebin
pastebin.com Very good for sharing code in such groups
Денис
ok bro thanks
Again. Why OneToOneField?
Денис
No one know solution?
Did you even try to google it? https://www.digitalocean.com/community/tutorials/how-to-send-web-push-notifications-from-django-applications
Owolabi
Again. Why OneToOneField?
well, im new to django and i often get confused bet ween foreignkey and onetoonefield relationships
Lugano
I have this problem whenever someone signs up in my article website their details disappear after a period of time he/she will fail to login with the same details used in the sign up. https://the-dream.herokuapp.com/ The above is the website
Денис
well, im new to django and i often get confused bet ween foreignkey and onetoonefield relationships
OneToOne == one user, one post. If you try to assign another post to the same user, you'll get an error
Owolabi
i have a clear understanding about that now thanks
Nikhil
Case sensitivity
Do you think I have not tried it it is showing error then too
Lugano
Do not use SQLite. It's reset periodically in Heroku
Thanks man.so i should switch to postgresql?
Денис
Thanks man.so i should switch to postgresql?
https://stackoverflow.com/questions/35456932/heroku-app-database-resetting
Денис
TL;DR - yes, you should
Lugano
👍
Sirius
hello everybody! does anyone use "django-materializecss-form" ?
Doragonsureiyā
hello everybody! does anyone use "django-materializecss-form" ?
Please don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello I need help on $z" Just ask about your problem directly! With 42k+ people the probability that someone will help is pretty high. Also please read: http://catb.org/~esr/faqs/smart-questions.html
Sirius
I have a problem with "django-materializecss-form". It doesn't display my select's fields. But with others fields is OK...
Jinu
i have a doubt on serializer
Jinu
can we save datas to two different models using one serializer class
cj
can u explain
you have to define your serializers with the fields from the models you want to save data to, then redefine the save method on serializer and manually proxy the data from the validated_data to each model you want
Jinu
one more doubt
Jinu
can we use two serializer class in one APIView
cj
can we use two serializer class in one APIView
yes, but again, you have to do some things manually