Skip to content

Django project without models and data base

It is possible to build a project in Django without models ? I have a views, templates(html), css and urls. That site is looking very good in a browser. It is a hairdressing salon website. Greetings Answer It is completely possible to create a Django project without any models. You only really need models if …

how to get all members of a guild in discord.py?

So i want to get all members on the discord guild/server printed out in the console but i only get the bot as member. I already activated server member intent on the discord developer portal but it didn’t help. Thanks in advance here is the code i use: Answer The reason you are only getting bot, is beca…

How to change list content after applying a function in Python

I wrote a little program that inserts an element in a list. The program uses a binary search algorithm to find the spot where the new element should be allocated. I’m having trouble to change the original list content. What’s wrong in my code? Answer This builds a new list and assigns it to the lo…

Find a subset of length 4 which has a maximum value of sum [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 2 years ago. Improve this question So I …

Python Pandas Filter but results are inversed

Hi I’ve built a filter where I expect the results to only show ‘New’. However the result shows everything but new? Thoughts? TIA Neil Answer The ~ negates/inverts the filter. Just use .loc[filt] instead of .loc[~filt] to get the un-negated result.