[ 𝕂𝕣𝕒𝕦𝕤𝕖 ]
Hey. Does anyone have a custom filter to exit the loop in templates?
Found this one, but it's old.
https://djangosnippets.org/snippets/2093/
pauliñho
Hello guys, hope you're all doing fine. I have a quick favour to ask form you. I am new to django....so i have this system that i start to develop where a student fills a form and then exactly the same informations need to appears on the side of HOD, i have created two apps inside the project, i have called those apps as student and HOD.But the problem is i don't know how to grab the data from database and display to the HOD side. I believe some of you might help me, even if you have a different approach like creating two templates for student and HOD instead of two apps, i'll welcome all of your help.Thank you inadvance good peoples.🙏
sagir
pauliñho
You must use CRUD for this
Yeah, thanks i can save data on database and view them, but i don't know how to grab the data fron db to the html template ( i use dbsqlite) please if you have any resources that can help please I'd really appreciate if you can share with me🙏
Владислав
Guys!
Is there a way to migrate all tables(including django `auth_*`)to custom db-scheme (not «public») ?
I think i’m loosing my mind searching for solution
Anonymous
Sorry
Anonymous
Владислав
Didn't get u
if you execute
python manage.py migrate,
django will create all tables in public.
But i’m not permitted to create in public - I have special scheme for my app: scheme_for_django
How can i set up scheme_for_django for my app, so django migrate tables in it?
Toni
I'm using Django Generic Views, and I want to use DeleteView without the confirmation html. Is it possible? if yes then how? can someone guide please?
Alex
Hey guys, I am receiving a POST via webhook it supose to be a JSON file but it came like: {'foo': 'bar', 'foo_2': None} and I have get Json sintax error, shoul I use a kind of technique like parse? thx
Anonymous
Hello) I connected all the static files, but still the beaten styles when going to the page home.html) Help solve the problem.
code on github
Pandu
How can I fill date and time automatically based on time zone.
Pandu
Khemraj
Hey everyone can we make website in django which hai fingerprint which can run on smartphone
George
Khemraj
Ya but can we use phone fingerprint to access website
George
Khemraj
How?
George
How?
Let me 🦆 DuckDuckGo that for you:
🔎 fingerprint web django
Khemraj
OK
Abdulrahman
Pandu
Good luck 👍🏻
I want to that date&time any possibilities?
Abdulrahman
Pandu
Pandu
USE_TZ = True
Abdulrahman
What the issue now
Pandu
Models also created. I want to retrieve that created time.
Pandu
Created time by default hiden right?
Abdulrahman
from admin
Abdulrahman
Page
Abdulrahman
could you please upload your code on GitHub, so I can check it
Pandu
Ok
Govind
Hi Everyone,
How do friend request, delete and add work in django?
Please advise.
Anonymous
Hey guys is it possible for each item in category to have its own model
Govind
ok
ֆ33ʏ377
Hi,
Can anyone explain following Error :
1452, Cannot add or update a child row: foreign key constraint fails
Makemigrations was successful and
migrate gave me above error
Thank you
Anonymous
How to integrate telegram for messages in django ?
Mirco
Anonymous
what u mean ?
Means I want messaging like chat using telegram
Rajendra
Can anyone help me to hosting django project on go daddy share hosting using filezila ..
Jahongir
how can I install python SDK
Ghorz
Sheshadri
Jahongir
I was installed python and pycharm. If I try install django or requirements or other thig, It returned mistake on terminal certificate verify failed.How can I install django
Sheshadri
Sheshadri
Which OS?
Jahongir
windows
Jahongir
7
Sheshadri
Pycharm community version ? What commands are you using?
Sheshadri
certificate verify failed
Check your python version, think you have installed python 2.7 which is not supported anymore, try uninstalling your python and reinstalling python >= 3.6.
Jahongir
any commands for example pip install django, pip install colorama, pip install -r requirements.txt
Govind
Hi Everyone,
How to prevent form resubmission when page is refreshed in django.
Please advise..
Jahongir
python version is 3.8.2
Jahongir
yes
Sheshadri
pip -V ?
Jahongir
Sheshadri
paste here
Sheshadri
what it says
Sheshadri
Try with run as administrator? Create your project other than C:\ drive and check
Amir
How can I count the views of a post in my blog?
Rajesh
Anyway to serialise single model instance
Rajesh
I'm using filter().first()
Rajesh
It return single model instance
Rajesh
When I apply serializers.serialize on that instance I get error that is model is not iteratable
Zaryab
Hello experts, just a simple question
Zaryab
How do I pass values values from within javascript to django views through urls
Zaryab
For example, Normally we pass values this way in html <a href="{% url 'login' id %}" class="btn btn-primary">LOGIN</a>
Zaryab
But how to pass values through url from javascript to django views.... Please help me out
Toni
I'm using Django Generic Views, and I want to use DeleteView without the confirmation html (template). Is it possible? if yes then how? can someone guide please?
Hernan
I have been fighting with pythoanywhere and a django project for hours
in my local environment the html finds them correctly from the templates folder
but when I do the implementation in Pythonanywhere I can't find a way to go find the templates where it should
If any of you have already experienced this situation and can give me a troubleshooting