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.
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 ??
Maxim
Pouya
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
Pouya
Pouya
ARBAAB
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
Asadbek
Asadbek
LEX
Hello guys !!
Can we store the json data to django database model ?
Abdalwhab
Abdalwhab
attributes = models.JSONField()
LEX
Abdalwhab
If you need to save it like file
Using
models.FileField()
Morteza
Morteza
Hamed
Hi why we use relay and node in django graphql and when we must use it??
Morteza
Mirco
Azizbek Xushnazarov
where is my issue 😤😢
Azizbek Xushnazarov
Azizbek Xushnazarov
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
Azizbek Xushnazarov
Umar
Forgot admin password of django site on heroku, anyway to reset that
Mirco
Umar
Mirco
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
Mirco
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
Anonymous
I want to upload a csv file and store in media folder? Anyone have any idea on how to do that?
Azizbek Xushnazarov
Asadbek
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 ?
Mirco
Pragati singh
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
🤟🏻
🤟🏻
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
ARBAAB
ARBAAB
🤟🏻