Mirco
Anonymous
Why don't you provide forgot password
Mirco
You need his email
Anonymous
Yeah that's what
Mirco
To pass to Django's send mail
Bral Bral
This data will exists in email body
Mirco
You cannot manage user's password first because this is a violation of privacy and second sending clear pwd through email is stupid because emails body is clear so it's easy to do a man in the middle and read the password
Bral Bral
Man, i dont ask you about violations. I know about it. I asked specific question . If you don't know just write it.
Mirco
Anonymous
Yeah
Mirco
Mirco
You don't need user's passwords to send email to them after registration
Mirco
you just need to get their email and call send_mail() by passing your subject and body
Konstantin
Hello everybody!
this is my code:
# models file
class User(models.Mode):
name = CharField(max_length=250)
class Lesson(models.Mode):
name = CharField(max_length=250)
followers = models.ManyToManyField('User')
# admin fils
@admin.register(models.User)
class UserAdmin(admin.ModelAdmin):
fieldsets = ('name',)
@admin.register(models.Lesson)
class LessonAdmin(admin.ModelAdmin):
fieldsets = ('name', 'followers')
filter_horizontal = ('followers',)
How can I add a lesson selection field, as in lessons a user selection field?
Anonymous
Mirco
but if I'm a customer and you send me a clear pwd through email, my account could be hacked in a matter of seconds
Bral Bral
Mirco
whatever you want but I can hack their network and steal the pwd
it's 2020 we have lots of strategies to accomplish this kind of things instead of sending clear password via unsecure ways, I suggest you to talk better with your customers
Mirco
then you can do whatever u want obvs
Cheap
Mr
Bral Bral
bahaa eddine
where can I learn django?
have any one a course?
bahaa eddine
cj
bahaa eddine
Prakash
depends
few people hate reading long articles blogs
so they prefer video series
Mirco
HIRO
DATABASE_ROUTERS = ['workflows.workflow_dbrouter.WorkflowsDBRouter', ]
DATABASE_APPS_MAPPING = {'erp': 'default', 'workflows': 'db_workflow'}
DATABASES = {
'db_workflow': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'wf.sqlite3'),
},
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'django.sqlite3'),
},
}
Did u register those db in their respective apps
Mirco
Web assignment, is it homework ?
Mirco
It's better you do it by yourself
Mirco
This is not the right place for this kind of stuff
Muslim
I think it should be removed from here
cj
then be honest with them —and with you too— and tell them that you're not gonna take it, as simple as that
Muslim
Company is looking for specialist, not fraud
cj
or send them to me, I'm gonna take that assignment and the job 😊 tell them to write to me directly
Ghorz
Cheat cheat cheat. 😂
Bradypodion
Bunty chhatri wala..
Any suitable docs or tutorial of Django with Html forms?
Pragnesh
Hello there
How to forgot password in form sending by mobile otp????
Pragnesh
Please help me
Bhavasagar
using this collected information is not saved please help me
Pragnesh
How to password reset ???
Pragnesh
Using mobile otp
Pragnesh
Please help me
Abhishek
Anonymous
Engnr
hello,
I have two models;
class ContactGroup(models.Model):
user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
name = models.CharField(max_length=255)
created = models.DateTimeField(auto_now_add=True)
class Contact(models.Model):
mobile = models.CharField(max_length=13)
category = models.ForeignKey(ContactGroup, on_delete=models.CASCADE)
created = models.DateTimeField(auto_now_add=True)
I want a query that will display the ContactGroups for a particular user with the total number of Contacts belonging to the Group.
Thanks.
Doragonsureiyā
Hi! This group is English-only. Please, translate your message into English or move to a group speaking your language. Thank you.
Sharooq
Hi,
Is it possible to trigger a celery task when ever there is a new entry in a specific table?
Abrar
Search on github
Anonymous
Anonymous
You can access the count from the query set using 'contacts_count'
Bhavasagar
help in solving this issue
Anonymous
In the view you're supposed to be updating an Clubmember object:
club_member = Clubmember.objects.create(
user=request.user,
phone_number=request.POST.get('usedphonenumber'),
userphoto=request.FILES.get('image')
)
Anonymous
And also make the correct reference to the author user model in the foreign key relationship: user settings.AUTH_USER_MODEL or get_user_model()
Rajvir
i want to access database's data without refreshing the whole page. So i learned on google that i can do so only by javaScript not by Django. So where i can learn connecting JavaScript with postgres??Help please. or is there any other way of doing the same?
Alisher
Rajvir
okay
Rajvir
can you please suggest good youtube tutorials?
Anonymous
Hello, new here
I have TemplateDoesNotExist error
Anonymous
The file index.html exists in the templates folder, and should be rendered with :
Return render (request, "index.html", {})
Pragnesh
Anonymous
Yes exactly
Pragnesh
Anonymous
Do is it supposed to be in the App folder my or in the project folder
Anonymous
So*
Anonymous
I can't send pics
Anonymous
TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [os.path.join(BASE_DIR, 'templates')],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django.template.context_processors.debug',
                'django.template.context_processors.request',
                'django.contrib.auth.context_processors.auth',
                'django.contrib.messages.context_processors.messages',
            ],
        },
    },
]