Anonymous
hi, should I use python/Django or MEAN stack or what? to create a website that contains a dictionary and the grammar of a certain language and many things which is related to that language
Martín
hello, I have used Django some years ago I want to come back to web development and I want some guidance for good practices, specifically, for a project layout or recommended folder structure Some years ago I liked the "Two scoops of Django" perspective (got the 1.8 book), I don't know if you guys can give me advice about this or some resource/link to read on the subject
Martín
that a web?
Martín
I have the book from a bundle
Martín
I'm going to take a look more advice is welcome if anybody has more material or something different to offer
Денис
I'm going to take a look more advice is welcome if anybody has more material or something different to offer
Many books in this group’s shared files. Priceless collection. Just dig into. Won’t take much time
Martín
Where are those, @tor_gash ?
Martín
You mean the @pythonres link?
Денис
Where are those, @tor_gash ?
This. Group. Shared. Files. We don’t consult on Telegram usage
Martín
sorry
Денис
Nevermind. Sorry for being rude, just read carefully
cj
Many books in this group’s shared files. Priceless collection. Just dig into. Won’t take much time
thanks for pointing that out, all the copyrighted material has been removed. 😊
Martín
that book is still valid, use the updated version of the book i.e. 1.11 and you can refer to the updated code examples from here TwoScoops2-0
ok, thanks, I'm already taking a look at a million things, I will look at the code but I think I'm not buying the 1.11 book yet
Batman
ok, thanks, I'm already taking a look at a million things, I will look at the code but I think I'm not buying the 1.11 book yet
there's this article https://wsvincent.com/django-best-practices/, highlighting some important points.
Martín
there's this article https://wsvincent.com/django-best-practices/, highlighting some important points.
Ok, I'm reading it as well 😁 Thanks, every piece of advice is welcome
Денис
thanks for pointing that out, all the copyrighted material has been removed. 😊
Well, I didn't expect that, but... nothing bad as well.
Anonymous
can I upload a book?
Batman
Anonymous
django for beginners
Mirco
django for beginners
Nope , it's not a free book
Anonymous
hahah okay. better dal. soeone wire me $20 and I will send over my copy
Anonymous
*deal
Anonymous
Hello Need a help in django I'll create h django admin I am Create multiple dependent drop down and after filter a data and show a table .. I am complete UI part But problem is apper in View .Py and models.py file
Anonymous
Yes
Maz
I mean could you rephrase your question in English?
Anonymous
Yes in english
Anonymous
creates django admin, UI is fine but there is a problem wiith either the views or models file or both... ?
Maz
Yes in english
🤦‍♂
Anonymous
🤦‍♂
Actually I am new in django , I am create a multiple dependent drop down but I am not knowledge to work in django back end work , like view.py and model.py .
Денис
Actually I am new in django , I am create a multiple dependent drop down but I am not knowledge to work in django back end work , like view.py and model.py .
get some knowledge. Grab Django docs, learn some tutorials step by step. And then come back. We are not here to teach you, only to give a little help. Right now the best of our help is >>this<<
Денис
Can I somehow get the list of all available context variables for my templates? Those auto-generated by Django, so that I didn't have to reinvent?
Nitesh
https://dpaste.de/RsHP
Nitesh
<QuerySet [<Connections: nitesh follows vishnu>]> vishnu You are not following vishnu
Nitesh
https://dpaste.de/RsHP
I need help regarding line 9
Nitesh
Output should be: You are following vishnu
Genjiru S Uchiwa
Hello I'm a Django junior developer and I would like to know if anyone would accept that I help them on a project. I would like to gain experience
Meow
Hi guys
Meow
I just create post differentiate between laravel and django can help me check if i miss something?
Meow
any comment very appreciated
Meow
thanks
cj
thanks
Django's architecture is not MVT, it's Django architecture AS IS, you should know —and clarify it why— according to this FAQ from the official documentation, so you will help people know it's not MVT but Django
cj
I just create post differentiate between laravel and django can help me check if i miss something?
also, for the tutorial part you should know it has its own tutorial: https://www.djangoproject.com/start/ why are you guessing Udemy?
cj
I just create post differentiate between laravel and django can help me check if i miss something?
for the routing part, first read this: https://docs.djangoproject.com/en/2.2/topics/http/urls/
cj
about the performance it's debatable 🤷🏻‍♂️
cj
any comment very appreciated
also don't use bit.ly to share links here, use the direct link: https://docker.my/laravel-vs-django/
Anders (izzno / gooood) 🇳🇴
@pyflare : Look at the difference ;) https://imgur.com/a/cdl7ccl
Meow
also, for the tutorial part you should know it has its own tutorial: https://www.djangoproject.com/start/ why are you guessing Udemy?
Thanks for the comment really appreciate it, for tutorial actually im searching for video base tutorial like laracast, and I happened only found it in udemy. Okay I will make some amendment
Madiyor
I can't add html file to my django project, please help me
Anders (izzno / gooood) 🇳🇴
Is there a way I can use the admin search function? It's perfect in the model admin and the best thing would be to transfer this to userspace...
Anders (izzno / gooood) 🇳🇴
I need to hack it or hack into it ?
Anders (izzno / gooood) 🇳🇴
Better choice of words: Do I need to edit the Django package or just tap in to it ;)
Mirco
Check if it's into a package or reusable
Anders (izzno / gooood) 🇳🇴
Yeah.
Anders (izzno / gooood) 🇳🇴
Anders (izzno / gooood) 🇳🇴
I would officially like to use django full time....
cj
I need to hack it or hack into it ?
if you can hack it and public your changes (make a pull request to upstream), that would be better 😊
Anders (izzno / gooood) 🇳🇴
if you can hack it and public your changes (make a pull request to upstream), that would be better 😊
haha, maybe... I just wrote a function... Getting access to the request in Listview turned out to be a challange.
Anders (izzno / gooood) 🇳🇴
But sound like a cool weekend project... just add search_fields = () or something to a model view...
Anders (izzno / gooood) 🇳🇴
Felipe
def cart_to_pdf(cart, items): context = { 'cart': cart, 'date_of_order': cart.created_at.date(), 'items': items } html_string = render_to_string('cart_pdf.html', context) response = HttpResponse(content_type='application/pdf') invoice_id = str(cart.id).zfill(5) filename = f'C-{cart_id}.pdf' response['Content-Disposition'] = filename pdf_file = HTML(string=html_string).write_pdf() return filename, pdf_file
Felipe
This function create the pdf and return to the function that send by email, I added this lines to save the file to aws and record the link on the cart model
Felipe
file = ContentFile(pdf_file) file.name = filename invoice.pdf_file = file invoice.save()
Akash
How should I store raw text for regex matches. My model: class TextChange(models.Model): old_word = CharField(max_length=20) new_word = CharField(max_length=20) I want to allow users to do some text changes so they set: a literal string ‘123’ or raw string r’\d+’ So I can simply do: new_text = re.sub(old_word, new_word, data)