Bit
Thanks
Bit
How can I write a cron job, am using Windows machine and getting fcntl error
Roman
Hi guys
Roman
Please navigate me if you know , I am trying to separe front end from bacnend , so I don't want to use {% %} stuff , but just return json assign it to some const r in javascript and then do the stuff using JS
Roman
So what happes is that I am not able to do it for some reason
Roman
I created dict , did json dumps . and then in the front end I did
<script>
const te = "{{ t }}";
console.log(JSON.parse(te))
</script>
but this seems not working
Cheap
Ghorz
Roman
{% if r%}
<script type="text/javascript">
const r = {{ r |safe }} ;
</script>
{% endif %}
Roman
This works but gives a syntax error xD
Cheap
Cheap
indent script block
Roman
{% if r%}
<script id="r_data" type="application/json">{{ r |safe}}</script>
<script>
const r= JSON .parse(document.getElementById('r_data').textContent);
</script>
{% endif %}
Roman
Yeah indeed
Беляев
Продаю базу инвесторов 2 крупных фондов, дешего в лс
Anonymous
hii everyone , plz navigate me if you know.. "how to add phone field in django form"
saran
Rajesh
where should start django course? youtube anything please say
Code
@infothamizha Book: Two Scoops of Django
Code
the term 'beginner' is debatable. if the 'beginner' has programming skills then it 'may' be helpful. but i see what you're getting at
Anonymous
Code
it could be, yes. but as with anything, it would take practice
Code
how advanced? any info on ASGI would do...as long as you're using django 3.. but, Getting Started with Django Channels is a good start. Djano's own docs are pretty good too @cheapgemmer
Paras
Anyone who use django in visual code?
George
Paras
Ok sorry!
Code
If I recall the creators of django came out with a book called The Definitive Guide to Django (i think).. Although the book is dated, most of the concept remain the same. There is also a section called "Using Django Sessions" from the book Django 2 by Example (good book)
Code
What, exactly are you trying to accomplish? @cheapgemmer
Vidu
For my project, I'm going to use Django with MySQL.
I have already installed MySQL server, XAMPP, Django, Python.
Recently I heard about Bitnami Django stack. My question is, is it worth to insatall Bitnami?
Or because I already have required resources, it has no advantage to use Bitnami Django stack?
barto
Hi!
I am using sorl thumbnail in django I have a problem with safari, the browser does not support webp
Any ideas how can i solve it?
Code
ok
Rajesh
Anonymous
what else?
Django for Beginners: Build websites with Python and Django
Book by William S. Vincent
It is very beginner friendly, you can get through this book even if you don't have some programming experience
Angela
How do we start
Onur
Hi, how can I send sessionid in post request in postman? Any ideas
Anonymous
Gio
hello guys
Gio
i have one small mistake in code not sintax logical
Gio
wasted 3 hours
Gio
please who are free just look at it
Gio
so there are customers who have to pay some amount of money every month
Matvey
Hi, please help me.
If I use the django-celery-beat for periodic tasks, how can I start a task defined in a file settings.py? start another worker?
Gio
this way code works and adds 1 month to accrual date i 'll show database
Gio
as you can see first date is 2016-07-31
Gio
then it increases
Gio
by month
Gio
and when last digit in this table is less than 40 it enters function checkAvance
Kanchan
I have 200 options in select and i have to track which option is selected. Anyone know how to do that
Gil
Anders (izzno / gooood) 🇳🇴
What's select ?
Anders (izzno / gooood) 🇳🇴
The jquery thingy ?
Kanchan
I use api and all the data is parsed to html file
Kanchan
And user have to select a option
Anders (izzno / gooood) 🇳🇴
I dont understand the question.
Anders (izzno / gooood) 🇳🇴
You have to track it in "realtime"
Kanchan
Yes. I use that value for further examination
Anders (izzno / gooood) 🇳🇴
Then your in the wrong group ?
Anders (izzno / gooood) 🇳🇴
Why would you pass that back and forth? Use something like Vue ?
Anders (izzno / gooood) 🇳🇴
You can drop a vue instance in there and take care of that.
Kanchan
Ok
Anders (izzno / gooood) 🇳🇴
It sounds like a "frontend" thing. And Django is not a dynamic front end thing.
Anders (izzno / gooood) 🇳🇴
But hey, I could be wrong 😂
Kanchan
I am creating project in django using html template for fromt end
Anders (izzno / gooood) 🇳🇴
Yes, but you want the page to change dynamically ?
Kanchan
Yes based on user selection
Juan Carlos
For a brochure website
What's more suitable
WordPress
Django CMS
Or another one?
محمد
Hi guys
محمد
I want to edit the file setting at run time?
محمد
Example :change name of databases
cj
محمد
محمد
User enter databases name and type and server after that make migrate