Pruthvi
shows an error
django.core.exceptions.FieldDoesNotExist: Account has no field named 'user_email'
While creating custom user model
There is no user_email field in my model.py file
Why i'm getting this error
Pruthvi
yaseen •̀.̫•́
Any idea???
Make migrations and migrated?
Pruthvi
While doing migrated cmd im getting this error
uʎlısɹoʞ
Hello guys, are you helping with code? Or only with Django troubles?
Mirco
Prosto
Hello djangers! May be someone knows the answer!
https://stackoverflow.com/questions/60206596/
Opeyemi
good day guys, i am using django-rest-auth, and in my settings.py i have my ACCOUNT_EMAIL_VERIFICATION = "mandatory" which is supposed to resend verification email if the user hasnt verified their email. The problem is, the verification email never gets resent even after the verification email has expired. please what could be causing this problem
Sardor Mirfayziev
Hello guys which frontend framework integrate well with django . React or vue
Mirco
Sardor Mirfayziev
The one you prefer
Im beginning to learn one of them i dont actually know which one do i prefer
Sardor Mirfayziev
The problem is which one is better
Sardor Mirfayziev
For django
Anonymous
Anonymous
It is easy to learn and very productive and fast
Alex
Mirco
cj
For django
django doesn't care about what front-end library you use, it doesn't matter, use whatever you want/like/know
Ojay
Hey guys!, any good Django book or blog for someone starting
Mohamed
For django
try svelte it nice , easy to learn
revirtux
Hi, someone knows how to use list comprehension in django template?
I tried: {{ ", ".join([house for house, in_house in user.houses if in_house]) }}
Alex
Alex
Unless you create a custom template tag and use it there.
Adonis
Adonis
Ярик
guys, i have a question on nginx
i added following line into the site config:
ssl_protocols TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers on;
and after save and nginx restart i get following errors:
nginx: [warn] duplicate value "TLSv1.2" in /path/to/site_config.conf
nginx: [emerg] "ssl_prefer_server_ciphers" directive is duplicate in /path/to/site_config.conf
nginx: configuration file /etc/nginx/nginx.conf test failed
does someone know how to to fix it?
Alex
Anonymous
Anonymous
Check other .conf files in conf.d for example
Sh
Wanted to understand django logging conf.
Sh
there are DEBUG in handlers and loggers
Sh
what does that mean?
Daniel
hello everybody, I was looking on Google how to read the data from the JSON, after sent if from function to the POST
https://i.imgur.com/ec6GUgK.png
Daniel
somebody can tell me where to get information about this or help me on this issue, thanks in advance
srikanth
boingo-00
I want use one template for four views, but i need different title on template, how i can do this?
boingo-00
I have an idea to pass some variable to template, but i don't know, how
boingo-00
I am using class-based views
boingo-00
For example:
class yourposts(LoginRequiredMixin,generic.ListView):
model = post
template_name ='postlist.html'
paginate_by = 40
def get_queryset(self):
return post.objects.filter(user=self.request.user).order_by('-pubdate')
boingo-00
context_dict should be written in class or i need extra method?
boingo-00
If i understood, this is be like:
context_dict = {'type': 'yourposts'}
Fuad
Anonymous
How have you been (feeling)?
boingo-00
Put it on your render line
I made this and it working well
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context['disp'] = "userposts"
context['showuser'] = str(self.kwargs['userpage'])
return context
Anonymous
Alex
Wanted to understand django logging conf.
Django's logging config is just a config dict for https://docs.python.org/3.8/library/logging.config.html#logging.config.dictConfig
So to understand how it works you have to read python's logging module documentation.
RENGANATHAN
How to create website Django bro's
Alex
RENGANATHAN
Ok... thanks
RENGANATHAN
RENGANATHAN
NR
hi guys, i want to know how to logout a user if he access a certain page
NR
e.g if user try to get a certain page i want that user to be logged out auto matically
NR
?
Alex
?
You can simply use logout
https://docs.djangoproject.com/en/3.0/topics/auth/default/#django.contrib.auth.logout
NR
You can simply use logout
https://docs.djangoproject.com/en/3.0/topics/auth/default/#django.contrib.auth.logout
Thanks for the reply, but i am not looking this one from python logic, i am looking a way to do it from within templates, i.e template should call logout function without user has to press any button. right now i am achiving this by {% else %}
<p><h1>You are not Authorized</h1></p>
<meta http-equiv="Refresh" content="1; url={% url 'logout' %}">
{% endif %}. user will be redirected to logout and logout will happen. but as per security point of view it does not seems much secure way.
NR
also few browser dont respect meta refresh
Fuad
NR
Is there any way to so it through template any tag?
Fabian
Hi, can someone advice me any website to look for python/django online remote jobs?
Fil
Fabian
Hi, I'm testing django send mail feat, but I'm not getting from_email when I receive the mail
Fabian
Does anybody knows how? Or what is going on there
BB
Hi everyone!
Can anybody help me with such problem: how to filter data by foreign key? For example, if you try to filter articles(one class in model) by categories(another class)
Anonymous
Paul
hi guys, question:
i have this error:
django.db.migrations.exceptions.NodeNotFoundError
i think that i removed the migrations and server is not doing "makemigrations" asking me about dependencies(this migrations does not exist).
any suggestions?
Sergey
malloc
Is it possible to create a code that encrypts files and folders with a password?
cj
Fabian
Sweetie
How to filter DecimalField with value greater than equal to?
It doesn't seem to have
field__gte or field__lte
Anonymous