Mirco
👍🏻😁
Jimmies San
Mirco
without the help of js/html5 ?
I don't know how he's written that function , but I agree with u
I think he needs at least html5 mic APIs too
Anonymous
Is there a way to write code that runs every specific period of time out side of the views
Oleg
Anonymous
Macurrent
Which text editor in the text field did the developers in stack overlow use? The one that looks like word
Macurrent
cj
Macurrent
How do you rate it compared to other editors
Macurrent
Macurrent
Am getting error installing ckedito...No matching distribution found for ckeditor
cj
Macurrent
https://stackoverflow.com/questions/28122166/adding-ckeditor-to-django-project
Macurrent
Macurrent
So its not good to use it with django. Django is for backend...
🏳️🌈Robby [ Private Message = Spam]
https://t.me/pythonres/32
🏳️🌈Robby [ Private Message = Spam]
Django resources
Macurrent
cj
George
🏳️🌈Robby [ Private Message = Spam]
🏳️🌈Robby [ Private Message = Spam]
I pwned one idiot who wrote a shitty blog article which fucking had a SQL Injection vuln...same db for his shitty blog — the schema was interesting, passwords for it stored in plain fucking text too
cj
🏳️🌈Robby [ Private Message = Spam]
cj
lol
🏳️🌈Robby [ Private Message = Spam]
I lost the data :/
Jimmies San
Jimmies San
well "crime"... :D
🏳️🌈Robby [ Private Message = Spam]
Jimmies San
🏳️🌈Robby [ Private Message = Spam]
even I forgot the shit blog it was on
Jimmies San
btw: linode rulez! i love it :D
🏳️🌈Robby [ Private Message = Spam]
cj
🏳️🌈Robby [ Private Message = Spam]
I dont actually have a personal VPS — I have access to a ton of infra I _COULD_ use but don't
Macurrent
Actually am new in django and i finished a first tutorial in django girls. Am remaining with the extension part of it
Jimmies San
Jimmies San
and network too
Jimmies San
but few "cloud services" [volumes, elb, floating point ecc]
Macurrent
i have use ckeditor before but not with django. i followed https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/basic-api.html .And it worked for me. Applying that with django framework is a bit tricky. I dont see anything related to django in that doc
cj
Macurrent
How do i get an id of an autogenerated form in django eg, in the doc, the #editor id is used down below
Macurrent
fields = ('title', 'text',)
cj
Macurrent
{% extends 'blog/base.html' %}
{% block content %}
<h2>New post</h2>
<form method="POST" class="post-form">
{% csrf_token %}
{{ form.as_p }}
<button type="submit" class="save btn btn-default">Save</button>
</form>
<script>
ClassicEditor
.create( document.querySelector( '#id_text' ) )
.then( id_text => {
console.log( id_text );
} )
.catch( error => {
console.error( error );
} );
</script>
{% endblock %}
Macurrent
cj
cj
Macurrent
Macurrent
That still does not work for me
{% extends 'blog/base.html' %}
{% block content %}
<h2>New post</h2>
<form method="POST" class="post-form">
{% csrf_token %}
{{ form.as_p }}
<button type="submit" class="save btn btn-default">Save</button>
</form>
<script>
ClassicEditor
.create( document.getElementById('id_text') )
.then( id_text => {
console.log( id_text );
} )
.catch( error => {
console.error( error );
} );
</script>
{% endblock %}
cj
cj
well... you're not sourcing the ckeditor js files
cj
that's why it's not working 🤷🏻♂️
🏳️🌈Robby [ Private Message = Spam]
My spambot-dar is going crazy
Macurrent
cj
cj
debug and fix 🙂
Macurrent
I got the Getting and saving data part. But here again they use php to explain that part...https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/saving-data.html
Sankhe
Hi..please tell me how to intetconnect front end with backend..
Le Createur
🏳️🌈Robby [ Private Message = Spam]
https://github.com/pydanny/cookiecutter-django/blob/master/README.rst
Jatin
Need Help:
i have 2 models one for product and other for storing image(this model connect to product through foreign key). i don't know how to display image in between product data.
Mirco
Mirco
Where object is a Product instance
Mirco
If u didn't set any related_name , u can use the default image_set
Kev
hey guys, I need some help:
I am passing a list of dictionaries to a request and after retrieving it via request.POST.getlist('my_list'), the elements in the list are of type str instead of dict, how do I retrieve the list with the correct content?