Ghorz
professor
Ghorz
server side
Add to form clean method, return raise validationError if not specific email
professor
I still no get it
Ghorz
Check email field and validate if its Gmail, else return error
professor
like this def clean_email(self):
Ghorz
https://docs.djangoproject.com/en/2.2/ref/forms/validation/
Ghorz
professor
the same as if I want once the user is logged choose this checking if user.email == [bad_mails] ,...
Ani
How to deploy django api and react front end on ec2
Doragonsureiyā
How to deploy django api and react front end on ec2
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
Step 5: Be happy
Master
Step 5 can be ommited. We don't care, actually
Ghorz
getsaleor.com source code make me think
1. have I been playing all these while'%
2. Do I know Django at all
3. God, that code is a bit confusing
4. The coding convention and apps folder location and structure so strange.
5. URL demonic.
6. Guess I'll go f**k myself
Luis
Luis
I'm loving it
Soumya
Hello friends am a fresher I need your support for email sending in django, will you please suggest me what is the right way for this.
sravan
sravan
Soumya
Thanks bro
Owolabi
Hello here, is there anybody from Nigeria?
Nitin
Hello guys
Owolabi
Any hackhaton in Nigeria?
Nitin
Anyone looking for implementing a commenting system in your django site, I have done that using disqus commenting system here is the link. It might help you guys.
https://youtu.be/veS4POIYPWU
sravan
Nitin
Yes its both free and paid.
Shubham
Hi, I have a doubt that how can we login to the Django admin for users that are non staff and non super user?
Pravin
I want to develop a business website for a service i will be providing .. main purpose of the website will be to accept payments from my customers.... Should i go with Django or flask.. please help me .... Backend will be Python based only.
Anonymous
Shubham
Users can not access
Can we override any method or do something so that they can also access it?
Nitin
Pravin
Ok thanks
Nitin
Ok thanks
raturi.in/blog/
I write articles about django and python you can read them here
Mihail
how can i add youtube videos links to watch them on my website?
Anonymous
Mihail
Anonymous
Ayomide
Hey guys....im working on a quiz like app with a timer....
I have models for questions and answers.....
Answers has a foreignkey to questions
While iterating through the questions and answers in my template I've not gotten how to get the correct answer and count all correct answer
Ayomide
class Question(models.Model):
name = models.CharField(max_length=300)
class Answer(models.Model):
Question = models.ForeignKey("question", on_delete=models.CASCADE)
text = models.CharField(max_length=300)
correct_answer = models.Boolean(default=False)
Ayomide
Template**
{{For question in questions }}
<form>
{{For answer in question.answer_set.all}}
{{Endfor}}
</form>
{{Endfor}}
Ayomide
Template**
{{For question in questions }}
<form>
{{For answer in question.answer_set.all}}
Input type=radio
{{Endfor}}
</form>
{{Endfor}}
Ayomide
Is there a better way to do this
Anonymous
I use main HTML form and set my get request from forms.py
Ayomide
Can you explain more?
Manavver
Hi everyone! Suggest me python + MySQL tutorial using ubuntu 16.04
Vitalii
Vitalii
template must be stupid
Vitalii
move logic to forms.py
Mirco
!offtopic
Doragonsureiyā
looks like you need an offtopic group, please continue this conversation at @pythonofftopic
Ajay
I know its django group. But I dont know any flask group. So i posted it here as someone might would know how to solve this problem
Mirco
Mirco
Keep this group on topic pls
Ajay
you mean python group?
Mirco
Yup
Ajay
sure. Thank you
Mirco
Anonymous
Do we get ISO CERTIFICATION by doing python and django course???
Mirco
Human
Guys I am a beginner in Django ....I am creating a practice site for uploading image .....but the images are not showing on Django admin.Even through the debug is true...why ?????
Muflone
Anonymous
I m a beginner too
Anonymous
Hi guys why am I getting this error in many to many field? https://jpst.it/1W5IW
Muflone
Ghorz
Anonymous
Anonymous
But it’s still showing error
Anonymous
I have searched though the internet
Anonymous
Trying to fix it but I can’t get a clue what’s wrong in it
Muflone
When tables don't match you broken migrations
Anonymous
How can I fix this any heads up?
Anonymous
I will handle the rest
Muflone
What have you done with that tables? Removed or changed?
Anonymous
Anonymous
I’d say I added
Muflone
Migrations + migrate
Muflone
If they don't match then you changed something externally
Anonymous