Михаил
What should I edit?
Михаил
Which attributes|properties?
Михаил
The user already has set of permissions
Михаил
Isn't it enough?
Dave
User permissions
Dave
ah okay
Dave
yea it should be enough
Dave
if you have set the right one
Михаил
I'd like to edit groups with this user. The user has all the perms available for Group
Михаил
Emm
Михаил
Not
Михаил
I didn't set view_group
Михаил
I'm using django-guardian
Михаил
Didn't work
Михаил
Maybe I should override queryset
Maksim
guys, how can i create a model with just id column?
class ModelWithIdOnly(models.Model): pass
Leonardo
class ModelWithIdOnly(models.Model): pass
exaclty what i did haha, thx
Leonardo
guys, i have this object { "article_id": 1, "quantity": 6 }
Leonardo
i need to do a get article by id, take the price, and multiply by qty
Leonardo
and then return total amount
Leonardo
i do this get and sum at serializers?
Leonardo
whats the best practice?
Leonardo
lol
Anonymous
hi, can anyone tell me why i am getting ' error : command : 'x86_64-linux-gnc-gcc' failed with exit status 1 ' while trying pip install mysqlclient in aws ubuntu..
Anonymous
need system libraries. Google it to find what
okay, let me google it once more..
Naruto
https://codingninjas.in/events/winter-of-codes?campaign=winterofcodes&source=ca590
Anonymous
How to build the project structure correctly
Anonymous
hi how to use with local database?(already created and have any tables with some records) do i have writing something in models.py ? is it possiable without above text?
Anonymous
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?
Mihail
Do you have Django installed? or maybe activate the enviroment where you have the Django installed
Anonymous
Django is set. did activation
Anonymous
I am trying to save changes to the database
Anonymous
I use the command makemigrations
Mihail
then check you PYTHONPATH maybe it try to serach the module in the wrong dir
Anonymous
without using virtualenv everything turns out without errors, but with virtualenv the error crashes. why is that so?
Anonymous
probably a mistake in virtualenv
Ravid
is there books for djano ?
Anonymous
Why do you need books for django? The documentation and like 5 gazillion youtube videos not good enough?
Jimmies San
is there books for djano ?
two scoops of django
Orack
two scoops of django
chocolate flavour ?
Jimmies San
it's a book, very good book
Marco
i do this get and sum at serializers?
Are you using DRF? @sleonardoaugusto
Marco
guys, i have this object { "article_id": 1, "quantity": 6 }
You could define a property method inside your model, and then use it as an attribute
es.py
What should happend when : - am logged in but not the owner - am logged in but owner?
Anonymous
ı need a web translate tutorial anyone share wtih me ?
Leonardo
Egor
Hello. Please tell me, what is the best way to load source data (via Django desializer) using migrations that take into account the historical model? Is there any other way besides this https://stackoverflow.com/questions/25960850/loading-initial-data-with-django-1-7-and-data-migrations
Marco
i can use this defined property in another model too?
Yes, you can use it as a field of the model
Marco
https://www.stavros.io/posts/how-replace-django-model-field-property/
Anonymous
Stackoverflow knows it well (click)
This is about using multiple databases I have a database on my computer and want to use it
Leonardo
Yes, you can use it as a field of the model
i need do that https://pastebin.com/wC0juKRy
Leonardo
look at the total_amount function
Денис
This is about using multiple databases I have a database on my computer and want to use it
No, it's about connecting to an existing database and creating models for it
Harsh
Hi guys can I use pycharm to migrate tables without instead of the console
Harsh
Can you tell me how
Harsh
Is there option
cj
Is there option
you have to configure it... do you know how to use PyCharm? or are you using it just and only to write code (as a simple text editor)?
cj
an also, your question is not about Django itself, it's about how to use an IDE, so please move to @PythonOfftopic
Harsh
I am currently using it just for code. But want to go more in deep and use interactive functions of pycharm
Anonymous
Anyone tried mongodb in Django?
Anonymous
With mongoose
That’s for node, right??
Modou-dev
That’s for node, right??
For the connection with the database
Modou-dev
Or you can use djongo also 😊
Anonymous
Modou-dev
Do you have a result ?
Anonymous
No
Anonymous
Migration error in case of I’d
Anonymous
id*
Anonymous
why can't I post pictures in a group? it's a pity :(