WhiteDevil
That I have mentioned previously
Денис
That I have mentioned previously
I have no clue what you mentioned previously. Smart questions lead to smart answers. So go tell us what steps, what errors, and for god's sake don't assume we are telepathic and throw some error-bearing code on pastebin.com and share link with us.
Денис
it doesn't take to read the book itself to be able to help you
Jose Luis
someone know some django app to manage webhosting?
Jose Luis
or at least to manage members from hosting service?
Jose Luis
i want something like ispconfig / cpanel / something to manage server
Jose Luis
or at least, something that manage users
Jose Luis
billing...
Jose Luis
yes, at least apache/nginx
Денис
yes, at least apache/nginx
Django is just a request-response handler. Try Wagtail, at least it's a CMS where things may become easier. But it requires coding, too.
Jose Luis
found https://github.com/ajenti/ajenti/, at least this use python
Jose Luis
thanks @deni
Jose Luis
will check wagtail
Anonymous
who have setting email of GoDaddy? i can't send the email.
Anonymous
my account is type imap
Nurbek
Can smone tell me, how can i translate text which is in model query(sql)? Thx
Nurbek
define translation plz
I have a model which stores articles, and i want to make them translatable, idk...maybe with gettext somehow? I have no idea
Nurbek
Articles are in English and I want to translate them into Russian
cj
Articles are in English and I want to translate them into Russian
for that kind of things, it's usual to have 2+ fields, one per language
Денис
Articles are in English and I want to translate them into Russian
There are two directions you may think as I can see. 1. Translation. You'll need to use some translation service API like Google Translator. 2. Internationalization. Then you need to read about how it's made in Django, i don't know.
cj
or using an automatic —external— translation tool, like Google Translate for pages
Nurbek
No i already translated them both translated texts are ready
cj
Internationalization works when you already know the original text
cj
Hmm, so there is no other options🤔😕
there's no magic for that 🤷🏻‍♂️
Nurbek
Excuse me! Let me clarify: So I will create separate fields for each language in model, than I have to create an "IF" statement to change the content according to the current language , inside template right?
cj
Excuse me! Let me clarify: So I will create separate fields for each language in model, than I have to create an "IF" statement to change the content according to the current language , inside template right?
basically, yes... there are some tools you can use to manage the context language, so you won't end up having a lot of ifs on your code if you later want to have more than 2 languages
cj
so it won't look like some advanced AI of languages (you know, if/else if/else if/else) 😂
Nurbek
Thank you very much for helping to figure this out🙏
Yash
In what format should I send data in xhr.send() in ajax django to access values from request.POST in my views?
cj
if you're using DRF, the data is in request.data instead
Yash
okay )
Yash
json
my request.POST is still getting emtpy dict
Yash
if you're using DRF, the data is in request.data instead
U mean rest framework? No I am using Django only
Yash
request.send({"exam_type":exam_type,"total_marks":total_marks}); this is what I am trying to send
cj
request.send({"exam_type":exam_type,"total_marks":total_marks}); this is what I am trying to send
maybe this? https://stackoverflow.com/questions/6418220/javascript-send-json-object-with-ajax
Jose Luis
why django create a new migration when add a validators to my model?
Jose Luis
but this add something to the sql?
Jose Luis
the validator was run when save the form? or run something in the db?
cj
the validator was run when save the form? or run something in the db?
if you added the validator in the model, depends on the RDBMS, it may create some constraints at SQL level
Gaston
Any try IPDB on Django 3? Throws error to me
Alex
👍🏿😊
managed to connect it?
Anonymous
I'm with problem to connect Django with SQL... Can you help me?
Hermann
managed to connect it?
Nop😭, and The output of script is a gui that show image and with next method the image is uploaded
Shubham
What is new in Django 3?
John
any tutorial suggestion on how can I create an email verification in user registration. .
Mirco
What is new in Django 3?
Go to the official docs, release notes 😊
Anonymous
I have hand written notes for python kindly message me if needed
Ashutosh
How can I join two models in django like we perform full outer join in MySQL?
Orack
https://hastebin.com/tihuqovefe.py
Orack
https://hastebin.com/tihuqovefe.py
AttributeError at /test/ Got AttributeError when attempting to get a value for field a on serializer Aserializer. The serializer field might be named incorrectly and not match any attribute or key on the A instance. but A is there
Orack
https://hastebin.com/tihuqovefe.py
Ooof gotit, needed to put related_name parameters damn
Orack
this simple thing took me 5-6 days ;-;
Tanjiro
Hi, while installing mod_wsgi module I'm facing Apache directory not found error. Can anyone help? I have already set the variable path for apache.
Anonymous
Hi ,I want to pass a variable to forms and then use it . this is what I did , Views.py: def payment_settlement(request,booking_id): form = edit_paymentsettlement(booking_id= str(booking_id)) forms.py
Anonymous
Hi ,I want to pass a variable to forms and then use it . this is what I did , Views.py: def payment_settlement(request,booking_id): form = edit_paymentsettlement(booking_id= str(booking_id)) forms.py: class edit_paymentsettlement(forms.Form): def init(self, *args, **kwargs): booking_id= kwargs.pop('booking_id') self.fields['booking_id'].initial=booking_id super(edit_paymentsettlement, self).init(*args, **kwargs) payment = PaymentSettlement.objects.filter(booking_id)
Zaryab
Here's a quick example of what might work: https://dpaste.org/OCwh
Hey Eric.... Have you used the aggregate function in model? I used it and it solved my issue. Using from django.db.model import Sum Models object.aggregate(Sum('budget'))
Anonymous
Question : I have a html file page1.html which rendered with some database data values and It has a Button. Once button clicked it redirects to another Page page2.html which contains a form. When page2.html form submitted Only the form datas are stored in Database. But I want to store old datas which was rendered with page1.html
Rajat
Can anyone help or give reference to my project - I have to maintain a user profile of youtube alike videosharing platform and i have to show which user has uploaded how many videos how do i fetch list of users from django user auth and id of videos of that particular user and display.
Anonymous
Can a make a web app, fast like gatsbyjs
Anonymous
?
Anonymous
In django
cj
In django
Django is for back-end development 🤷🏻‍♂️
cj
whatever xyzJS is for frontend —mostly—, so don't expect that much, in Django you have to build things by yourself
cj
in backend is django still more flexible than flask ?
they both are flexible enough, just that Django has more things built-in and it doesn't need to rely on 3rd party packages as flask does