lubaznatel
Someone help me, please. I am writing a React project with Django Rest Framework. I need upload a photo to Backend. I don't quite understand how to do this. I use axios. https://pastebin.com/qi16pUtz (api=axios)
Majid
Anyone know how to create a one to many rel in django model django version 5.0
Is there much difference btwn 5.0 and the lesser version? I'm so scared to update mine 😹
Majid
I don't want to start seeing things like "not supported" on my projects.
cj
I don't want to start seeing things like "not supported" on my projects.
you can always read the release notes for that https://docs.djangoproject.com/en/5.0/releases/5.0/#deprecated-features-5-0
Believe
Do this
Jihadur
TemplateDoesNotExist at /about/ about.html Request Method: GET Request URL: http://127.0.0.1:8000/about/ Django Version: 5.0.4 Exception Type: TemplateDoesNotExist Exception Value: about.html Exception Location: C:\Users\Ripa\.virtualenvs\template_test-9-Og3hse\Lib\site-packages\django\template\loader.py, line 47, in select_template Raised during: main_app.views.AboutView Python Executable: C:\Users\Ripa\.virtualenvs\template_test-9-Og3hse\Scripts\python.exe Python Version: 3.12.3 Python Path: ['C:\\Users\\Ripa\\OneDrive\\Desktop\\demo\\django\\template_test', 'C:\\Users\\Ripa\\AppData\\Local\\Programs\\Python\\Python312\\python312.zip', 'C:\\Users\\Ripa\\AppData\\Local\\Programs\\Python\\Python312\\DLLs', 'C:\\Users\\Ripa\\AppData\\Local\\Programs\\Python\\Python312\\Lib', 'C:\\Users\\Ripa\\AppData\\Local\\Programs\\Python\\Python312', 'C:\\Users\\Ripa\\.virtualenvs\\template_test-9-Og3hse', 'C:\\Users\\Ripa\\.virtualenvs\\template_test-9-Og3hse\\Lib\\site-packages'] Server time: Sat, 13 Apr 2024 02:13:06 +0000
Jihadur
help
Jihadur
thank you
Anonymous
Anyone have project in which custome Admin panel
Anonymous
Use django jazzmin
No I don't want to use any package. I want Admin panel app. Like other django app.
Believe
No I don't want to use any package. I want Admin panel app. Like other django app.
But then might be the functionality would be different because its a customized one
Anonymous
i want all django functionality with some other like add chart
Eclipsco Boy ✌️✌️
Hello I created a generic view supposed to be the page to which the user will be redirected once connected but when I launch the page with the link in the browser, it sends me a 404 error Please help me, thank you
Anonymous
What do you want?
@P_shoja Demo of customer admin app . With all functionally ,professional Admin dashboard
Habib
Hi there, i have a question I have been trying to implement a basic auth api /register /login /logout utilizing by utilizing abstractUser And it works on browsable api but when i connect it with react native frontend i get this Error: {"detail: "CSRF FAILED: CSRF token missing."} tried csrf_exempt but nothing
Maxim
Anyone have project in which custome Admin panel
this is not a project sharing group
_
this is not a project sharing group
How else are we supposed to help them?
Charly
How else are we supposed to help them?
With specific questions not with ready made projects
_
With specific questions not with ready made projects
Yeah that's what I ask for, that specific code in which he was facing the problem.
ABHIRAM
No I am not asking for ready made project
ABHIRAM
I am getting the output on screen
𝑀𝓇. 𝐿𝑒𝓋𝒾𝒶𝓉𝒽𝒶𝓃
Hi everyone I have a question Which database is better for Django? MySql or PostgreSql?
𝑀𝓇. 𝐿𝑒𝓋𝒾𝒶𝓉𝒽𝒶𝓃
Marlone
Hello I am new, How can I send an email I have tried several ways but I can't
Snuppe
postgresql is better
For which reason? Faster? Easier? Could handle more data?
Doragonsureiyā
Hello I am new, How can I send an email I have tried several ways but I can't
Your question is not related to Django. Please move to @PythonOfftopic group and ask there.
𝑀𝓇. 𝐿𝑒𝓋𝒾𝒶𝓉𝒽𝒶𝓃
Hadi
Why?
Django has the best support for PostgreSQL.
Qwerty
Why?
because postgresql has more data types, more flexible configuration of transactions and it works faster and so on.
𝑀𝓇. 𝐿𝑒𝓋𝒾𝒶𝓉𝒽𝒶𝓃
Django has the best support for PostgreSQL.
Aha I thought because it’s easier
Captain
Why?
Lots of documents is available & it works faster with Django Also it is easy to use there
Habib
Can you let us see the code
Thank you so much, I managed to make it work
Mohammad
Hey everyon Quick question how can I have a modifiable admin panel?
Максим
django form. In settings.py CSRF_TRUSTED_ORIGINS = ['my_domain']. In template <form ...> {{ csrftoken }} problem: 1) open main page with form 2) open mydomain/admin in new tab 3) select first tab (with main page), send form. CSRF TOKEN INVALID ERROR. Reload page in browser - all ok, no csrf token error on sending form. How to fix? I think, opening /admin in new tab - it s reset csrf token in previous tab
RT
Best resource to learn django
Doragonsureiyā
Best resource to learn django
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Jitxs
Any free platforms for hosting django projects ? i'm using mysql database
Jitxs
DigitalOcean, AWS
i don't know cloud, like how to configure a database on cloud any video or blog ?
maneliiii
can we write test for django models with selenium? a test that login into admin panel and makes some database records
Amir.M
I have customized the user in a new app that I made, but I get this error, I have added it to the installed apps. Apps aren't loaded yet.
Charly
can we write test for django models with selenium? a test that login into admin panel and makes some database records
Thats a bad idea. Django admin is an app already made and tested. You should do unit testing for your models instead
Genius
Django How to install SSL certificate (HTTPS) on windows 11
Vishnu
Django How to install SSL certificate (HTTPS) on windows 11
https://youtu.be/RkI3BJVxSgo?si=BIuA9euSWazIJRVx
Vishnu
Django How to install SSL certificate (HTTPS) on windows 11
Are you trying to make the project https with self signed certificate? If yes, please refer the above video. Else, if you already purchased some ssl certificate from GoDaddy or from any other certification authority, please import the certificate with a private key to certificates. Then bind the port 443 and select that imported certificate as ssl certificate.
Doragonsureiyā
X_ShaygaN_D
Django How to install SSL certificate (HTTPS) on windows 11
This looks like it was meant to be wrotten in a google prompt
Areeb
Do we have to make migration for the project downloaded from internet? Or simply execute it?
Oxymoron
Can anyone tell which topics we have to cover for beginner
Charly
Can anyone tell which topics we have to cover for beginner
Everything that you can see on the official tutorial at least
Marlone
Hey here, can anyone show me how to send a confirmation message to the user's email or lead me on a tutorial with Django?
Captain
Captain
Create a URL for Confirming Email
Captain
Handle Email Confirmation Logic
Amir.M
Hello, I transferred a project, its codes in another system, how should I transfer the database, which was postgre?
Mojtaba
What's best practice to access verbose_name's model fields attribute in order to serialize it?
new
In my project where I am using django template language and javascript while writing code for keeping scrollbar always bottom it doesn't working because code for scrollbar keeping bottom execute before data rendering on page, what is solution for it?
ȺʍìɾⱮօհąʍʍąժ
amira
can i add a button in the admin panel that takes me to an other page ?
amira
how can i do it without the html files of admin panel ..
.
how can i do it without the html files of admin panel ..
You can search more about overriding admin templates https://docs.djangoproject.com/en/5.0/ref/contrib/admin/#overriding-admin-templates