Bibhuti
But be sure about version of python.
Bibhuti
Its mostly python3 in Linux bash cause people there are chad
Mukhil
How can host django project in my ubuntu home pc
Can you share any link...
The Inspired
Charly
Mukhil
Currently my project hosted on python anywhere...but now I plan to move on my pc
https://notemake.pythonanywhere.com/home
cj
IZUKU
Dhananjoy
Vitalik
Hi all, i have a question:)
I pulled the latest version of the master branch (which is currently running in production) and downloaded a fresh dump of the production base. I restored the database, launched it locally - I get a message that I have 10 unapplied migrations.
At the same time, CI / CD is configured in the project, all migrations during the deployment process are applied automatically.
Where could non-applied migrations come from? I can only explain this by the fact that someone edited the table with migrations on the prod, but there may be other versions?
P.S. If I try to apply the migrations locally, then the InconsistentMigrationHistory error comes out (one of the migrations was applied earlier than the one on which it depends), but this is the next problem for me (although it is obviously related to the first one)
abhishek
Hi i have doubt like in pytest how we can test the image field
Andrew
Hi How I can make the web apps work with performance ???
Really appreciate any help
cj
cj
abhishek
Ok thank you
20BCS3401_Vikram_Sharma
I am trying to change users password in django, what i am trying to do is take newpassword as input and set it to user if OTP matches
My way
user.set_password(newpassword)
user.save()
But it's not working 😞 someone please help me
20BCS3401_Vikram_Sharma
I checked other stack overflow solutions but none seems to be working the password is not being updated 🥲😞
Morteza
Kashif
Hello Everyone, I am new to Django , So Can Anyone Tell Me Can I make Android Web App Using Django ? or I need to Learn React Native ?
✘ | GAZA |✘{ 🇩🇿 }
Ali
Ali
API Django
You can make the API only using Django
✘ | GAZA |✘{ 🇩🇿 }
dani
Ok someone have informátion about how upload images or pics using django but when it is in deploy
Charly
abhishek
cj
abhishek
Can i share my code which I have tried?
abhishek
https://linkode.org/#Iyx44INJtK4RgDL6Qk9cG1
Siddharth
Can I ask any kind of django related questions here ??
Charly
Jo
It is showing error( table home_departments has nocolumn named name) while saveing details entered in table created in django admin
Rutya
Django field list issued how to finde it
Doragonsureiyā
Full code can be a bit long
Rule 5️⃣: Never post walls of text or screen photos. Use paste bins like https://linkode.org, https://nekobin.com (or your favorite one)
20BCS3401_Vikram_Sharma
I tried encoding it too but still
20BCS3401_Vikram_Sharma
It's just not updating password
EFISCT
Hello everyone i Hope you're great
i want to translate error_messages for AuthenticationForm , every messages are in gettext_lazy function but it doesn't translate
what should i do?
Anonymous
Hello please is there a way to delete Django models after a specific date??
Doragonsureiyā
بلال
Hey,
i want to build a rest api with authentication from firebase and react.
Does anyone has a tutorial or can help me ?
Anonymous
بلال
But hes not using django as rest api
Anonymous
Then what is the need of firebase
بلال
For authentication
Anonymous
Firebase itself acts as a complete Api service... So all the videos will be like that
بلال
Yeah i know and because of that im asking for help 😅
SHEIKH HAFIJUL ALI
Ori
Physical deletion isn't always the best thing, but anyway, you can create a management command that deletes old items and run it from cron
Anonymous
Anonymous
Anonymous
Thanks anyway
Abdullah
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com '
EMAIL_USE_TLS = False
EMAIL_PORT = 587
EMAIL_HOST_USER = 'maill@gmail.com'
EMAIL_HOST_PASSWORD = 'pass'
DEFAULT_FROM_EMAIL = 'mail@gmail.com'
My backend setup looks like this, But I am still getting this error while registering user accounts. And I am using Oscar framework.
Exception Type: gaierror at /accounts/login/
Exception Value: [Errno -2] Name or service not known
Tobi
Hello everyone.
I'm working on a Django E-commerce app.
I've been able to use Ajax to remove item from cart in the database.
But I'm finding it hard to update my cart items list table in template with the new list I get after deleting a specific item from the database without page refresh (AJAX).
Please can anyone guide me on how to do this???
Mahdi
Hello, how can I solve this error? from .forms import CommentForm
ImportError: attempted relative import with no known parent package
Michael
Hello, how can I solve this error? from .forms import CommentForm
ImportError: attempted relative import with no known parent package
This error typically occurs when you try to use a relative import in a module that has no package context. Relative imports are used to import from a module that is in the same package or a subpackage.
To solve this error, you can try one of the following solutions:
Use an absolute import instead of a relative import:
Instead of using a relative import like .forms, use an absolute import by specifying the full path to the module you want to import. For example, if the forms module is in a package called mypackage, you can import it like this:
from mypackage.forms import CommentForm
Mahdi
بلال
how can i provide a middleware that checks if the incoming request from the frontend is signed in with firebase auth
Jo
OperationalError at /admin/home/departments/add/
table home_departments has no column named dep_name
Showing this error while saving table in django admin
V
Suggest any good resource for learning Django
cj
Jo
Nop
cj
Arshiya
Nop
Did you personliezed the User model?
Jo
나다니엘
Django Forms
abraham
<meta property="article:published_time" content="2018-04-04T06:51:02+00:00" />
<meta property="article:modified_time" content="2022-10-28T00:14:46+00:00" />
how to create published_time and Modified time in django?
V
Charly
abraham
how to create a model? format date and time 018-04-04T06:51:02+00:00