Ghorz
Golang influencer
Every programming language has either stole or stolen from. But walrus is in pascal
Ghorz
I had issues installing several pip packages in 3.8. Since most pypi lib has no support for it yet.
Ghorz
Often halts at compilation
Сергей
I have trouble with paginate_queryset, with this fucntion I havent recieve one result, does any body have this problem?
Anonymous
Hi Greetings to all. Can you ask specific questions about a problem here?
Anonymous
Can I* sorry
Денис
We just answer or not
Денис
object.id = new_id object.save()
Nikhil
object.id = new_id object.save()
In pycharm album.Object.all() is showing that object is not defined
Fedor
Hey everyone. I faced a problem, that somebody created bots, which connect to my production server and do illegal actions (we have bonus system and they boost points in this system). We have captcha on login, but, unlikely, it does not work for them. So can anyone tell what to do and how to be save?
Nikhil
Okk I have made a search on google and I found somewhere in stackoverflow that full functionality of html and django only comes in professional version and I have ordered professional version(as it is free for student)
Fedor
How do you know those are bots?
Because I have checked user actions and found there some users which processed 10 actions 2 different parts of site in a very short period of time. And it does it periodically.
Anonymous
Limit of what?
Limit of processing actions. Basically preventing users from performing that function trigger within a time limit
Anonymous
Are you talking about throttles?
I'm talking about limiting a user from clicking a button 10x within a second
Fedor
I'm talking about limiting a user from clicking a button 10x within a second
It’s not a button, they do requests without acessing to the frontend application.
Anonymous
It’s not a button, they do requests without acessing to the frontend application.
Either way, whether it be clicking a button or accessing a page, it triggers functions(). You can rate limit that the particular logged in user's session can trigger that function 10x within a second or something
Anonymous
Yeah, it could be a solution, but bots are still able to send request with periods longer than this limit and would get points.
The point I'm making is to prevent bots from gaming your system by rate limiting them and if the bots persists, ban that user account.
Anonymous
Or suspend it. Up to you
Fedor
The point I'm making is to prevent bots from gaming your system by rate limiting them and if the bots persists, ban that user account.
Oh yeah, I undersand. Thank you, this is actually an option. With this method we really can collect all malicous users and ban them.
Anonymous
Pavel
Hi everyone! I can't understand how to fill Players using loops in a template through Teams by columns instead of by rows (what I have now). You can look at the schematic screenshot (what I need and what I have): https://i.stack.imgur.com/WFvWo.png Does anyone have any ideas how it is better to solve this thing? views.py, models.py, template: https://dpaste.de/Edr6
Remy
Is there any front-end confirmed ppl here? Or ppl with experience in project management? When you have a whole build system using gulp / webpack / sass preprocessing, js preprocessing, all of this working perfectly in a frontend-only repo. There is a frontend guy working on this with all the tools and more. And gulp outputs a compiled/optimized version of the project. As a backend engineer you want to integrate it into a Django project. Alright no problems you can do that. But now, the frontend guy updates the project again, and now you have to look at each commit what changed in order to update the Django project to reflect the changes. Do you have any solution from your experience, to this kind of situation?
inchidi
3nglish only please
Andrey
3nglish only please
i need help installing django autocomplete in my project. I work with documentation, but sometimes I can’t understand what exactly and where exactly to enter. For example, it shows how the model is changing. But at the same time it is not clear whether the main one is changing, or inheriting from it. Could you tell me?
Aswath
Hi... I need some help distinguishing when to use onetomanyfield and foreignkey in django
Aswath
Let us consider there are two models defined. They are : toDoList and Items respectively.... Instead of setting the foreignkey of items to toDoList model , can i use onetomanyfield to represent items of a todolist interchangably ?
Mirco
Okay...
because it's not strictly related to django it's a db theory stuff
Aswath
??
Mirco
Your list can have one or many items right ?
Mirco
so you have ansewered yourself
Mirco
Item has foreign key to the list
Yash
from ..accounts.validators import clean_date ValueError: attempted relative import beyond top-level package
Mirco
use just one . or specify the main package
Yash
i have validators in other app so it cant show in pycharm means accounts is another app and i want to use that validators in my dashboard app
Aswath
Item has foreign key to the list
Why can list have items as onetomanyfield ????
Aswath
Can't*
Mirco
you mean why List model does not have FK to Item ?
Aswath
No...
Aswath
you mean why List model does not have FK to Item ?
I mean why cant the list have a onetomanyfield attribute and point to the item model.... Instead of the item model having the list as a foreign key
Mirco
I mean why cant the list have a onetomanyfield attribute and point to the item model.... Instead of the item model having the list as a foreign key
that's why u need to study databases it's a best practice to have the foreign key into the model that can be more than one
Aswath
netCode
#ASk : he all...i wanna ask about cors in django api and vue...i already put 'CORS_ORIGIN_ALLOW_ALL = True', when i run the system..i get error like this "has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource."...how i can fix it..thanks in advance
Ram
Hi folks. I understand the concept ORM. But I don’t get proper difference of serialisation & models in Django.
Ram
Can someone help me understand that
Yash
i have two diffrent model in two diffrent apps where i have one same object *skills* with multi select filed option and now i want show user only that post where having more then two common skills so how to make it
Ram
Ok I’ve a question here. ORM is needed only if we create a new DB ? I have a Postgres already in place. Can’t I use models ?
Ram
Do I need models for that?
Ram
I understand we need to configure the backend in settings.py file. But for an existing DB, do I need to create models as well?
Aamin
It holds your table definition, so the Django orm creates correct queries checking all the conditions from your models.py file.
Aamin
For an example: I'm using Oracle as a backend, Due to data volumes we wanted the tables to be partitioned but Django 1.11 doesn't support that for oracle, So we created the tables using sql, but models.py file was created which holds the constraints, relationship and other useful metadata.
Anonymous
How can we log orm into log file with debug =false
Anonymous
Can some one help me
Aamin
You can use Django migrate to create the tables as well........ No need of pgadmin.....as long as you have the proper privileges
Aamin
How can we log orm into log file with debug =false
you have to create LOGGING variable in your settings.py file try Django docs. You'll find everything there.
Aamin
Hi folks. I understand the concept ORM. But I don’t get proper difference of serialisation & models in Django.
Serialization is to convert to the queryset data in a consumable format depending upon requirement it can be xml or json. Models hold the metadata about your tables which is needed to create sql queries which are sent to the DB for execution, when the result or data is returned from the query for consumption of that output serialization is used.
Anonymous
how to set .env file?