Alex
i did it didnt work
could you please show us the full session from your terminal? How this command worked.
ᶜᵒᵐᵐᵃⁿᵈˡᶦⁿᵉ
could you please show us the full session from your terminal? How this command worked.
when error occured i was on ubuntu 16.04 which comes with lower version of python 3 and so was the error, as i suppose, after an hour later i switched to bionic, and havent installed it yet so if i encountered the same i ll ping you!
Alex
what ever
Luis
I know you wanna help, but that's not the way, you gotta stay chill bro @alkalit
inchidi
because when i install pip install django, by default it installs 2.2.10, why?
check your python version, django 3 only support python >3.6
ᶜᵒᵐᵐᵃⁿᵈˡᶦⁿᵉ
Opeyemi
If you don't mind can you share snippets coz I had tried that but didn't got success
were you able to solve this?? i recently completed a project with rest auth and if you need help just message me.
Opeyemi
How I do email verification using Django?
i used django rest auth and allauth for this, they also provide password reset, customizable email template and the rest.
Opeyemi
Can you please provide link?
do you mean a link to the documentation or a project i have used with it?
Bhartiya
Yes
Batman
do you mean a link to the documentation or a project i have used with it?
I'd also like the link to the project if possible 🤔
Anonymous
One thing I want to ask can we use database like mongodb with django?
Raudin
yep
cj
you'd better use relational databases
cj
well, you can use NoSQL databases too, but making Django to work with them is a headache
Anonymous
Ya I think with nosql database we don't able to use that web api platform and the admin panel .
Anonymous
One more thing if I want to create nested serializer of same type with full data how can I do that: class ProductSerializer(serializers.ModelSerializer): varients =ProductSerializer(many=True) //will not work alsoBuy = ProductSerializer(many=True) //will not work
Anonymous
And this varients and also buy are many to many field of product
*( (*
Best source to learn django for beginners
Doragonsureiyā
Best source to learn django for beginners
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Alex
One thing I want to ask can we use database like mongodb with django?
Yes you can. Nosql db are absolutly fine IF you understand when and how to use them. The common mistake is to start a project to, say, mongodb and then ask smt like "hey, how to join tables here". Your documents actually are already joins of domain objects of your project.
Alex
If you can ans. my 2nd qsn about serializer.
Theriotically you could be able to use nested serializers. But if in django you can get all related objects in a single query, in mongo you will have to make a query for each set of objects.
Alex
So technically there is no problem.
Anonymous
Iam not talking about mongodb iam talking about RD and one confusing thing is how can I initialize a field to a serializer which is not definied but the irony is that I have to initialize in the same serializer....any hack ?? Beacuse in product serializer Iam initializing a field to a product serializer itself which is incorrect but which is the other way?
Alex
And you should definitely train your english so other could understand you.
Anonymous
🆗
Alex
Arpit is that what you asked?
Anonymous
How we can do geofencing in Django
Anonymous
Can anyone tell about it
Anonymous
Arpit is that what you asked?
Little difficult to tell you guys with the help of only text to make you understand that what is the problem, let me form my question in better way, so you can understand better....
Doragonsureiyā
How we can do geofencing in Django
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box write down the same words you asked here Step 4: Read the firsts results
Franck
Good morning please how to send email in my djamgo app deployed on heroku. When I test my app in local it send well email but at the heroku it give error 500 response ...please help me
Franck
good night and use Google
In my local I use Gmail address to send a mail
Anonymous
Arpit is that what you asked?
When I analyse my problem I got that If I do what I want to do ,then It will leads me towards infinite recursion.
Anonymous
Thank you for giving attention to my problem.
Aroop
How to implement multiple user type login in django
Moeed
Hi, I'm facing an issue, of "transmission of credentials in clear text" My site is already deployed using Apache2.4 on https scheme. Can some one suggest/help?
Moeed
Hi, I'm facing an issue, of "transmission of credentials in clear text" My site is already deployed using Apache2.4 on https scheme. Can some one suggest/help?
question on serverfault https://serverfault.com/questions/1003045/how-to-encrypt-credentials-using-apache-for-django
Ngeene
How to implement multiple user type login in django
you can implement a tuple and define the type, then call the tuple as a choice field in a user type field defined in the model
Ngeene
you can implement a tuple and define the type, then call the tuple as a choice field in a user type field defined in the model
STUDENT_TYPE_CHOICES =( ('Alumni', 'Alumni'), ('CS', 'Continuing Student'), ) class UserAccount(AbstractUser): first_name = models.CharField('First Name', max_length=50) last_name = models.CharField('Last Name', max_length=50) email = models.EmailField(max_length=254, unique=True) photo = models.ImageField(null=True, upload_to='profile-photos') phone = models.CharField(null=True, max_length=15) gender = models.CharField(max_length=6, choices=GENDER_CHOICES, null=True) membership_type = models.CharField(max_length=15,choices=STUDENT_TYPE_CHOICES,null=True) something like that
Ejaz
Can anyone send me the link for django
Anonymous
Where to deploy Django app for free
Mirco
Where to deploy Django app for free
Heroku has free tier but limited PythonAnywhere too AWS too etc. etc.
Manik
rebase vs merge of git commands
Doragonsureiyā
rebase vs merge of git commands
looks like you need an offtopic group, please continue this conversation at @pythonofftopic
Anonymous
Where to deploy Django app for free
Heroku is obvious choice for small application and just for showcase purpose. If you want everything customized and want to deal with large traffic then 1.Aws 2.digital ocean
ᐯᑌᏞᏦᗩᑎ📈
i am learning python can you guys give suggestions about beginner projects?
Vishnu
Hi guys, Suggest me some good Django tutorials....
ᐯᑌᏞᏦᗩᑎ📈
corey schafer django tutorial
Doragonsureiyā
Hi guys, Suggest me some good Django tutorials....
Check out PythonRes, a channel for Python resources (links to help you out).
Nurbek
"Dumpdata" from postgres - "loaddata" to mysql in django
Nurbek
"Dumpdata" from postgres - "loaddata" to mysql in django
Any suggestions? Will it work? I want to migrate from postgres db to mysql db
Sergey
It will
Nurbek
It will
Thank you for your response! Quick and simple answer I needed)
Alex
And no, I doubt it will work
Nurbek
And no, I doubt it will work
Once I migrated from sqlite to postgres and it was really satisfying, unfortunately most hosting providers don't support psql. Vps is expensive for small projects
Nurbek
And when decided to migrate to mysql couldnt remember how i actually migrated from sqlite lol
Anonymous
how do I see which version of python is used on the django project, I'm looking at the django source code for people
inchidi
how do I see which version of python is used on the django project, I'm looking at the django source code for people
use latest python, new python version support older django but old django version doesnt support older python
inchidi
*most of time
Anonymous
If you are using pycharm for example, check on virtualenv settings
MK-47
How do i add spacing between paragraphs and also add subtitles in my django blog project?
@NDev
http://codingdevhub.cc/index.php?threads/how-to-create-a-django-project-from-a-template.5/