Azamat
where can i find django guides
Azamat
good
Anonymous
Any one with 1+ years of experience looking for job ping me
Sri
hello, I developed a django website ,can anyone suggest me best resource to learn howto deploy it on Linux server
Anonymous
*URGENT : * Pipenv install package-name will update other package too, but i don't want to update him other packages and i also didn't want to verify specific version in Pipfile. What are the other solutions or suggestions you have ?
Vitaliy
There are just two options: you use the latest versions of every package or you use the spesific versions of each package. It doesn't work the way you want, as to have a specific old version of one package and the latest version of another one which is incompatible with the previous.
Anonymous
There are just two options: you use the latest versions of every package or you use the spesific versions of each package. It doesn't work the way you want, as to have a specific old version of one package and the latest version of another one which is incompatible with the previous.
Thanks but the problem arises when you are working in big project and you want to install some package but that'll update the other package where you have no idea that this update will work for the module or not.
Anonymous
Try poetry
Is this correct ref : https://python-poetry.org/
Anonymous
Yes
Thanks
Anonymous
Is this correct ref : https://python-poetry.org/
Thanks for the suggestions but i need to fix this with Pipenv
Beka
hello, I developed a django website ,can anyone suggest me best resource to learn howto deploy it on Linux server
You could try DigitalOcean. Their server is Linux based. Go for it. There are a lot tutorials provided by DigitalOcean itself.
Anonymous
How to make history for a model that show me the old and new changed value in a field? I think to make history model to each model which have the same fields and when the user create or update the data from the first model go the second model too.
Anonymous
Please anyone help me out.
Anonymous
Last 15 days I am trying this concept.
Anonymous
Still I am not getting solutions.
Aneesh
Is there anyone used on_snapshot method . Firebase+django
Aneesh
Please help
Vitaliy
How to make history for a model that show me the old and new changed value in a field? I think to make history model to each model which have the same fields and when the user create or update the data from the first model go the second model too.
One of the approaches is to have second field in the same model to store the previous value if you need just one old value, or you may create another model, as you have done, and put there a foreign key to the main model and a timestamp field, so you can store the full history of changes. To make it simpler, you may create basic class with model fields (inherited from "object") and then use multiple inheritance from it and models.Model to create the real model class. Then, in the history model you'll just need to add 2 fields I've talked about, and when you want to add or change fields, you just edit the base class, and all changes will automatically go into both models. It depends on your real needs.
Vitaliy
Also, be sure to create a history model instance only for updating the main model, but not for its initial save after creation.
Subhajit
Hey guys I am getting an error whenever I am updating the data from a modal into db I am getting , django. db. utils.IntegrityError: (1364, "Field 'manager_slug' doesn't have a default value") ... I don't have this manager_slug field any where in my project
Subhajit
Also I am application from 1.11 to 2.2 lts
Subhajit
*upgrading
Anonymous
I send you my structure
Anonymous
Model
Anonymous
Oh sorry I can't send media files
Meba
Hey guys I am getting an error whenever I am updating the data from a modal into db I am getting , django. db. utils.IntegrityError: (1364, "Field 'manager_slug' doesn't have a default value") ... I don't have this manager_slug field any where in my project
How to resolve django.db.utils.IntegrityError: (1364, "Field 'name' doesn't have a default value") - Stack Overflow https://stackoverflow.com/questions/54149866/how-to-resolve-django-db-utils-integrityerror-1364-field-name-doesnt-have
Subhajit
I already did that
Subhajit
It is not happening
R.U.S.H.A.B.H
Then try adding all the fields from views.py
Subhajit
Okay
Subhajit
In my application I searched for this keyword manager_slug it is not there any where
Subhajit
Should I delete reversion and give it a try
Aman
Hello....I have been stuck from morning how to solve module not find error
Aneesh
How to sync firebase with postgres
Aneesh
I think you need to install lower version of that module
Aman
How do I do that
Aman
Can you please tell me ??
Aneesh
Error in which module
Vitaliy
Should I delete reversion and give it a try
I guess you already have data in that table and now you're trying to add django-reversion which adds own fields to your model, and those fields neither have default value nor can be NULLed. That cause the integrity error, because there's no proper value for these new fields which could be written into the table for existing data.
Aman
Views
This is import error
Aneesh
Ohh sory
Aman
And another is in urls error
Sai
While executing my program i am getting error "from rest_framework import JSONResponse". I am getting the error as rest_framework module not found error Please tell me why I am getting this error
Vitaliy
Have you added it into APPLICATIONS in settings.py of your project?
Subhajit
It's is working
Sai
Have you added it into APPLICATIONS in settings.py of your project?
While added that I am getting bootstrap error some lot of errors are occuring
Vitaliy
What kind of errors?
Vitaliy
What version of Python are you using?
Sai
I will message personally the media file
Vitaliy
It's is working
Then after adding reversion and creating migration, edit it manually to set default value to empty string. Then migrate and after that manually edit your table in the database to remove the default value. Thus you'll have proper table structure and working application. But remember that already stored data will have incorrect values in new fields. Edit them somehow.
Vitaliy
Latest one 3.8
With which version of pip have you installed DRF? Are you sure it was pip3 and not simply pip (which refers to Python 2.x)?
Vitaliy
Pip3 version 20.x
Is rest_framework the first registered application in settings.py? Isn't there any typo, like missed comma or underscore? Sorry for my errors, English is not my native language and I did not have any practice for rather long time.
Anonymous
Guys I can't use swagger ui in Django 3 for api ui :/ did you have any problems?
محمد دلشاد
That's ok sir but i have given comma all the things I had done perfectly but I am getting error sir
it should be wriiten as INSTALLED_APPS = [ ..... , 'rest_framework', ]
محمد دلشاد
Yeah I had done that
what exactly the error is send the error in detail and related codes too use hastebin
محمد دلشاد
ohh man thats an easy solve
محمد دلشاد
rest framework is not installed on either your m/c or in ur virtual env
محمد دلشاد
try reinstalling