Maxim
Dostow
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
R
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
R
Luis
Luis
Let's try to fix this and then share the solution here
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
Kennedy
Kennedy
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
William
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)
);
Doragonsureiyā
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)
);
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like:
- https://dpaste.org
- https://linkode.org
- https://hastebin.com
- https://bin.kv2.dev
If you posted a wall of text, go back and delete it.
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
Doragonsureiyā
Алексей
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?
Mirco
Madhav
Hi
Can we create bulk user accounts in django by uploading CSV file of user details
Mirco
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 ?
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)})
Mirco
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"]
Mirco
Anders (izzno / gooood) 🇳🇴
Mirco
Anders (izzno / gooood) 🇳🇴
Can i override the clean method for one field ?
Mirco
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
Mirco
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?
Anshu
Sea Dragon
Hello , anyone using django with mongodb,
how to use mysql and monodb in django like multi db routing
cr
serg
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
Clear enough, you are not passing the required arguments to that pattern
Vahe
Mohamad Reza