Prabhakaran
And u can assign users to the profile..
Prabhakaran
And make users a unique field
Vishal
Hey. I put a follow-up question on SO (stack overflow).
Hey there. Updated the question with details. PTAL.
LB (Ben)
Hey there. Updated the question with details. PTAL.
Ok. Saving code seems to be ok. The last create object does not call save but that doesn't seem to be the problem. I added another comment - the URLs code may offer some insights
NEERAJ
Hii
NEERAJ
Django simple projects
Vishal
Ok. Saving code seems to be ok. The last create object does not call save but that doesn't seem to be the problem. I added another comment - the URLs code may offer some insights
Done. I am working on Django for last 2 years. This is first time I'm encountering this problem. Should I try downgrading Django version ? I'm on Django latest right now.
Vishal
Ok. Saving code seems to be ok. The last create object does not call save but that doesn't seem to be the problem. I added another comment - the URLs code may offer some insights
One thing I would like to add is when I'm calling that show_data. The id of each foreign key is different, but the value that I'm rendering is same for all the foreign key. Let me know if you see anything relatable that might cause the problem.
Sergey
Hello everyone! I want to now when I have FileField or ImageField, how to give link to it in https instead of http (DRF)?
Sina
Hi Friends, what do you think about django Channels? Did you trust him for the medium project?
Kaushal
What class should i use for a costum user roles?
Sergey
Do you mean the file path?
link of course contains path, but it's URL
LB (Ben)
One thing I would like to add is when I'm calling that show_data. The id of each foreign key is different, but the value that I'm rendering is same for all the foreign key. Let me know if you see anything relatable that might cause the problem.
Hey. Really not sure on this one, I can't see anything obvious. Hopefully someone smarter than me can help. As for Django version, unless you are on 4.0 (unreleased) I think that would not be the issue. Some tips on debugging - try to start with a fresh bit of code that reproduces the issue in the simplest way. - for example, a form that just accepts a single checkbox and then you update some table then redirect - slowly add functionality until it stops working. - or go in the reverse, slowly remove functionality from.ghe existing code until it works. - I'm sure you know this but not sure what else I can suggest Ideas for investigating - redirection is somehow caching/keeping the request context from the previous listing - maybe when you are 'opening' the CSV that is creating some Async or memory issue. - have you tried using with when reading the CSV
William
link of course contains path, but it's URL
Do you need URL to see the media file right?
Sergey
yes
Maxim
Greetings! Is there a way to display the whole cli output in web_ui using django and could anyone give me the direction to do that e.g. methods, functions etc.? In details I have the script, which I run from cli. The script asks for user phone and 2fa code it sends to this phone number. So the user have to input phone number and code in cli. I decided to practice in django and make the web ui to start/stop the script and display the script output, but I can't imagine the mechanism to ask the phone and code and give it back to script.
Python
Hi everybody, I need the suggestion for single sign in django rest framework Any tutorials or vedios
Muhammadali
So i ask about it?
Maxim
So i ask about it?
anyway, read this before you ask your question: http://catb.org/~esr/faqs/smart-questions.html#intro
Anonymous
why I do'nt send photo file
Doragonsureiyā
why I do'nt send photo file
Read the rules before any activity: @PythonRules
Anonymous
ok
William
yes
Create an API for serving a media path. Append the file URL to the site base URL.
Sai Kumar
Can anyone help to me... How to take multiple rows value from a single html page.... Like I have db table of attendance And I want to update everyones attendance daily...
Mr Sourav
relation "blog_post" does not exist
Mr Sourav
relation "blog_post" does not exist
please can anyone help me with this error?
Doragonsureiyā
please can anyone help me with this error?
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain: - what you're doing - what you're expecting - what you're using - where you're running the script - what Python version you're using - what packages and their versions you're using - and the most important thing: show the code YOU wrote (read rule 5️⃣ for that) and more details, that way your chances to get help will increase
Mr Sourav
please can anyone help me with this error?
author = models.ForeignKey(User, on_delete=models.CASCADE)
cj
they'll understand the error. don't worry.
no, if you don't explain anything, nobody will understand
Beimnet Bekele
static files are not getting loaded on the templets i have already collected the static files setup admin directory but it is still not working
Mr Sourav
no, if you don't explain anything, nobody will understand
Ok. I have created a custom user model. And trying to make a blog app. I'm using that custom user as author. But I'm getting this error relation "blog_post" does not exist. migration and migrate done. But still this happens.
Mr Sourav
here is the code.
Sai
How I can tune the django WSGI + apache. High requests causes 503 error. Any major improvement if I move to Nginx
Tejas
yes, don't use Apache, use Gunicorn + Nginx
Dude no. Both ways are good. Let's just focus on resolving his issue first instead of showing the multiple ways to deploy.
Tejas
How I can tune the django WSGI + apache. High requests causes 503 error. Any major improvement if I move to Nginx
Brother have you checked the apache logs? If not, go to /var/logs/apache2 and check error log file and paste the last 2 lines here.
Sergey
Create an API for serving a media path. Append the file URL to the site base URL.
It's made automatically in drf isn't it? For me actually only question is how to give Https link instead of http
Trials
Dude no. Both ways are good. Let's just focus on resolving his issue first instead of showing the multiple ways to deploy.
both are good, yes, but using Apache is more painful and more likely to have more issue than using Gunicorn + Nginx
Брат
can not update OrderSerializer
Брат
If someone need another codes, I'll send you
Брат
I just need def update function
kasim
If we host website on aws, what will do for email? In cpanel we getting email freely
kasim
Can I create in ec2?
kasim
#!/bin/sh Inَactive
How can I?
https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-smtp.html
Fan / Ac
class StoreSegments01(models.Model): ... def delete(self, *args, **kwargs): self.segment.delete(save=Fal se) super(StoreSegments01, self).delete(*args, **kwargs) what does save=False and save=True means here
Doragonsureiyā
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.
Arav
How can host a django project stored in my system to python anywhere
Charly
Arav
Thank you
Widso
Hi I have a ready django site that needs to be split into two local subnets. How can I accomplish this?
Widso
im create clone of my site and write new nginx config, but cant get him with second ip adres
@LSR
Where can i host django channel website for free heroku is asking about cridit card
K.Shravya
Hi I have doubt in django project
K.Shravya
I have connected django to SQL server where I have columns named description, sender mail, receiver mail, date
K.Shravya
I want to send the mail to receiver mail from sender mail within the due date
K.Shravya
Kind of scheduled mails concept in django . How to do it any help?
@LSR
Have you tried python anywhere??
No pythonanywhere is not support channels
Alex
form: https://pastebin.com/8N8E37sj
Жоомарт
After deleting a super user, his entries are deleted from the journal, how to make sure that his entries are not deleted?
Ilya
After deleting a super user, his entries are deleted from the journal, how to make sure that his entries are not deleted?
look at your journey model. attribute User. It's seems you have parameter on_delete=models.CASCADE
Johnson
I want to send the mail to receiver mail from sender mail within the due date
You'd have to use Django Celery for scheduled tasks
Y
I have json file in static folder in my django project. And I want to read it by setting a variable in my python project, but django django FileNotFoundError: [Errno 2] No such file or directory
Y
Hi I can see http://127.0.0.1:8000/static/credentials.json json codes in screen but I writed my py file with open credentials.json django gives me FileNotFoundError whyy??
Jhohannes
anyone got materials on how I could with nextjs and django together