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
look into Ajax
js has Fetch API now that it's enough
Xavier
js has Fetch API now that it's enough
yea that works too but learning ajax is useful, nah it will make him confused better go with fetch api if js
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
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?
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
With code sharing tools
I'm not your bro and read this one
Mirco
!rules
Doragonsureiyā
Read the rules before any activity: @PythonRules
Aditya
Ok
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>
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.
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
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
And see the documentation
ps
Yes
ps
And make a static folder and add in setting.py to
ps
U have to check
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
Does Django has default way to authenticate admin and user page ...
Yes create superuser for admin and simple user for users
Sachin
Yes create superuser for admin and simple user for users
? .. I have a separate admin Interface where I can edit and handle the users .....
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 ...
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
Lalit
What is one to one relationship