Ghorz
Golang influencer
Every programming language has either stole or stolen from.
But walrus is in pascal
Mirco
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
Mirco
Сергей
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()
Anonymous
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?
Maksim
Денис
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)
Anonymous
Anonymous
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
Fedor
Anonymous
Limit of what?
Limit of processing actions. Basically preventing users from performing that function trigger within a time limit
Fedor
Fedor
Anonymous
Or suspend it. Up to you
Fedor
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
Nikhil
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
Mirco
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 ?
Aswath
Mirco
Okay...
because it's not strictly related to django
it's a db theory stuff
Aswath
Aswath
Aswath
??
Mirco
Your list can have one or many items right ?
Aswath
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
Yash
Mirco
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
Can't*
Mirco
you mean why List model does not have FK to Item ?
Aswath
No...
Mirco
Aswath
Anonymous
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
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
Anonymous
how to set .env file?