Павел
Hi all, has anyone previously connected LiqPay payment system to django site?
Doragonsureiyā
Hi all, has anyone previously connected LiqPay payment system to django site?
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! If you don't know what to ask, please read: http://catb.org/~esr/faqs/smart-questions.html
Venky
Pipi install Mysqlclient not downloading in project getting error you to download wheel file can anyone help me to resolve this issue?
Venky
mysqlclient Building wheel for mysqlclient (setup.py) ... error ERROR: Command errored out with exit status 1: command:
Venky
full error
Can you explain it
Charly
Can you explain it
That you need to show the full error
Elman
We are encountering an error related to Microsoft Graph API integration in our Django application. Specifically, the error message is: { "error": { "code": "OrganizationFromTenantGuidNotFound", "message": "The tenant for tenant guid 'e01c8511-af06-4cad-9b24-a63b9da7b0fc' does not exist.", "innerError": { "oAuthEventOperationId": "8b058e01-f527-4afe-9294-ee28aec98e19", "oAuthEventcV": "D3A3Bd+uExjl4MwXmDgIqw.1.1", "errorUrl": "https://aka.ms/autherrors#error-InvalidTenant", "requestId": "fda9cb55-b436-4590-b3b3-3d847ee7e931", "date": "2024-09-16T18:42:41" } } } This happens when trying to authenticate using Azure AD and fetch emails via Microsoft Graph API. The decoded token shows a valid tenant_id, client_id, and permissions, but we suspect there might be an issue with the tenant configuration or app registration on Azure. At the moment, using the token, I can get a list of all users. However, when I go to the information on a specific user, an error occurs. However, on the application side, no errors are displayed. My main task is to configure the functionality of sending messages from my application, so that messages sent to the user's address are visible in the application (also when sending a message to a user). Has anyone encountered such a situation?
Francis
mysqlclient Building wheel for mysqlclient (setup.py) ... error ERROR: Command errored out with exit status 1: command:
if you are using linux you might try and install system packages that it might depend for example: sudo apt-get install python3-dev default-libmysqlclient-dev build-essential
Venky
In ORM model I am trying to migrate data connected to MySQL db and xammp server running Migrating the data Getting error: django.db.utils.NotSupportedError : Maria db 10.5 or later is required
Jafar 🐈‍⬛
How to add search input in django admin page for creating object, so that I can search a specific course (ForeignKey Related)... I have up to 1000+ courses and it's stressful going through them...
Khaled
How to add search input in django admin page for creating object, so that I can search a specific course (ForeignKey Related)... I have up to 1000+ courses and it's stressful going through them...
try to user auto complete packages such as django-autocomplete-light with raw_id_fields attribute from django admin model class. I think that will solve your problem.
MTRJJ
Try to migrate first
A question I am making a blog project But I want to improve it My blog takes text input for every single post and shows it but I want to add something that is able to take HTML text input and render it as HTML My question is How to do it?
MTRJJ
https://django-ckeditor.readthedocs.io/en/latest/
Wow I will use it But for fun is really possible doing what I said?
Khaled
but that is some how risky you want to make sure to handle the user input very well to avoid XSS
Francis
Wow I will use it But for fun is really possible doing what I said?
will you be storing the html to the database?
MTRJJ
Yehh😂
It's just for fun
Francis
Yehh😂
it is possible but security is a concern because raw html can be used to pass malicious code you can create a model to store your html content for example class BlogPost(models.Model): title = models.CharField(max_length=255) content = models.TextField() date_created = models.DateTimeField(auto_now_add=True) but then before saving the html to the database, you can sanitize it for example using a python package called bleach import bleach allowed_tags = ['p', 'b', 'i', 'u', 'a', 'ul', 'ol', 'li', 'strong', 'em', 'br', 'blockquote'] allowed_attributes = {'a': ['href', 'title']} def sanitize_html(html_input): return bleach.clean(html_input, tags=allowed_tags, attributes=allowed_attributes) def post_blog(request): blog_content = request.POST.get('content') sanitized_content = sanitize_html(blog_content) then you can render the contents on the template <h1>{{ blog.title }}</h1> <div>{{ blog.content|safe }}</div>
Abdullo
Abdullo
You can use html to get post put or delete data
Charly
It's simply impossible
It is totally possible
Abdullo
It is totally possible
U mean storing page. How do u gonna save it
Charly
Abdullo
https://t.me/django/284181
I didn't know it. Thank you though
satish
Hi all I am looking for django self learning course if anyone have please share
Francis
Hi all I am looking for django self learning course if anyone have please share
Django documentation itself offers a beginner friendly tutorial where you begin by creating polls app. You can start with it if you haven't already.
Doragonsureiyā
Hi all I am looking for django self learning course if anyone have please share
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
matija
What about DRF tutorial?
google mark winterbottom
matija
google mark winterbottom
on udemy, best and most realistic DRF tutorial
Tayeb
Hi everyone I have good knowledge in python and working on other python framework which is frappe. I need someone to guide me how to start with Django. thanks in advance
Nobi
First create you in django project
Nobi
If you have set-up python djnago
colo
(my english is ver poor...) i hello i've a problem, dj4.2 dont detect table changes. i remove database (sqlite), remove *.pyc, remove migrations and dont. any ideas ?
colo
solved. manage.py migrate —run-syncdb
Samor
solved. manage.py migrate —run-syncdb
Always migrate the files after new edits before running it on the servers
Samor
Can anyone tell me how to delete cached files ?
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
without using front end languages, how can i build projects? can someone help me with it?
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
MTRJJ
mostly asks for money
For advanced templates yes But for others you can find free one And notice that you can't expect very good templates to be free Just learnHTML it's simple you can learn it just in an hour
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
For advanced templates yes But for others you can find free one And notice that you can't expect very good templates to be free Just learnHTML it's simple you can learn it just in an hour
i learned html, but when i do both at same time and i get many errors, i got more error after i used chatgpt 😅. anyway i will try finding templates and try
MTRJJ
i learned html, but when i do both at same time and i get many errors, i got more error after i used chatgpt 😅. anyway i will try finding templates and try
Come on... If you are a beginner don't start with complicated things Just start with basics and then improve it step by step
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
the good reason not to use ChatGPT
yes, i wont use it anymore, i will use any templates. someone asked me to make it responsive using tht, so i tried it
MTRJJ
yes, i wont use it anymore, i will use any templates. someone asked me to make it responsive using tht, so i tried it
For starting I don't recommend it It's like using airplane to get home from school instead of walk
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
i have completed a course of django, i build todo app and an ecommerce website while completing it
MTRJJ
i have completed a course of django, i build todo app and an ecommerce website while completing it
Wow Cool Start advanced front end course And if you have an error send here to answer What exactly error do you get?
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
Wow Cool Start advanced front end course And if you have an error send here to answer What exactly error do you get?
can i share my page link here? i used chatgpt to make responsive, now filter option not working
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
and the other issues are not of django
MTRJJ
can i share my page link here? i used chatgpt to make responsive, now filter option not working
Making site responsive is not that easy It's hard for me too😆
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
It's also really challenging for advanced developer
ooh, then i will focus more on just more projects than making them responsive
MTRJJ
ooh, then i will focus more on just more projects than making them responsive
Yes And there are separate courses for making site responsive
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
Jack
Hello guys I installed django-jazzmin to my Application. But the styling doesnt show. How can i go about this
Jack
The Admin page appears with no styling at all
Fabioshi
Have you tried django-admin-interface ?
Jack
I added Tailwind and the Django-admin styling also went blank
Jack
Have you tried django-admin-interface ?
Any other admin UI, you might refer
Fabioshi
You can check here: https://djangopackages.org/grids/g/admin-interface/
AZ
Yes And there are separate courses for making site responsive
I think it is one of the easiest things to make a responsive website
soheil
I want to keep up to date with Django and learn new things What platform or solution do you suggest for this?