Tadj Mahal
Try {℅ extends 'base.html' ℅}
I try this in clients.html, but it styles not view.
Maxim
Hello everyone, there is a blog to immediately create an article in the admin panel, click "save" or another function, and it was displayed on the main page instead of armed articles, tell me there is some kind of standard solution in django? A simple yes/no will suffice
Swapnil
While downloading csv file, one column is shifting towards left, what can be the issue?
handgull
Someone can tell me the better approach to cors handling in django? I have seen that there is a whole package for that it's correct?
handgull
You can use thhat package is the easies way
Honestly i dont like that approach but ok🧐
Charly
Charly
It's not the only right way, it is just the easiest
Danish sharma
Can anyone can explain how can we display pre signed url of a file from s3 to html modal using django
Danish sharma
The file can be pdf, csv, excel, image etc and you have to give a preview button at each file
Danish sharma
Querying database and displaying files in html table giving preview button respective to each record
Andrew
Hi, I upload file to Mega ( use mega module ), on local all ok but when I upload my project to hosting I'm getting error "incomplete response received from application". How I can fix it? Code: https://pastebin.com/zmfh9YdD
Kirill
Hi. I need to include parts of temlates from database instead of html-files. How I can do it?
Omar
2 years ago
https://learnbatta.com/course/django/templates/
Omar
https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Home_page
Omar
2 years ago
https://www.youtube.com/watch?v=CLpUSFKrXw0
Kirill
https://learnbatta.com/course/django/templates/
Why do I need these links? There is no answer to my question. I need to store text in the database that contains template filters.
cj
Why do I need these links? There is no answer to my question. I need to store text in the database that contains template filters.
just save them and when you render in your templates, use |safe if you are confident they are safe
.
Why do I need these links? There is no answer to my question. I need to store text in the database that contains template filters.
Here’s an idea I haven’t tried 1. Create a normal html template, put some variable names where you want to load custom html from the database e.g. {{ db_template_1 }} here and {{ db_template_2 }} there 2. In your views, use render function to render those template files and assign them as a context variable e.g. context[“db_template_n”] = render(request, db_file_string) 3. Finally return the rendered normal html with context and add that |safe thingy like cj mentioned
handgull
How can i upgrade django from 3.x to 4.x (for example)
Omar
How can i upgrade django from 3.x to 4.x (for example)
This is no complex thing. Type the same thing in google search box
Mr
Sydul Amin: Is there anyone from Bangladesh? Or can anyone help me to integration Payment gateway in django
Omar
What omissions are you talking about?
1. No static files setup which is a major issue why your static files are not rendered. This setup is done in the base settings.py and urls.py files 2. Duplication of codes in the entire project's html files
Omar
What omissions are you talking about?
Add this to static files section of settings.html file https://pastebin.com/nQztAEzA
Omar
Replace the base urls.py file with this https://pastebin.com/3C8M0bgG
Omar
Replace the base.html file with this https://pastebin.com/H9gSraF4
Omar
Replace productCreate.html file with https://pastebin.com/aEQa6rFc
Omar
Replace clients.html file with https://pastebin.com/m2ppyRZL
Omar
Replace orders.html with https://pastebin.com/ybeBL5KZ
Omar
Add social.html to your html files. https://pastebin.com/Q5jhh9wr
Omar
What omissions are you talking about?
Read more on Django cos no one will be doing your assignment for you next time.
Tadj Mahal
Thx, ty. I read about it, I must to read about connecting HTML, right?
Omar
Just don't worry code more and read more on any subject that you come across in your project. There are tonnes of solutions on the internet. You just need to understand the basics of anything before you can build on it.
Omar
If you're new to Django I suggest you watch Corey Shafer videos https://www.youtube.com/@coreyms
Omar
Specifically on Django https://www.youtube.com/watch?v=UmljXZIypDc&list=PL-osiE80TeTtoQCKZ03TU5fNfx2UY6U4p
Tadj Mahal
Okay, thank you very much!
Erkaboy
hi guys l, I need some advices. I am going to integrate credit card payment to website. How should I do that. Thanks for advices.
Lightbourne
hi guys l, I need some advices. I am going to integrate credit card payment to website. How should I do that. Thanks for advices.
read the documentation of the bank you're going to integrate with, read about best practices and go ahead. it also might be possible to find a third-party library for that bank, you can consider that as well
Erkaboy
read the documentation of the bank you're going to integrate with, read about best practices and go ahead. it also might be possible to find a third-party library for that bank, you can consider that as well
Thanks. I couldn't find the steps. So first I should find bank. And than other steps. Can I use payment gateways like paypal? I have zero idea. So I am wondering how to start.
Hasan
hi how can i give list for filter field instead of single value ( in django_backend_filter)
Максим
Hi everyone, does someone know which type of arguments go into view function, when I use dynamic url in url configuration, i use: path('/geometry/<figure_name>/<width>/<height>/', views.redirection) def redirection(request, figure_name, width, height): situation like this is clear but how does def redirection(request, figure_name, **kwargs): works? The arguments can come as positional and keyword at one time, so how?
handgull
The best free resource to learn django rest framework? I have bought a udemy course but it only speaks about django
Doragonsureiyā
The best free resource to learn django rest framework? I have bought a udemy course but it only speaks about django
Are you looking for Django REST Framework documentation? Here you have it: https://www.django-rest-framework.org/
handgull
I knew that... But it's the best place for you?
Abhi
Can anyone please help how To get the value from server like(red,green,blue) and display text in that color in django
Lightbourne
I knew that... But it's the best place for you?
i guess there's no better documentation for drf. although this resource might help you understand how drf works from the inside https://www.cdrf.co
John
Hello Guys. Please I want to use Django Case When With some queryset and default value. Please someone to help me 9
.
Hello Guys. Please I want to use Django Case When With some queryset and default value. Please someone to help me 9
Please help us by describing more clearly what you’re trying to achieve. Pseudocode would be helpful.
ℭ𝔞𝔱 𝔬𝔣 𝔅𝔞𝔯
Hey, help me, please, have a problem with registering on the website.
ℭ𝔞𝔱 𝔬𝔣 𝔅𝔞𝔯
Dipesh
Hey anyone can help to create poll application having 4 html pages as home, creat, vote and result with 2 models and 2 forms with one base html file - home. Html contains poll question with view and result page link, create page contains form for creating new polls with three options to choose one answer, vote page after rendering the view link from home - questions with options to vote and save vote, result page contains the number of votes for each question with their options
Dipesh
Need to create this app with django plus python
Anonymous
Hey I am a newbie who just started learning django today .. I am following a course on YouTube where the html files that is supposed to be used are prebuilt by the creator.... The creator just using them in the project.... Shall I use my own html css js knowledge to build the same thing and then follow the rest of the course ... Or shall I just use those prebuilt frontend files? .... I am asking this since I doubt if the class and id used in html is required while implementing django as ... My version of the same frontend might use a different class and a different logic so suppose some id is named different in my code then I will not be able to follow what the creator says when he uses his Id or class names? Or is the frontend independent of django?
Jame
is django-rest-framework still being maintained ? Because the last update was : 22nd Sept 2022 ( version 3.14.0 )
Charly
Last commit is from 2 days ago
Jame
Last commit is from 2 days ago
Ahh....I was little worry if that was the final update. Good catch Charly! Thanks
ℭ𝔞𝔱 𝔬𝔣 𝔅𝔞𝔯
Hi explain directly your issue
i make a jango website, I do it on yutuba course, and it came to the registration with which problems began
ℭ𝔞𝔱 𝔬𝔣 𝔅𝔞𝔯
Rutya
How to create city API
Rutya
Plz anyone one tell me all city fetch
Mahkam
Plz anyone one tell me all city fetch
You have to find dataset of cities
Rutya
Yes
👀
Hi everyone! I have a question? Where can you learn Django?