Yegor
Hi guys hm RAM space do i need to Redis Channels layers? Server will be loaded for ~2000 requests/h.
cj
Hi guys hm RAM space do i need to Redis Channels layers? Server will be loaded for ~2000 requests/h.
start using a virtual machine and play with the RAM size there until you find the right size for your project
cj
I use AWS Elasticache :)
start using a virtual machine, in your localhost, play with the RAM size until you found the right size for your project, then set it in your VPS
Yegor
start using a virtual machine, in your localhost, play with the RAM size until you found the right size for your project, then set it in your VPS
I think thats a very bad idea to test perfomance on local machine. But I understood u, it seems i need to deploy yandex tank container to test it. Ok ill take standard 16G...
cj
just for clarification: you can blow up the RAM —even tho it is 16GB RAM— with just one request, or you can nicelly work with 1000request/h with 1GB RAM... everything is relative
cj
2000request/h is like 2 request per second, which can be handled with 512 RAM or less... 🤷🏻‍♂️ but meh... this is not a DevOps group to discuss about it
Jimmies San
2000req/h are nothing
Jimmies San
16gb ram of cache????
Jimmies San
o_O
Jimmies San
Ok per S
what kind of request
Jimmies San
how heavy for db?
Yegor
what kind of request
Channels layers
Jimmies San
do tests live, monitoring all with an APM
Jimmies San
if needed: increase and/or optimize
Yegor
Ok per S
And one more question: whats better for this Postgres or Mongo? I've seen perfomance tests and Mongo can handle more requests. What do u think?
Jimmies San
use case before the tool
cj
you can use MongoDB for caching... but outside your project scope 🤷🏻‍♂️
Yegor
Django is designed to be used best with PostgreSQL
I know, but Mongos perfomance is better, and I use Redis
cj
redis is better for me. a lot.
yes, but for OP question, he gave 2 options 🤷🏻‍♂️
cj
I know, but Mongos perfomance is better, and I use Redis
different scenarios, different use-cases
Jimmies San
I know, but Mongos perfomance is better, and I use Redis
mongo better than redis as inmemory cache? sorry I don't think so
Yegor
in r/w speed
Jimmies San
too much confusion bro
Jimmies San
I give up
Jimmies San
😂😂😂❤
cj
better than Postgres...
you need to sleep, please 😉
Jimmies San
well a nosql scale better than a sql
Jimmies San
but are different things
Yegor
but are different things
So i ask whats better to use
cj
well a nosql scale better than a sql
with good tweaks and golden fingers, you can make PostgreSQL to scale so good too
cj
But not when u Plug'n Play it?)
PostgreSQL has good performance out-of-the-box too 🤷🏻‍♂️
Shaikha
You can use PDFkit package
I tried this library but I don’t know where to put it exactly, can you give an example if you have one , please?
Anonymous
Hi everyone. I want to install comment system to my blog site. Who can help me step by step?
NR
hi, any book recommended for exting user models
007
I have assign name to button based upon id and i want to retrieve that button value in views.py ,but it show none as output , this is dpaste link : https://dpaste.de/R5fJ
sravan
I tried this library but I don’t know where to put it exactly, can you give an example if you have one , please?
first you need to convert the html to sting you will get a methord to do that
sravan
Okay and then?
from django.template.loader import render_to_string import pdfkit options = { 'page-size': 'Letter', } html_string = render_to_string('sample.html', {'kwargs':'data'}) pdfkit.from_string(html_string,filename.pdf,options=options)
sravan
But I’m not using template, I am using DRF, and I get the html from the user, and then I convert it... should I have to use template in this case too?
i that case i think you can save the uploaded html in media then you can access from there to convert in to string
sravan
Yes, how can I do that? and then I override the save
google it bro how to save the uploaded file in DRF
Shaikha
google it bro how to save the uploaded file in DRF
I did saved the file, I just don’t know the access to it
Shaikha
Okay I search again, and let you know, thanks man
sravan
cool
Kannan
Does anyone know how to create docker of django project
Jimmies San
Jimmies San
not really updated but it works and you can look at as example
C
Django devs, Kerala, A state in India is affected by the flood. Please do contribute to this work🙂 https://github.com/IEEEKeralaSection/rescuekerala Slack: http://bit.ly/Keralarescuechat
sravan
github.com/gionniboy/djangazzo
i have writen an article on this it may be help full https://www.one2onetechs.com/2019/05/docker-for-django-developers.html
rondaz
hai everyone, #ask is it possible to deploy django in shared hosting without SSH access?
Jimmies San
hai everyone, #ask is it possible to deploy django in shared hosting without SSH access?
it depends from the hosting.... btw take a look to gandi. has plans for python
rondaz
it depends from the hosting.... btw take a look to gandi. has plans for python
hi, i have setup python app menu in cpanel, the problem is i failed to deploy django inside public folder
Jimmies San
idk cpanel sorry :/
ಶಶಾಂಕ್
How to convert uploaded file(CSV, text, Excel) to table in database sqlite dynamically using django?
ಶಶಾಂಕ್
Wow what a reply thanks for Ur valuable suggestion
Jimmies San
Wow what a reply thanks for Ur valuable suggestion
thanks to you to learn how to use google, bro'!
Jimmies San
if you have issues with the solutions, after you tried, let us know.
ಶಶಾಂಕ್
Can u suggest how to search in Google in proper way
ಶಶಾಂಕ್
a browser?
Ha I tried but not getting proper answer
Jimmies San
i prefer gohper than www, but i'm vintage
ಶಶಾಂಕ್
ಶಶಾಂಕ್
Link or search link
Jimmies San