Pruthvi
Best site to do mini projects on django
⎊ GNU/Aryan ⎊
Aditya
While opening admin page in my Django project.
It's showing status 302- redirect
Can anyone please help me on this.
Is there any problems with code/ browser
Govind
Hi Everyone,
I want to make dynamic website for Data Representation using django.
What should i learn for Graphical representations?
Govind
Like bar graph, pie graph, line graph, etc.
Govind
Please suggest me.
Govind
Can I use Plotly in html?
Искандар
Govind
I have some knowledge of matplotlib but I'm not able to display graph in html.
Govind
Govind
I'll read it.
Thank you
Искандар
Govind
Unknown
Anonymous
How to send email to reset password with DRF? (using mailgun and multiple SMTP users with custom functions)
I've looked at more than 10 questions in the stackoverflow, and none solved my problem, and some seem to work, but it requires a lot of adaptation.
What I want to do is this:
- Get email through some endpoint (many packages already do this)
- Choose an HTML template to render and send the email
- Send the email using custom function
in my case, the function is `def send_no_reply(subject, message, to)´
that use from django.core.mail import get_connection, send_mail
to sent mail with custom SMTP config, i use this fot use multiple SMTP users.
Here is example of my function to send emails:
from django.core.mail import get_connection, send_mail
from decouple import config
def create_connection(username, password):
return get_connection(
host="smtp.mailgun.org",
port=587,
use_tls=True,
username=username,
password=password,
)
def send_no_reply(subject, message, to):
username = config("NOREPLY_MAILGUN_MAIL")
password = config("NOREPLY_MAILGUN_PASSWORD")
connection = create_connection(username=username, password=password)
from_email = f"No Reply - Geeknoon <{username}>"
send_mail(
subject=subject,
message=message,
from_email=from_email,
recipient_list=to,
connection=connection,
)
Anonymous
Anonymous
You will have to search on google something like "how to forget redirects in browser xxx" where xxx is your current browser
Maz
....
how we can provide styling in django forms
Aditya
Aditya
Chrome
Maz
Chrome
Chrome is optimized for all code. It's the default option for accessing Google Cloud Platform.
I doubt if the browser is the problem..
Aditya
I am able to add models and some orm operations into that
Aditya
Which file
Maz
Which file
The specific code raising the error...
Omar
Hello fellows, I'm in need of Django 2+ or 3.0 PDF or eBook.
Anyone with one should kindly share with me...
George
Omar
Thanks very much.
Anyway I need an offline file. Such as PDF...
Omar
😂 Oh come on ...
Akshay
Apologies in case of irrelevant post. Looking for committed college students, freshers for enterprise application assignment.
Skills : Python, HTML5, CSS, React.
Cannot pay right now, but good opportunity to work on enterprise application.
I can give 6 months experience letter.
If interested, Please send me personal message and resume.
Manish
Pls share type off debugging
Ghorz
cj
Ghorz
Mirco
Ikki
Another question
Ikki
Can i implement tensorflow opencv and django in a same project?
.
M looking for a django+react native expert, pls ping me if you’re available for consultation.
Fabian
Anders (izzno / gooood) 🇳🇴
Anders (izzno / gooood) 🇳🇴
I can see I've only used app.models before...
Anders (izzno / gooood) 🇳🇴
And I'd had a beer when I asked 😆
cj
cj
Pruthvi
from django.db import models
class article(models.Model):
author = models.ForeignKey('auth.User',on_delete = models.CASCADE)
title = models.CharField(mqx_length=100)
body = models.TextField()
def str(self):
return self.title
Pruthvi
For this model iam getting an error
django.db.utils.IntegrityError
Pruthvi
NOT NULL constraint failed : auth_user.last_login
Anonymous
I have a onetoonefield and it selects the primary key of table
Anonymous
How can I select another field in form when adding objects?
Anonymous
Hey, i recently started learning django by my own and i did polling and e-commerce project while viewing tutorial...and i don't quite seem to get it...what do you think i should do to really understand and master it ??..please i'm in need
Raja
Raja
Anybody is working Django with MariaDB or MangoDB ?
Dextroleav
Romila
Importerror while doing health_check after running django-admin runserver this error is coming
Prajwal
Class articleviewset(viewset.gernericviewset)
How to apply filter
Mirkənan
Hello chat.
I installed pinax's user-account app. included it in my urls, installed apps so on. I changed urls and regex to path, re_path respectively. (because I use django3.0 and app does not fully support version upper than 2.0). anyways. i go to accounts/signup/ it justs redirects me home and gives me page not found error. did someone have exact error when working with this module? thanks
Anonymous
Kushal
How to retrive data of one model to another as combobox ?
Mirkənan
Pavel
Hi everyone. Could u help me to do distinct on annotated field? (EDITED)
Django tells me that
NotImplementedError: annotate() + distinct(fields) is not implemented.
sagir
Pavel
Why??? I've annotated field in QuerySet, then I ordered my queryset on it field, then i wanna use distinct on it. But Django can't(((
I don't add it to my db
Kushal
How to make display items as per combo box item choose?
Anonymous
Guys... anybody pls help...I tried many ways to extend the custom user model in Django...anybody suggest me to create a custom user model
Gil
Altaf
Any tutorial for load balancing in django app??
Doragonsureiyā
Any tutorial for load balancing in django app??
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
Amit
I have learned Django basics like creating a application . I have designed a dynamic website using django. What is the advance topics to learn in django
sohrab
how display multiple models in one view using django?
sohrab
and views
sohrab
and template
sohrab
But just model menu shows?
sohrab
Help me please
Altaf