Bibhuti
how can host django project in  local pc  ? Ubuntu os
Its the same as doing it on windows. python manage.py runserver
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...
Charly
How can host django project in my ubuntu home pc Can you share any link...
How do you created that app without reading the documentation?
Mukhil
Currently my project hosted on python anywhere...but now I plan to move on my pc https://notemake.pythonanywhere.com/home
IZUKU
Currently my project hosted on python anywhere...but now I plan to move on my pc https://notemake.pythonanywhere.com/home
Obviously you used some kind of rar file or GitHub to deploy there , get that first Or if u want to steal then you can log in to python anywhere and copy files from there
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
abhishek
using fixtures or mocking it
Do you have any sample codes which is related to this?
cj
Do you have any sample codes which is related to this?
in this StackOverflow thread there are some alternatives... kinda old post but still useful https://stackoverflow.com/questions/26298821/django-testing-model-with-imagefield#26307916
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 🥲😞
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 ?
Ali
API Django
You can make the API only using Django
✘ | GAZA |✘{ 🇩🇿 }
You can make the API only using Django
yeah link with your Android app
dani
Ok someone have informátion about how upload images or pics using django but when it is in deploy
cj
Hey the link which you have sent I have tried that but still getting error and I am getting confused
use MagicMock then, but I'm sure one of those answers on that thread should work
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
Can I ask any kind of django related questions here ??
If they are specifically of django, yes
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ā
Django field list issued how to finde it
To get an answer to your question, it is worth to formulate it more clearly, perhaps add more details, perhaps add explanations.
20BCS3401_Vikram_Sharma
Please provide full code.
Full code can be a bit long
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??
Ori
Hello please is there a way to delete Django models after a specific date??
You can reverse the problem and instead of deleting them, query objects that are not "deleted"
بلال
Hey, i want to build a rest api with authentication from firebase and react. Does anyone has a tutorial or can help me ?
بلال
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 😅
Anonymous
You can reverse the problem and instead of deleting them, query objects that are not "deleted"
Well yeah but let's say I want to create a Todo list and instead of displaying every item in the database, I just want to display uncompleted items. I know filtering it will do but I just think it'd be better to delete them from the database if that'd be possible??
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
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
بلال
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
Doragonsureiyā
Suggest any good resource for learning Django
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Jo
Nop
cj
Nop
yes you did
Arshiya
Nop
Did you personliezed the User model?
나다니엘
Django Forms
cj
Did you personliezed the User model?
that has nothing to do with his issue, he has problems with other model (home.Department)
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?
abraham
how to create a model? format date and time 018-04-04T06:51:02+00:00
Charly
how to create a model? format date and time 018-04-04T06:51:02+00:00
If you don't know how to create models then you need to read the official tutorial of Django then