Alex
In line 5, error: Class Post has no objects
I guess it is just a warning. Dont think it is the reason.
Shubham
Ok
Rohan
PV
Do you used for loop in your template
Rohan
You have to add pylint-django extension
Rohan
And it's not an error
Shubham
Ok
Shubham
I have git installed on my pc. Windows.
PV
Create a repo on GitHub and clone it
Alex
I have git installed on my pc. Windows.
Have not worked with windows for ages. I think that git is installed in form of gitshell or smt like that.
Alex
Create a repo on GitHub and clone it
Yes, I think that will be easier
PV
You can right click anywhere on your file browser and select open bash here and apply clone code Some thing like git clone https://github.com/yourname/project.git
Doragonsureiyā
use official django docs
https://docs.python.org/3/
PV
Then copy .git folder and paste it inside your project root folder, open git bash as before And push
Shubham
its ok
Ya after that what to do?
Shubham
?
Alex
I just need 2 mins of ur time
btw, you got your first lesson why it is so hard to give an assessment of how much time will take a programming task.
Alex
Ya after that what to do?
https://t.me/django/73090
Alex
Where is .git folder?
where you cloned the repo. In that folder
Shubham
In that folder itself
Shubham
Folder named blogapplication got created
Rohan
Any solution using ORM?
I don't understand the situation you've got
.
I don't understand the situation you've got
My problem is similar to this question: https://stackoverflow.com/questions/30816763/postgresql-integer-array-value-join-to-integer-in-other-table-with-desc-string please look
Rohan
??
Have you tried anything yet?
Rohan
I can think of using subquery in annotate
Ghorz
Folder named blogapplication got created
Please take some time off to Master, files and folder navigation, git and github, file creation, instinct improvement and basic computer usage. Next learn to try things before asking. In fact, try until you have no more options then you can ask for help. Thats the best way to learn.
Deep Narayan
How to upload multiple files in one go in DJANGO?
https://telegra.ph/How-to-upload-multiple-images-or-files-to-database-through-django-model-form-submission-02-03
Day
I used the django password rest views, in the custom user it has the problem of "cannot resolve keyword is_active into field. Choices are: active,admin, email,...",I tried using is_active in my models but it couldn't work,, so how to I go about this?
Shubham
Hello guys, I want to check the View's response , and their method respose on python shell, how I can achieve that once its imported
Shubham
?
Alex
?
Well, I would advice you to open for your self ipdb
Alex
https://pypi.org/project/ipdb/
Alex
simply put the snippet import ipdb; ipdb.set_trace() in a place you want to inspect.
Shubham
okay
Alex
yes, you can share your code
Shubham
sure
Alex
use pastebin pls
Shubham
https://dpaste.org/Yj8f
Shubham
as you can see its a wriiten code, in which I m expecting to see the response given by the methods of the call
Shubham
*class
Alex
6 print(queryset)
Alex
dont do it
Alex
you evaluate the queryset at time when the module is imported. Querysets are lazy objects.
Shubham
okay
Shubham
Alex import ipdb; ipdb.set_trace() works if you know the code, the code that I have , im not aware of it and want to call the methods to check its response
Alex
Alex import ipdb; ipdb.set_trace() works if you know the code, the code that I have , im not aware of it and want to call the methods to check its response
Please, read ipdb's and pdb's docs. It DOES allow to inspect the code that is not directly in your editor.
Ansab
Ajax file upload using django????
Doragonsureiyā
Ajax file upload using django????
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. Include details such as libraries, platforms, modules, etc.
Damron
Hi, fellas! How to DRF 'ModelSerializer' take all constraints of each field from the Model Or I need to indicate this manually (Either specify via creating new appropriate fields and putting constraints into or just using validate_fieldname)? Or maybe it will be better to validate fields before saving the using methods in Model?
Alex
Hi, fellas! How to DRF 'ModelSerializer' take all constraints of each field from the Model Or I need to indicate this manually (Either specify via creating new appropriate fields and putting constraints into or just using validate_fieldname)? Or maybe it will be better to validate fields before saving the using methods in Model?
If you didn't redefine a model's field in a serializer, but simply mentioned it in the serializer's Meta.fields, then yes - the serializer will pull the constraints and other from the model field. Otherwise you will have to completely describe a serializer field by your self.
Hassan
can anyone tell i have machine learning trained model i have converted it into pickle file and i stored it in static files how can i use predictions of that model in django?
m0nte cr1st0
Hello. Can you help me with django-channels? https://stackoverflow.com/questions/60036124/socket-gaierror-errno-2-name-or-service-not-known-when-i-run-unittest-in-dja
Kartik
Hey. Some questions. Is wsgi.py used at all in development?
Kartik
And same is manage.py used at all in production.
Kartik
So according to my little understanding in development manage.py is used. And in production env wsgi is used.
Kartik
What I am going to do is set DJANGO_SETTINGS_MODULE to run my production settings in wsgi. And set it to run DEVELOPMENT settings in manage.py
AnomaLee
Hey there , help me i can't install pillow ..when i try to install it says "could not find a version that satisfies the requirement pillow-5.4.1-py3.7-win-amd64.egg (from version: ) No matching distribution found for pillow-5.4.1-py3.7-win-amd64.egg"
AnomaLee
What can i do for this is there any alternativr option other than pillow to work with imagefield??
Alex
Yea
On windows?
AnomaLee
Yea on win 10
Ярик
hey, guys i have a question i have 2 models: Model1: f1 = charfield f2 = datefield Model2: f3 = foreignkey(Model1) f4 = charfield f5 = positiveintegerfield model2 adds like an inline in admin i have to render it like that: {% items in model1 %} {% for items in model2 where f3 == f1 %} {% endfor%} {% endfor %}
Ярик
i know the syntax is wrong, i just wanted to tell the logic
SuperN00b