python developer
like {
"Andaman and Nicobar Islands": {
"districtData": {
"North and Middle Andaman": {
"notes": "",
"active": 0,
"confirmed": 1,
"deceased": 0,
"recovered": 1,
"delta": {
"confirmed": 0,
"deceased": 0,
"recovered": 0
}
},
"South Andaman": {
"notes": "",
"active": 0,
"confirmed": 32,
"deceased": 0,
"recovered": 32,
"delta": {
"confirmed": 0,
"deceased": 0,
"recovered": 0
}
}
},
"statecode": "AN"
python developer
to HTML Code in Django
Mirco
!offtopic
Doragonsureiyā
looks like you need an offtopic group, please continue this conversation at @pythonofftopic
Mirco
like {
"Andaman and Nicobar Islands": {
"districtData": {
"North and Middle Andaman": {
"notes": "",
"active": 0,
"confirmed": 1,
"deceased": 0,
"recovered": 1,
"delta": {
"confirmed": 0,
"deceased": 0,
"recovered": 0
}
},
"South Andaman": {
"notes": "",
"active": 0,
"confirmed": 32,
"deceased": 0,
"recovered": 32,
"delta": {
"confirmed": 0,
"deceased": 0,
"recovered": 0
}
}
},
"statecode": "AN"
u need js
Xavier
like {
"Andaman and Nicobar Islands": {
"districtData": {
"North and Middle Andaman": {
"notes": "",
"active": 0,
"confirmed": 1,
"deceased": 0,
"recovered": 1,
"delta": {
"confirmed": 0,
"deceased": 0,
"recovered": 0
}
},
"South Andaman": {
"notes": "",
"active": 0,
"confirmed": 32,
"deceased": 0,
"recovered": 32,
"delta": {
"confirmed": 0,
"deceased": 0,
"recovered": 0
}
}
},
"statecode": "AN"
look into Ajax
Mirco
it's better to know a native language API before a wrapper for it
and nowadays Ajax is into the process of disappear from major big projects
Xavier
Mirco
:( i want Ajax to live longer
I think you have to start to say goodbye to it, Github removed it totally, Bootstrap has PR to remove it and so on
Xavier
;-;
Sarthak
where can we put these settings in a django project?
https://dpaste.org/RBjK
Sarthak
got it
V
Has anyone worked with Django Channels here?
Mirco
Doragonsureiyā
Has anyone worked with Django Channels here?
Please don't ask meta questions like:
"Any user of $x here?"
"Anyone used technology $y?"
"Hello I need help on $z"
Just ask about your problem directly! With 60k+ people the probability that someone will help is pretty high.
Also please read: http://catb.org/~esr/faqs/smart-questions.html
Dhruva
I am not able to customise the default password reset for the django rest auth ? how to do
Aditya
I m getting error wsgirequest has no attribute GRT
Aditya
GET*
Mirco
Share the code
Mirco
With code sharing tools
Aditya
Bro in this group sharing media is not alloy
Aditya
Allowed showing that
Mirco
!rules
Doragonsureiyā
Read the rules before any activity: @PythonRules
Aditya
Ok
Dhruva
Pritam
Do anyone have any pdf for django other than it own documentation?
Jeevachaithanyan
Is it possible to use Python code inside HTML ? The below PHP snippet is valid and run fine in PHP supported server. Can we do same in Python?
<?php
$hello = "Hello world";
?>
<html><body><h1><?php echo $hello;?></h1></body></html>
Pritam
Jovani Martín
Izbash
Izbash
Doragonsureiyā
Hi! This group is English-only. Please, translate your message into English or move to a group speaking your language. Thank you.
Doragonsureiyā
Maybe jinga2 works for you
Hi! This group is English-only. Please, translate your message into English or move to a group speaking your language. Thank you.
Mr
George
!paste
Doragonsureiyā
To share code or error tracebacks please use an online pasting service, here is a list of suggested sites:
- https://del.dog
- https://dpaste.org
- https://linkode.org
- https://hastebin.com
- https://bin.kv2.dev
Angel
Angel
or your can uso custom tags and load to template.
Sarthak
Can you import variables defined outside any function just as you import functions
Sarthak
I kinda found out how....yes it can be done
but my variable stores a value which is returned from a function
will the value be imported or not?
ps
Template inheritance
ps
href= "{% static ' path'' %}"
ps
In images u have to use this
ps
And in setting.py add the path
ps
STATIC_DIR= os.path.join(BASE_DIR, 'static')
ps
Use this
ps
ps
And see the documentation
ps
Yes
ps
And make a static folder and add in setting.py to
ps
U have to check
Anonymous
Shyamkumar
{% load static %} add on starting
Dhruva
How to do country,state and city in django interrelated
Phillip
Hey ,what's the difference between django hosts and django multitenancy
Izbash
problem in image path
are u sure it valid?
Izbash
and if you type in url 127.0.0.1:8000/static/ *image path*, you see this image?
Izbash
weird, maybe
ps
Check the image path, folder of image if image is there
ps
Show the code
ps
Use this in <img> tag inside div and remove style, check if its working in that or not
Yakusa
Try this
<div class="background_image" style="background-image:url({% static 'images/home_slider.jpg' %};" )></div>
Anonymous
Read it carefully
https://docs.djangoproject.com/en/3.0/howto/static-files/
Anonymous
check path
Yakusa
Ur welcome
Velociraptor
Any django tamil speaking developer... Want to discuss about Django...
Velociraptor
Please dm me
Sachin
Does Django has default way to authenticate admin and user page ...
Pirates Of
Sachin
I can login to user page by Django default login ..
Sachin
I asking whether their is any way to login admin through Django default login ...
Shokhrukh
cj
TSD 3.x (alpha) is out today!.... get it with a discount as long as it's May 11th where you live
https://www.feldroy.com/collections/two-scoops-press/products/two-scoops-of-django-3-x
Mirco
Lalit
What is one to one relationship