Alberto
Functions on the models?
Forget it, I just don't understand some basic things of Django and that's why I did that crap
Isaías
Good morning. What do you use to save the updated record records in the database? For the purpose of audits
Anonymous
Hi all, I am new to Django. I want to redirect to sign up page using anchor tag.
Anonymous
For that i need to create view?
Anonymous
How should I redirect to sign up page thru template
🤞🏽
hello i am beginner in Django
🤞🏽
help me out
Muslim
hello i am beginner in Django
RTFM and https://www.nohello.com/
Doragonsureiyā
hello i am beginner in Django
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Anonymous
I know *args and *kwargs but don't know where to use in django please help me and send the documentation to learn
Anonymous
Hey guys, I'm learning Django from official documentation, but I didn't get one moment. https://docs.djangoproject.com/en/3.0/intro/tutorial03/#use-the-template-system <h1>{{ question.question_text }}</h1> <ul> {% for choice in question.choice_set.all %} <li>{{ choice.choice_text }}</li> {% endfor %} </ul> Here is our .html file, there is a variable question.choice_set.all, but we don't have this in our models.py class Choice(models.Model): question = models.ForeignKey(Question, on_delete=models.CASCADE) choice_text = models.CharField(max_length=200) votes = models.IntegerField(default=0) Any help? Maybe I lost smth, this example is shown in original documentation
Mirco
I know *args and *kwargs but don't know where to use in django please help me and send the documentation to learn
Django is python, if you know when to use them in python, you know when and where use them in Django
Anonymous
Django is python, if you know when to use them in python, you know when and where use them in Django
I usually understand the concept suppose I want a make a class student Where I creat a different method Like student marks and repr I see there is lot of function Get and post Event context data I don't understand when to use in django
Kushal
pastebin.com/juEjU5p3
Kushal
pastebin.com/juEjU5p3
How to solve this problem
Jigani
How to solve this problem
Django can't find path to the path with name "home" you should be able to fix that
Gil
How to solve this problem
And the warning: ?: (urls.W005) URL namespace 'restro' isn't unique. You may not be able to reverse all URLs in this namespace You need to consolidate more your url.py, maybe try to understand all of components!
Jigani
Any help? Where does choice_set located?
Read your documentation thoroughly. When you declared a foreign key from your choice model to the question model, you can access the contents of the choice model from your question model with question.choice_set.all as long as you don't specify a related_name
Jigani
Just follow the tutorial...you'll be fine
Mirco
Haha, great advice
It's the only way
Cheap
Any help? Where does choice_set located?
if you are still confuse read the specific related code direclty from django’s official github repo to getter idea of functioning
Rishabh
I'm getting TypeError : view must be a callable or list / tuple in the case of include () Anybody can help me with this error?
Rishabh
Class base views
Cheap
Class base views
did you added views.class_name.as_view() ?
Rishabh
No, where should I add this ?
Cheap
No, where should I add this ?
in your urls.py refer to this: https://docs.djangoproject.com/en/3.0/topics/class-based-views/
Rishabh
Still there is an error
Cheap
Ya I had added this.
import your class in urls.py
Rishabh
Done
Anonymous
Hello everybody
Anonymous
Hello everybody
Django createsuperuser cannot enter password
Poornima
Poornima
That's all
Poornima
After u type password for two times all is set ....
Anonymous
This problem can be solved from the createsuperuser module
mistyGame
Hello How to display the plots I got using matplotlib, pandas etc in jupyter notebook in django?
Cheap
in one of my django views, i have : try: validate_email(email) except ValidationError: __ i use this to check if input email is valid or not( not using forms), so what should i put in except block such that if email is not valid, it handles it well and not break in production
Mirco
The basic thing is that you can use messages framework and add a new message to be shown to the user into the template like a pop-up
Mirco
Or growl
Cheap
can i dirrclty control action with same view(without redirecting back to template) ?
Cheap
if i just write pass in that except block, i get SMTPDataError(as i need to send email to that). So need better logic to handle exception
Mirco
can i dirrclty control action with same view(without redirecting back to template) ?
It already redirect to the same view if your form is not valid
Cheap
It already redirect to the same view if your form is not valid
i tried that, i have button in template which displays succes on click so how do i make it just pop-up error alert instead
Cheap
wish i could write js in view :/
Rahin
Getting sqlite3.IntegrityError: UNIQUE constraint failed: user.hashcode
Rahin
Getting this error
Rahin
when i create my model with unique=TRUE
Rahin
hashcode = db.Column(db.String(120),unique=TRUE)
Ninja
Someone help me in registration form email verification....SMTPAuthenticate error at account/register/ In description box its shows username and password not accpted
😎
when i create my model with unique=TRUE
Did make migrations... And migrate?
Ninja
Also turn on settings in less secure in google account
Rahin
in flask
Ninja
Djnago
cj
in flask
this is a DJANGO group
Rahin
yes i know
Ninja
Using registration-redux library
Ninja
How i come out from this problem
Ninja
Is this problem of google account or its problem of library
Ninja
using gmail?
Gmail is only for source where our verification account from which it will receive mail
Ninja
Use messages framework
Ya its work but i want to do through registration-redux
Cheap
Gmail is only for source where our verification account from which it will receive mail
turn off “less secure apps “ or set app password if you are sending mail from gmail smtp
Anonymous
Hi I need a real world Django project to study. Anyone have this?
Cheap
Hi I need a real world Django project to study. Anyone have this?
edx.org is built on django and open-source as well, great one to look at