Prince
EMAIL_USE_TLS = False
EMAIL_USE_SSL = True
EMAIL_SSL_VERIFY = True
EMAIL_HOST = 'mail.example.com'
EMAIL_PORT = 465
EMAIL_HOST_USER = 'contact@example.com'
EMAIL_HOST_PASSWORD = 'examplessss'
Prince
it's not working.
Prince
even on google & live when I added the email with this config, it is working
Prince
SMTPRecipientsRefused at /accounts/password_reset/
{'example@gmail.com': (553, b'5.7.1 <webmaster@localhost>: Sender address rejected: not owned by user contact@example.com')}
Request Method: POST
Request URL: http://example.com/accounts/password_reset/
Django Version: 4.1.11
Exception Type: SMTPRecipientsRefused
Exception Value:
{'eaxmple@gmail.com': (553, b'5.7.1 <webmaster@localhost>: Sender address rejected: not owned by user contact@bestglobeshop.com')}
Exception Location: /usr/lib/python3.10/smtplib.py, line 901, in sendmail
Raised during: django.contrib.auth.views.PasswordResetView
Python Executable: /usr/bin/python3
Python Version: 3.10.12
Python Path:
['/home/example',
'/usr/bin',
'/usr/lib/python310.zip',
'/usr/lib/python3.10',
'/usr/lib/python3.10/lib-dynload',
'/usr/local/lib/python3.10/dist-packages',
'/usr/lib/python3/dist-packages']
Server time: Tue, 19 Mar 2024 10:21:23 +0000
sanchit
Hello , can anyone help!!
only if user is paid or free trial is on
How to create this condition on new user !!
Maxim
Kengne
Hello please can someone help me in django-tenant for Saas project? if yes, the django-tenant package have not given a way to run asgi server for tenant. How can i run asgi server in django-tenant for real time messages and notifications. I need to precise something the asgi server only work with the first tenant (public schemas) but generate a server error with other tenant
Mahesh
Anyone know about sevdesk integration with django
Rose
Anyone know about sevdesk integration with django
Don't ask meta questions like:
- Any user of $x here?
- Anyone used technology $y?
- Hello, I need help on $z!
Just ask directly!
The better you are at explaining the problem, the more likely you are to get help. If you don't know what that means, read Asking Smart Questions (http://catb.org/~esr/faqs/smart-questions.html#intro).
kha ~
when i deploy django project to render i get this ,
bash: gunicorn: command not found ,
how i can solve this , (gunicron installed)
and the start command : gunicorn (my app).wsgi
Anonymous
Hi,KL
Anonymous
you may not set PATH
Rose
User Clark has 1/3 warnings; be careful!
Reason:
this is neither a job board nor a bulletin board
Rose
User Free has 1/3 warnings; be careful!
Reason:
this is neither a job board nor a bulletin board
Arneeth
I created a website with books but pasted the context as html code but I want to upload the file and read the pdf format from the server how to do so?
Anonymous
okay.
Anonymous
Thanks.
Anonymous
<a href="/path/file.pdf">Download PDF</a>
Anonymous
Arneeth Reddy .you can do. this.
Arsham
Hi. I have a problem with my Django project. I want to create a blog just for practice. I have to posts but i want to create a place using html. My problem is when I want to show the title, the author name in html. but i get some Errors.
This is my Html file»»»»»»» https://dpaste.org/mQxtF
This is my urls.py file »»»»»»»» https://dpaste.org/fj31J#L
This is my views.py file »»»»»» https://dpaste.org/X999f
what is the problem?
Thank you.
Qwerty
Qwerty
You use different registers for writing a variable. I think it matters.
Shiny
Can I get django backend job as fresher with some projects?
Prince
Hello, please help me in smtp
Rose
Hello, please help me in smtp
Your question is not related to Django.
If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Prince
yes it's related to smtp server setup in settings
Prince
of django
Prince
I added my smtp server on gmail, it has no issue in gmail too, but django can't add it
Charly
Prince
Prince
it worked
Prince
but not working if I give 465 port
Charly
Prince
# EMAIL_USE_TLS = False
# EMAIL_USE_SSL = True
# EMAIL_SSL_VERIFY = True
# EMAIL_HOST = 'mail.example.com'
# EMAIL_PORT = 465
# EMAIL_HOST_USER = 'contact@example.com'
# EMAIL_HOST_PASSWORD ='#####'
Charly
Prince
when I send mails, it's showing via gmail
Prince
EMAIL_USE_TLS = False
EMAIL_USE_SSL = True
EMAIL_SSL_VERIFY = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 465
EMAIL_HOST_USER = 'example@gmail.com'
EMAIL_HOST_PASSWORD = '######'
DEFAULT_FROM_EMAIL = '############'
Is I use this settings, it's working, because I am using gmail's host
Prince
If I*
Charly
Vilas
Can anyone send me code of how to add sort that is in building e com app using react as front end I need to show products from range to range
Rose
User Shubhtiwarii has 1/3 warnings; be careful!
Reason:
useless "Hlo"
Shubhtiwarii
Class Customer(models.Model):
user=model.OnetoOneField(User,on_delete=models.CASCADE)
Fullname= models.CharField()
I WANT TO CREATE USERCREATION form  login signup functionality
Which I want to have username,password1, password2,email,fullname
Qwerty
GODWIN
I want to set up an affiliate system in an online sales site with django but I don't know how to do it
Rose
User ꧁ 👑༼ᴘ͞ʀ͞ɪ͞ɴ͞ᴄ͞ᴇ͞s͞s͞༽👑 ꧂ has 1/3 warnings; be careful!
Reason:
this not a market place
Miguel Angel
Hi friends. I have a question.. I used reportlab library on python and django 3.*, and it worked fine, but I tried the same code on lasts version and it doesnt work...
Could you please suggest the best way and bests libraries to generate pdf with the lasts versions of django and python?
Charly
Charly
Charly
Miguel Angel
Charly
whats the issue with going to the official website and getting it yourself?
Charly
Can you even google it?
Charly
At least do some effort!
Krishna
I have created a virtual environment named 'new_env' and a django project 'newpro' within it using python version 3.8 and django version 4.1.
Now i created an app 'myapp' within the project and added it to installed _apps in settings.py.
Now i added the path in urls.py using code 'path(' ', include('myapp.urls')),'
After that when i run python manage.py runserver, its showing error 'no module named 'myapp.urls' found
Plz help
Believe
Believe
Shiny
I want to create a telegram bot for a dictionary, I want to use django to help it in backend.
For the incomplete word meanings, I want users to submit their meanings also not immediately update to db, some layer of verification will be there.
Can these all functions be handled by django backend api?
Prince
It worked with my mail server now successfully, my mail server wanted a default email to send field, after giving that field I can send email by my email server without via gmail server like I was doing before
Gugu
Hey I need help in Deploy django on plesk server. Anyone ?
Rose
Gugu
I'm trying to deploy the project on plesk server. And getting 403 error.
I've set the permission of parent directory to 755 and in .conf file of apache I set the virtual Host.
But still getting 403
Arman
Nushh
Does anybody have any kind of django cheatsheet?
Alex
Shiny
Eng-Mohammed
urlpatterns = [
        path('login', LoginView.as_view(), name='login'),
        path('logout/', LogoutView.as_view(next_page='login'), name='logout'),
        path('', UserView.as_view(), name='home'),
        path('urls', UrlView.as_view(), name='urls'),
        path('users', UserView.as_view(), name='users'),
        path('urljson', UrlJson.as_view(), name='urljson'),
        path('usersjson', UsersJson.as_view(), name='usersjson'),
    ]
    # Dynamically generate secure URLs
    try:
        secure_urls = Url.objects.filter(type="secure")
        for url in secure_urls:
            urlpatterns.append(path(url.description, SecureUrlView.as_view()))
        # Dynamically generate unsecure URLs
        unsecure_urls = Url.objects.filter(type="unsecure")
        for url in unsecure_urls:
            urlpatterns.append(path(url.description, UnSecureUrlView.as_view()))
    except Exception as e:
        print("eeeeeeeeeeeeeeeeeeeeeeee",e)
Eng-Mohammed
urlpatterns = [
        path('login', LoginView.as_view(), name='login'),
        path('logout/', LogoutView.as_view(next_page='login'), name='logout'),
        path('', UserView.as_view(), name='home'),
        path('urls', UrlView.as_view(), name='urls'),
        path('users', UserView.as_view(), name='users'),
        path('urljson', UrlJson.as_view(), name='urljson'),
        path('usersjson', UsersJson.as_view(), name='usersjson'),
    ]
    # Dynamically generate secure URLs
    try:
        secure_urls = Url.objects.filter(type="secure")
        for url in secure_urls:
            urlpatterns.append(path(url.description, SecureUrlView.as_view()))
        # Dynamically generate unsecure URLs
        unsecure_urls = Url.objects.filter(type="unsecure")
        for url in unsecure_urls:
            urlpatterns.append(path(url.description, UnSecureUrlView.as_view()))
    except Exception as e:
        print("eeeeeeeeeeeeeeeeeeeeeeee",e)
When I add new url from screen
The urls not update and appear until the server reload
How i can solve this problem
Rose
User pgirard has 1/3 warnings; be careful!
Reason:
nonsense offtopic