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
I don't want to start seeing things like "not supported" on my projects.
Majid
Believe
Do this
Jihadur
help
Ghazal
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
Hello, the issue lies with the template. Please check to see if the template path is correct or not.
Jihadur
thank you
Anonymous
Anyone have project in which custome Admin panel
Believe
Anonymous
Use django jazzmin
No I don't want to use any package.
I want Admin panel app.
Like other django app.
Believe
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
Moni
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
ABHIRAM
Charly
Charly
_
Maxim
_
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?
Bekzod
𝑀𝓇. 𝐿𝑒𝓋𝒾𝒶𝓉𝒽𝒶𝓃
Captain
Marlone
Hello I am new,
How can I send an email I have tried several ways but I can't
𝑀𝓇. 𝐿𝑒𝓋𝒾𝒶𝓉𝒽𝒶𝓃
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.
𝑀𝓇. 𝐿𝑒𝓋𝒾𝒶𝓉𝒽𝒶𝓃
𝑀𝓇. 𝐿𝑒𝓋𝒾𝒶𝓉𝒽𝒶𝓃
Captain
Why?
Lots of documents is available & it works faster with Django
Also it is easy to use there
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
Qwerty
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.
Genius
Django How to install SSL certificate (HTTPS) on windows 11
Vishnu
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ā
Areeb
Do we have to make migration for the project downloaded from internet? Or simply execute it?
.
Areeb
Oxymoron
Can anyone tell which topics we have to cover for beginner
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?
Luis
ȺʍìɾⱮօհąʍʍąժ
ȺʍìɾⱮօհąʍʍąժ
amira
can i add a button in the admin panel that takes me to an other page ?
Doragonsureiyā
amira
how can i do it without the html files of admin panel ..