ThunderCore Community
How I can code for internationalisation concepts i.e I am receiving mail I want to apply global language support for sender's name. Please share any documents regarding this.
ThunderCore Community
Which module can I use for internationalisation.
Pouya
I use this in the html {{form}}
do you pass the context throught your view?
Sergio
do you pass the context throught your view?
Yes, I do, I have been guided by the documentation and still nothing works
Doragonsureiyā
Rule 🔟: Job posts are SPAM unless they meet the requirements. Read the rules for details.
....
hey , guys . when i try to send emails on django apps . it gives me error . server Error(500). but this issue only happening in live . i mean it's deployed with heroku. if i send email in local host ,it's perfectly working . how can i solve this ??
....
google SMTP error 500
i tried that . but didn't get how to solve that . so i asked here .
ARBAAB
can any one help me with, i have 3 models class teacher student i have these classes in one model.py file now i want to forgine key student model with class how to do it?
ARBAAB
if i move student model before class model then its working but if the student class is down then its not working
ARBAAB
saying student is not define
....
perhaps you didn't tried configure EMAIL_HOST_PASSWORD and EMAIL_HOST_USER to heroku?
i set in environ variable, and i assigned that in to it . . if any problem with that how email send in local host ??
....
i mean you should also configure those via terminal to heroku
Could you tell me , how is that. ?? Any tutorial or article bro .?
Pouya
Could you tell me , how is that. ?? Any tutorial or article bro .?
$ heroku config:set EMAIL_HOST_PASSWORD="<your app password>"
Pouya
$ heroku config:set EMAIL_HOST_USER="<your email address>"
ARBAAB
how to pass data from single html form to 2 table at once in django?
ꪉꫝꪖꪹᦋꪖꪜ
How do i send the selected value of a dropdown menu to email?
Azizbek Xushnazarov
Guys How can I register my template tag that return a queryset. I dont want to send every time with context in view. Category.objects.all() I should register this as 'categories' so I can iterate it in template. I dont want to sent it every time in view. I searched google but they are all about simple_tags and registering a queryset is not working in that way
Mayur Parmar
django with ajax... i need code for eazy way
LEX
Hello guys !! Can we store the json data to django database model ?
Abdalwhab
attributes = models.JSONField()
LEX
attributes = models.JSONField()
Any source file bro ?
Abdalwhab
If you need to save it like file Using models.FileField()
 ‌‌‌‌Hamed
Hi why we use relay and node in django graphql and when we must use it??
Azizbek Xushnazarov
where is my issue 😤😢
Maxim
where is my issue 😤😢
check the answers to your message
Azizbek Xushnazarov
check the answers to your message
the bot deleted my question.
Mirco
it is not the solution. I think you dont understand what I said
Study what context processors are in official docs And you will discover a way to have a context variable always available around the templates without passing it via views everytime
Azizbek Xushnazarov
{% for category in ''|categories %} {% include 'main/products/category.html' %} {% endfor %} @ register.filter(name='categories') def categories(arg): return Category.objects.all() this is working but very tricky for a simple thing like that
Umar
Forgot admin password of django site on heroku, anyway to reset that
Mirco
How
!search
Doragonsureiyā
How
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 first results
Umar
!search
Already doing that 😊
Mirco
Already doing that 😊
Search better 😊
Mirco
I bet my 2cents that heroku create superuser Django On Google will return you a cool answer heroku run python manage.py createsuperuser
Asadbek
it is not the solution. I think you dont understand what I said
Instead, I guess you don't understand my solution
Anonymous
I want to upload a csv file and store in media folder? Anyone have any idea on how to do that?
Umar
Search better 😊
Thanks, it worked
Doragonsureiyā
Thanks, it worked
You're welcome! 😊
Asadbek
it is not the solution. I think you dont understand what I said
let me clearify my solution, declare categories like that {% with categories=categories.objects.all %} and use it in that template that you wrote with statement and also don't forget to close with statement like that {% endwith %}
Pouya
how to pass data from single html form to 2 table at once in django?
if your view is FBV ,add two variable that contains queryset for those table and add them to context key:value
Azizbek Xushnazarov
Categories should be in context
that is literally what I was asking: 'I don't want to include them in context every time'
Azizbek Xushnazarov
there are a lot of views and a lot of things to include in context. btw I found a solution. this issue is closed)
rxmt
Hey i make query and its take like a 6-8 sec to response i have index in the DB like this order Symbol,timestamp,Fllll,team,stats this the def query how i can make its faster :X ? https://bpa.st/LJJA
Pragati singh
Hi , can we interchange with something like this item = get_object_or_404(Item.objects.all(), pk=pk) to ..... try: platform = item.objects.get(pk=pk) except Item.DoesNotExist: return Response (status=status.HTTP_404_NOT_FOUND) does both means the same ?
M❄️hdi
Hi great community I've read that django started supporting async from 3.1 Will django be fully async from version 4.0+ FastAPI is great and fully async Will django be like that?
ARBAAB
what do you want to achieve?
i want to add the new student id to students_payment table also for example when a new student registerd and its data pass to students table i want to pass the exact student id to student_payment for payment section
User
Hello, how do I access model data from one app in another?
🤟🏻
Hello, I have small issues in Django.
🤟🏻
I created app in my project and inside that app I created a sub-app, Now I'm try to get that app in settings file as "mainapp.subapp" in main settings file, I'm using Django 3.2
ARBAAB
Hello, how do I access model data from one app in another?
import it in that model where you want to use it like import yourAppName.model in another model
ARBAAB
Hello, how do I access model data from one app in another?
like you have 2 apps 1 home 2 main you want to use home app model in main do like this in main app just import it from home.model import student or teacher
🤟🏻
I'm getting error that name was wrong, But I did correct name, The same import working in Django 3.0 version, but not in 3.2ver
🤟🏻
check for django version update
I tried but But I'm not able to find
ARBAAB
I tried but But I'm not able to find
hmm but i didn't face this kind of issues
ARBAAB
I have to use that file structure
if its working in django 3.0 then use that version
🤟🏻
hmm but i didn't face this kind of issues
it is working in version 3.0, in latest 3.2 it is not working