Maxim
Yeah, I agree. But we are talking about "creating Payment system in Django" not integrating )
then i agree, i don't think i understand what we're talking about
Hian
hellow anyone kwon if the django has a hook on startup ? like flask hooks
H
How to write function to extract data from models to HTML?
R
Hello I was learning Django and created an app in my project...I have created a urls.py for my app and gave it the path.. I am facing an error page not found 404..and it says the empty path didn't match any of these...can anyone help me out...this is turning real frustrating
Luis
Hello I was learning Django and created an app in my project...I have created a urls.py for my app and gave it the path.. I am facing an error page not found 404..and it says the empty path didn't match any of these...can anyone help me out...this is turning real frustrating
Check the urls.py file inside the project directory. It should include the urls from your app. Also you can use a redirect view to redirect the empty path to you apps main page or any other page.
Luis
I've included
Hmm... can you upload a screenshot of the error page? (Remember to use a image hosting sever)
R
I can't send media in this group
Luis
Can I Dm?
Yes, np!
Luis
Let's try to fix this and then share the solution here
Jerome
Hi, On a new Django website, I can enter the site with http: // DomainName, I cannot enter when entering www.domainname, how can I solve this problem?
If you want your domain with www, you need to enter a CNAME on your host provider starting by www, then you need to redirect (301) your root domain //mydomain to the CNAME www.mydomain
Doragonsureiyā
I can't send media in this group
Can i send you a private message? No. We do not provide one-on-one tutoring, hire someone if you need it. Questions are better answered in public so that everyone can learn.
2X
Hi Anyone who can help me in integration of stripe and paypal subscription on Django. I have knowledge of react and can do it on react side but django side I have no idea of it
Njain
Hello all anyone have django+ mongodb tutorials ???
Kennedy
Hello guys, anyone who has done multiple file uploads in Django Rest Framework to give an idea of how it's achieved.
atkisai
Hello, I want load pagination data with ajax, I look to endless-pagination, but it very old, 9 yers and dont work, please tell me, library us endless
atkisai
I want load without reload my list, 12 item, next scroll 12 item...
atkisai
I load with ajax, and add item with innerHTML, but it bad, becous I dont get django-templates, and I dont know how cook my json data with js
atkisai
this is project without drf, and it so bad
Adhil latheef
Im generating and send an email in my django app...it contain a Android app redirect link(myapp://etc..) in href of <a> tag....but when I open mail in my inbox there is no href attribute in a tag.....(normal urls working...but app urls not working)..
Anonymous
Anyone interested for the profile of react or java or angular can dm me
William
Hello guys, anyone who has done multiple file uploads in Django Rest Framework to give an idea of how it's achieved.
Multiple file uploads in a single API or Multiple files select from UI and upload all the files when submit button was clicked?
William
Multiple files from UI (parsing using formData object)
So you want to create each file instance? Like each file, object should have unique ID.
William
You can do it two ways. 1. Get a list of files and validate if any then create new data with that file. 2. From UI for each file attachment hit an API for each file after submit button was clicked.
Anand
hi everyone am currently building an online system with multi - user type registration and login whereas i have multiple company user and the company has multiple employees , both company and employee can login and register . ex : superuser -> company (is_staff) -> employee Does using proxy model helps me to figure this out or kindly help me with any other method
Anonymous
hii in need multiple columns foreign key in django how can i implement that? here is my postgresql tables: create table group_courses( CID smallint NOT NULL, GCID smallint NOT NULL, SEMESTER_ID smallint NOT NULL, TID integer NOT NULL, PRIMARY KEY (CID, GCID, SEMESTER_ID), FOREIGN KEY (CID) REFERENCES courses(CID), FOREIGN KEY (TID) REFERENCES teacher(TID), FOREIGN KEY (SEMESTER_ID) REFERENCES year_semester(SEMESTER_ID) ); create table student_takes( SID integer, CID smallint, GCID smallint, SEMESTER_ID smallint, st_avg smallint, PRIMARY KEY (SID, CID, GCID, SEMESTER_ID), FOREIGN KEY (SID) REFERENCES student(SID), FOREIGN KEY (CID, GCID, SEMESTER_ID) REFERENCES group_courses (CID, GCID, SEMESTER_ID) );
01101110011010010110001101100101
Hi everyone! Do you have any ideas on how to set a custom favicon on django admin page? Tutorials on the net said to edit html from admin staticfiles but I don’t have any “base.html” in admin staticfiles. Django version 3.2.9
Md.Shahid
Can anyone please help making birds image classification web app
Алексей
In the "Time" panel does not work in the Django Debug Toolbar menu. According to the documentation and the manual, I seem to have configured everything correctly. Maybe someone had such a mistake? how to fix it?
Mohamad Reza
Is there any documentation/video tutorial for otp authentication system using django ? If there is, I'll be appreciate you if you send ❤️
Murali
Hi all
Murali
How to integrate slack button request with django?
Anand
does anyone worked with docker
Anand
i tried to pull and run an image but it failed
Raavi
Will any one know how to do "welcome message " In django?
Madhav
Hi Can we create bulk user accounts in django by uploading CSV file of user details
Madhav
Could you please guide me
Rutherford
I'm trying to save an uploaded file in my media folder, retrieve the file, attach it to an email and send. Then delete the file. It works in the development mood. But when I upload to heroku. The uploaded files aren't saved at all. How can I overcome this? Thanks! I'm using default_storage to save and retrieve the file.
Anders (izzno / gooood) 🇳🇴
Hey guys, long time no see! I have a challenge... I have a model which stores currency in cents. I want the forms to display in $. So i need to convert before form is generated and after from i posted. Is there any way to do this with forms.ModelForm ?
Mirco
Could you please guide me
Do by our own It's a good exercise
Anders (izzno / gooood) 🇳🇴
So i managed (dirty) to do the default value form = AddAuctionForm(instance=auction, initial={'min_price': math.ceil(auction.min_price / 100)})
Anders (izzno / gooood) 🇳🇴
Override it ?
Anders (izzno / gooood) 🇳🇴
This is the initial display of the form, now i need to convert min_price when it's posted...
Anders (izzno / gooood) 🇳🇴
I need to somehow modify the self.cleaned_data["min price"]
Anders (izzno / gooood) 🇳🇴
So i managed (dirty) to do the default value form = AddAuctionForm(instance=auction, initial={'min_price': math.ceil(auction.min_price / 100)})
This is the "edit/update" view. Now i need to manage the post part of it which will return $ and i need to store cents,.
Anders (izzno / gooood) 🇳🇴
Can i override the clean method for one field ?
Mirco
clean_<field>
Mirco
called by Django inside the clean method
Anders (izzno / gooood) 🇳🇴
hah!
Anders (izzno / gooood) 🇳🇴
Your'e tha man! ;)
Anders (izzno / gooood) 🇳🇴
I knew it would be simple with Django ;)
Mirco
Your'e tha man! ;)
😊 happy to help
Anders (izzno / gooood) 🇳🇴
😊 happy to help
Thank you once again!
Doragonsureiyā
Thank you once again!
You're welcome! 😊
Rutherford
I need to store some files temporarily on Heroku so I can retrieve them and send them as an attachment to an email. Afterward I delete it. My file gets uploaded without errors to my media folder and gives me the path /app/media/nextproject_wRLJhoj.txt to the file. However when im retrieving the file after it gets saved I get the error. No such file or directory /app/media/nextproject_wRLJhoj.txt Please help me. I'm running the app on Heroku. Everything works well on localhost.
Vahe
Hey guys, I am trying to integrate elasticsearch in my project, but have some issues, the search is only working for the newly created data(after integration data), all the old data is not indexed and is not appearing in the search. The —rebuild command is not helping(create, populate as well). Any ideas?
Sea Dragon
Hello , anyone using django with mongodb, how to use mysql and monodb in django like multi db routing
Aziz
Hi! I have datetime model field. But it rendered in templates as text. I want to change it to html as type = datetime. There is must be widget attribute. My field's model is handled without forms by .generic views.
Mirco
Hello , anyone using django with mongodb, how to use mysql and monodb in django like multi db routing
Avoid it , it doesn't fit well with Django Use Postgres to unlock superpowers, its JSON fields management can replace your needs of document storage
Mirco
Clear enough, you are not passing the required arguments to that pattern
Mirco
the problem is how to override the User model
it's not a problem, just follow the Django docs about how to do it small steps and u have a custom user