Maxim
why tho i explained it in the page
i'm not going to explain more, just take my word for it
Alik
can you help. i just said above that i was getting an error 404 Page not found
Alik
just found the answer. i havent added localemiddleware setting in settings.py file
Nikolai
Hi please give me a hint There is a Django project in which an application with models. Entities are added manually according to business logic. And there is an external API, through which we get similar entities, but they need to save their external id. Question: how to implement this with django models so that the tables do not contain redundant data (were decomposed)? The question is how to add a model of a new entity to the Django application (inheriting from the original model?), so that the new entity refers to the main one, but has additional fields and manipulate it using the Django orm
rtg
Hi! Has any do a user register with gmail or sendgrid (register confirmation and recovery password using email)?
rtg
Can I see code?
Bazaroph
Hi please how to do soft delete with django? I am a beginner. I try to use django-softdelete-it package but I get an error.
Bobosher
Hi please how to do soft delete with django? I am a beginner. I try to use django-softdelete-it package but I get an error.
Hello, you may write a base class for all your models that uses soft deletion. Add deleted_at (or something similar) field to this model and override delete() method. Instead of actually deleting the model object in the database, just change the deleted_at field.
Sunken
Hi everyone I have a question about response message in django rest api How can I customise them?
Sunken
Hi everyone I have a question about response message in django rest api How can I customise them?
For example I want to respond "be careful" instead of "the password is too common"
ShuvamTheBeast
Actually my frontend is flutter
ShuvamTheBeast
Will it work with that?
Javlon
Is it possible to upload a zip file in the admin panel and uzip it and create objects for each file in that zip folder?
Anshu
Thnx I'll see
Yes, configure websocket with flutter and listen to messages from server
tech-tycoon
How can I use. My username as a primary key in foreign key reference of another table
Saw
Hello I would like to ask for help to implement an api using an ontology to control the vocabulary of requests sent by the user before execution. So if you have any links or pieces of code I'm interested in. Thank you
Prabhakaran
Prabhakaran
Is it possible to upload a zip file in the admin panel and uzip it and create objects for each file in that zip folder?
If u can write a python script to do the same action.. yes you can .. get the file reference of the upload and after upload call the function from python script and execute it..
Prabhakaran
ngdream
Hello How to check if file is a video With the content I don't want to use mimettpe or python-magic because python-magic isn't compatible with heroku
ngdream
Thank for your help
rtg
Import user object and set as foreign key in models.py
I use sendgrid, i have never user Googel Auth SSO.
rtg
This return a "Invalid Header Found". why?
rtg
https://pastebin.com/sN1ZhgtM
rtg
thanks!!
Ario
Anyone has experience working with mongodb using djongo in django ?
Doragonsureiyā
Anyone has experience working with mongodb using djongo in django ?
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
Maxim
OK bro , keep calm 😂😂
this is a recommendation, because no one will answer your meta question
ngdream
Pleaze who know how to install python-magic-bin on heroku server
ngdream
I try this but i got this error : Couldn't find a version that satisfies the requirements python-magic-bin(from versions: none)
anonymous
how to add settings.py to .gitignore
anonymous
my settings.py file path config/settings.py
rtg
Does anyone have a code for user registration with email confirmation? Thanks!
Maxim
how to add settings.py to .gitignore
just add new line config/settings.py to file .gitignore without indents
Maxim
don't work😐
where is your .gitignore located ?
anonymous
next to the config folder
Maxim
next to the config folder
same location as the .git folder ?
anonymous
yes
Maxim
don't work😐
what does it mean "don't work😐" ?
anonymous
does not add the settings.py file to gitignore
rtg
?
Doragonsureiyā
?
Read this please: http://catb.org/~esr/faqs/smart-questions.html#intro
Dot enum
ValueError: time data '2022-01-31' does not match format '%y-%m-%d'
Anonymous
I have like or comment model so how to use generic forigenkey relationship between the to models ?
Dot enum
ModuleNotFoundError: No module named 'communication/urls'
Dot enum
ModuleNotFoundError: No module named 'communication/urls'
I mentioned this app in settings.py too. Now I don't understand why this is coming
(⌐■-■)
Did u include the URLs path for communication in main URLs.py
Dot enum
from django.contrib import admin from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), path('',include('communication/urls.py')) ]
(⌐■-■)
Try communication.urls
Dot enum
This my main files urls file
Dot enum
It accepts string only
Dot enum
Or it will show communication not defined
(⌐■-■)
from django.contrib import admin from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), path('',include("communication.urls")) ]
(⌐■-■)
And do check... If the name of the file is url or urls..
Dot enum
urls
Dot enum
from django.contrib import admin from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), path('',include("communication/urls")) ]
Dot enum
Same error
Dot enum
Yea thanks 😊. It's resolved
(⌐■-■)
I'm working on an online ide tool. Can someone suggest some ideas to make it more expansive?
Pablo
Good evening guys. I am working on a to do list project and I want the website to send an email notification of the number uncompleted tasks every 24 hours. I have written the code that sends the email but I am confused as to how I will make the program run from the website without messing with other things
Doragonsureiyā
I'm working on an online ide tool. Can someone suggest some ideas to make it more expansive?
This is not a Python specific question, please delete your offtopic message, move to @PythonOfftopic and ask there.