cj
I'd stick using a RDBMS with Django
Kowalski
Yeah, im working with postresql too, but im asking if in case i ever need to work using mongo
Anonymous
Any had used django custom user model ?
Anonymous
With function based view
Anonymous
Do we needs to extend it , if i need to upload a picture. As user profile ??
Anonymous
Any ideaa
cj
Any had used django custom user model ?
https://simpleisbetterthancomplex.com/tutorial/2016/07/22/how-to-extend-django-user-model.html
Anonymous
Thanks
Mirco
Official docs tutorial
Ghorz
Have you tinker with python
Shaan
Django docs from official website will do. Don't just read try implementing it
Victor
How can I return column FIO from my model USERSBD not only primarykey this model? I am doing it at this moment like Responsible = models.ForeignKey( 'users.USERSBD', on_delete=models.CASCADE, related_name="Responsibles") P.S. users-app in the project
Anders (izzno / gooood) 🇳🇴
How do you guys implement NPM packages in your project i.e. Semantic UI. I installed it in to static with my project dir as the project dir and it dumps a "#¤"load of files in my base dir...
ⓦⓐⓢⓓⓚⓘⓛⓛⓔⓡ
I created real time chat application using python and django-channels, now I need to implement real time voice call solution, how I can achieve this in python? I saw there is a module call pyaudio, need to try it. Can we achieve this, without using any paid module?
Juan José
hello everyone
Juan José
do you know if I want to create an desktop application using django?
diproger
Hello everybody, how can i add a field to a table without loosing existing data?
Alexander
do you know if I want to create an desktop application using django?
you should consider not create desktop app at all or use some javascript Vue.js-based ui with electron or use pyqt or kivy
Shubham
Hello
Shubham
How to add extra fields in http://127.0.0.1:8000/api/v1/rest-auth/registration/. Im following this link https://wsvincent.com/django-rest-framework-user-authentication-tutorial/
Shubham
The link is so good You need to extend AbstractUser
In documentation of the rest-auth nothing is given
Mirco
In documentation of the rest-auth nothing is given
Yep, but it's relative to User model so you can find what you're looking for into Django official docs as well
Shubham
Can we customize the all auth package from site package
Mirco
Shubham
Why ? Override what you wanna change
Want to add extra fields like, fname , city
Shubham
etc
Shubham
https://simpleisbetterthancomplex.com/tutorial/2016/07/22/how-to-extend-django-user-model.html
Shubham
Should I go with option 2
Shubham
I'm sure but just confirming
Shubham
Among the given link
Mirco
yep and you should use your own RegistrationSerializer to have custom fields
Mirco
this is the right link for your scenario @Snj1507
Anonymous
Hi.. I used formset factory to add data. But I'm how re populate data to edit it ??
Anonymous
Queryset shows error
Anonymous
Is it possible to do that ?? Or i have to inline formset ??
Anonymous
Any idea
Mirco
show your code
Anonymous
https://dpaste.de/icLM
Anonymous
In html i used, {{ pdfformset.management_form }} {% for form in pdfformset %} {{ form}} {% endfor %}
Anonymous
Error is , Init__() got an unexpected argument
Arthur
Any free good resource to study complete Django?
{°_°}
tnx for the last help
{°_°}
one more thing i wanted to creat profile to users and companys how can i store those account separetly any ideas please?
乌卡帕拉
hihi, Happy Valentine's Day!
N
Hlo everyone as I m new in Django please help me how to start in Django
Mirco
Hlo everyone as I m new in Django please help me how to start in Django
Read pinned message You will find all you need in resource
N
Which one
Mirco
Which one
@pythonres
N
Thanks alot
Mirco
Yw 😁
Oleg
how check if value is array in jinja template?
Shivam Negi
hey guys I am creating a Django form in 2.1 version but custom validation is raising Validation Error...what to do?
kintul
How can i print stuff on console (either of server or web browser) from html lying under template folder??
kintul
you can't call python functions from django templates
I know, it is all html files under template folder. In html file i can't use print function hence looking for some alternative method
kintul
do it in the python side 🤷🏻‍♂️
Is there any good documentation where I can understand flow and relationships between files - - views.py, url.py and html files under template folder
kintul
did you follow the official tutorial?
Yes but I am confused how data flow between these files 😞
cj
Yes but I am confused how data flow between these files 😞
urls.py are the communication point between user (browser), it tells django what to call, an URL is associated with a view (in views.py), when a user goes to an URL, the associated View is run, and if that view has an associated template, it will be displayed in the browser
cj
Yes but I am confused how data flow between these files 😞
read this: http://www.thomaswhitton.com/django-presentation/images/432038560_9f8b830dfe_o.png (old but good)
cj
Thank you 🙏... One last question, in which folder .css should be kepe?
in a /static/ folder, read about it: https://docs.djangoproject.com/en/2.1/howto/static-files/
Nazar
Hi guys✋ How can I remove tags in command line?
Nazar
I created in tag: title and slug
cj
🤔
Nazar
I need to remove one tag
Álex
I need to remove one tag
An instance of a Tag?
Nazar
Yes
Álex
Tag.objects.get(id=YOUR_TAG_ID).delete()
Nazar
Thanks👍
Felex
Felex: Hello,who can give me an insight on how to upload multiple images in django