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
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
Hello guys, are you helping with code? Or only with Django troubles?
If you code is a Django trouble, we can help u
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
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
It is easy to learn and very productive and fast
Mirco
The problem is which one is better
Doesn't make difference
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
Doragonsureiyā
Hey guys!, any good Django book or blog for someone starting
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
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
Unless you create a custom template tag and use it there.
Adonis
The problem is which one is better
Try both and choose one.
Ярик
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?
Anonymous
Check other .conf files in conf.d for example
Cesar
While it is offtopic, you might have this same line in another .conf file
Lol, it literally says that... I don't see why people don't like to read errors
Sh
Wanted to understand django logging conf.
Sh
there are DEBUG in handlers and loggers
Sh
what does that mean?
Anonymous
do you have money?
Thats over the code is submitted
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')
Fuad
I want use one template for four views, but i need different title on template, how i can do this?
Use same variable of context_dict for the four views, and give them unique value/tilte for your template
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
Yes definitely
Put it on your render line
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
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.
Alex
I want use one template for four views, but i need different title on template, how i can do this?
Create a template, say, base.html and there you declare a block like {% block title %}{%endblock%} and then for each of your views you define a specific template wich inherits from that base template or include-s it and in each of them you simply override that block.
RENGANATHAN
How to create website Django bro's
Alex
How to create website Django bro's
google How to create website Django
RENGANATHAN
Ok... thanks
Murshid
How to create website Django bro's
https://docs.djangoproject.com/en/3.0/intro/tutorial01/ Every Django developer starts from here
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
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?
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
Is there any way to so it through template any tag?
You can redirect user on front with a javascript like window.location.href = "url"
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?
malloc
Is it possible to create a code that encrypts files and folders with a password?
Fabian
Is it possible to create a code that encrypts files and folders with a password?
There are plenty of library's that do that already
Sweetie
How to filter DecimalField with value greater than equal to? It doesn't seem to have field__gte or field__lte