Lugano
Lugano
template engine
@lnxpy i know only what is an api, i dont know what is template engine.i have just guesed :(
Sadra
Yah i know,so when i write a post i should use <pre> </pre> bt they would be intepreted as english words not html elements
Not a good way. Mostly, we use pre in order to render the code blocks. You probably need either a WYSIWYG editor or, a validator function that will replace the space with  .
Lugano
Use django ckeditor
Let me look at it
Sadra
@lnxpy i know only what is an api, i dont know what is template engine.i have just guesed :(
The Django built-in template rendering system. The simplest way to include the templates right within the Django project.
Baggy ️️
Anyone hosted a website?
Alex
Anyone hosted a website?
No. You are the first.
Baggy ️️
Stop kidding
Sadra
No. You are the first.
IQ=2000 😂👍
Baggy ️️
I need to submit a website hosted
Baggy ️️
In 2 days
Baggy ️️
Any idea other than Aws ec2
Baggy ️️
Someone help me out
Sadra
Django webserver? If so, I suggest pythonanywhere.
Baggy ️️
But they are too costly isn't it?
Sadra
But they are too costly isn't it?
Completely free (for beginner platform)
Lugano
Vps is cheap
Lugano
And multipurpose :|
Baggy ️️
Completely free (for beginner platform)
But we can't have a custom domain for free right?
Baggy ️️
In python anywhere.com
Alex
Completely free (for beginner platform)
note that on the free pythonanywhere account only mysql or sqlite db is allowed.
Sadra
But we can't have a custom domain for free right?
That's it. You want the server for 2 days?
Baggy ️️
No
Sadra
Or a DBaaS.
Alex
Oh, and also there is white list for outgoing http requests
Baggy ️️
Ohh man what's all this
Sadra
No
Oh opps. I thought you want it to be up for 2 days. Cloud providers might help you.
Baggy ️️
At least for a year
Sadra
At least for a year
Not in the mood, but helps. https://www.netguru.com/blog/django-hosting
Yuvi
If any one have face recognition project Or can any one guide me
Baggy ️️
Anyone knows what's the average cost for hosting a website per year
Baggy ️️
python anywhere is charging 4300Rs
ʜᴀᴍᴇᴅ
python anywhere is charging 4300Rs
do you have any roadmap for creating platform like Pythonanywhere by Python? i love to making this for my startup
Sadra
There are a lot of factors you need to keep an eye on.
Ghorz
if your budget is between 25-30$/year
You can use namecheap shared hosting
Sai
and your frontend is made in ?
Yes child of javascript angular
Mirco
Yes child of javascript angular
So you need to learn how to deploy a node js app
Sai
So you need to learn how to deploy a node js app
Yeah actually I do by uploading my code (zip) into Machine. That's it
Mirco
Yeah actually I do by uploading my code (zip) into Machine. That's it
This is the 2020, you are still uploading your code with a zip ?
Mirco
Do you know what a CI/CD is ? Saikiran
Mirco
Yes I do
If so, why you wanna upload your code with a zip to deploy ...
Sadra
Do you know what a CI/CD is ? Saikiran
Maybe not that much experienced.
Sadra
Maybe not that much experienced.
Which is massively BOOM.
Sai
If so, why you wanna upload your code with a zip to deploy ...
Currently we are changing the flow and now we include CI/CD while deployment.
Mirco
Currently we are changing the flow and now we include CI/CD while deployment.
Nice so you know how to deploy in a "modern" way
Lugano
Can i do something like this {{post.body[:20]}} on the template? I want to truncuate body contents
Mirco
Can i do something like this {{post.body[:20]}} on the template? I want to truncuate body contents
There is a proper filter for it, if I don't go wrong it's called truncate or similar
Sai
Cool
It's fine if you have any tutorials that good for me about ci cd
Sai
Nope, try on TestDriven.io
Thanks iam looking for any free tutorial
Alex
Can i do something like this {{post.body[:20]}} on the template? I want to truncuate body contents
https://docs.djangoproject.com/en/3.1/ref/templates/builtins/#slice
Lugano
@pyflare and @alkalit thanks again :)
Doragonsureiyā
Manuel
has somebody done something with ldap
Manuel
with django
cj
has somebody done something with ldap
https://django-auth-ldap.readthedocs.io/en/latest/install.html
cj
it's not that hard at all
Manuel
yeah but I got a doubt
Manuel
how do I search here if my ldap is by email not by users ?
Manuel
AUTH_LDAP_USER_SEARCH = LDAPSearch("o=domains,dc=ss,dc=rimed,dc=cu", ldap.SCOPE_SUBTREE, "(uid=% (user)s)")
Manuel
because I got multiple domains inside
Manuel
my ldap