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
Shubham
I have git installed on my pc. Windows.
PV
Create a repo on GitHub and clone it
Alex
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
Ghorz
Ghorz
PV
Then copy .git folder and paste it inside your project root folder, open git bash as before
And push
Ghorz
Shubham
Alex
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.
Shubham
Shubham
In that folder itself
Shubham
Folder named blogapplication got created
.
.
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.
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?
Day
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
Ansab
Ajax file upload using django????
Alex
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.
Shubham
Ansab
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
Alex
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
AnomaLee
Alex
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
Alex