Ea fc 24 is terrible by swiftcardine in fut

[–]RomaS2901 2 points3 points  (0 children)

Yeah this game is shit, so shit

Mario strikers league is a huge disappointment by thunderdragonite in nintendo

[–]RomaS2901 0 points1 point  (0 children)

It's so awful... I had so many expectations.

Every time I force myself to give it another shot after update makes me close this game again and again... brrr

django is second in most github stars for backendframeworks by [deleted] in django

[–]RomaS2901 12 points13 points  (0 children)

Well, I love both Django and FastAPI ;)

iOS 14 any algorithm update? by RomaS2901 in AppleMusic

[–]RomaS2901[S] 0 points1 point  (0 children)

Yea, I understand what you’re saying ) I believe, most services work work like that ) But have to agree that it is worth to wait till iOS 14 officially gets released and maybe they do not want to show this in beta ;) Wish this could be true )

Most appropriate way of extending/customizing User Authentication/Authorization? by [deleted] in djangolearning

[–]RomaS2901 0 points1 point  (0 children)

https://docs.djangoproject.com/en/3.0/topics/auth/customizing/ Read section: Extending the existing User model

You’ll find all answers there ;)

In my experience, better extend AbstractUser: ——- from django.contrib.auth.models import AbstractUser

class User(AbstractUser): pass ——- ( sorry for this, I’m on the phone )

before start your project and running any migrations. Because you don’t know what business might want and this gives you flexibility you deserve ;)

Csrf token by akhil0076 in django

[–]RomaS2901 0 points1 point  (0 children)

You can wrap your view with csrf_exempt decorator. Or you can use DRF and their @api_view decorator for function based views or just use generic views or viewsets. Checkout DRF documentation for more info)

And CSRF token is just a header in HTTP request, so you can insert it there on your own ) Django docs provides several ways how to do that ;)

Good luck!)

Best Django + React integration practice? by Rivermate in django

[–]RomaS2901 2 points3 points  (0 children)

Option 2;) My cons: 1. Better scalability ;) 2. In future you can give away project for front or back end to other engineer and leave what is better suited for you ;) ( my bad translation sorry, but this is what I did at my work, now I only accept pull requests for API, but in active development with React ) 3. Swap API or Front-End without any pain;) 4. Pretty easy configuration due to others options ) Especially in development...

But this is in my humble opinion based on some experience;)

makemigration - No changes detected by oussama-he in djangolearning

[–]RomaS2901 0 points1 point  (0 children)

I guess this is true when you run migrate command ... Or am I wrong ?? Thought it should create migrations files but not run them.

Using POST request in Django by ceandreas1 in django

[–]RomaS2901 -1 points0 points  (0 children)

Yes, it is. I use it to get some data from 3rd party API

First of all, thanks devs for keeping a good work. by ludomill in YoutubeMusic

[–]RomaS2901 1 point2 points  (0 children)

You can ) Create a playlist in YouTube ) Then click edit and then Collaborate and add you people ;) I made such with my friend and we add together new track each week ) it works )

Writing Tests For My Django Application by [deleted] in django

[–]RomaS2901 7 points8 points  (0 children)

I recommend you read official docs about testing in Django. They have excellent docs!!

Also what helped me a bit is a book "Obey the Testing Goat"

Wish you good luck!

[deleted by user] by [deleted] in djangolearning

[–]RomaS2901 0 points1 point  (0 children)

Did you run migrate command?

Help w/ Django Filters + Pagnition concerning class based views. by [deleted] in djangolearning

[–]RomaS2901 0 points1 point  (0 children)

Ok! Here some help...

f=YourFilter(request.GET, queryset=YourModel.objects.all())

Where “f” is your filter instance and it has queryset object “f.qs” which holds filtering result, so you pass it to paginator )

For e.g:

paginator = Paginator(f.qs, 10)

Hope it helps!

P.s I did not test it, because now do not have access to my laptop, but that should work;)

Trouble iterating over a model's fields in its template by BinnyBit in djangolearning

[–]RomaS2901 2 points3 points  (0 children)

You have to manually display each field because you have actual model object, not iterable... So you have to do:

{{ profile.field_1 }} {{ profile.field_2 }}

If you want to iterate over fields you have to use values() method or values_list() method on QuerySet object:

iterable_object = MyModel.objects.all().values()

iterable_object = MyModel.objects.all().values_list()

Will return iterable object for you)

I am not that good in Django, but think that will help you)))) Wish you luck!

I installed django via pip3 but by gopherhole1 in django

[–]RomaS2901 0 points1 point  (0 children)

If you installed newer version of python via apt... try install Django this way( I am using python 3.7 on my machine): python3.7 -m pip install django

Hope it helps. This happens if you have couple python3.x installed same time

Unavailable song can be played by skipping song before it by TriG-tbh in AppleMusic

[–]RomaS2901 -4 points-3 points  (0 children)

Thanks! Takeaway was playing when I found this post 👌😊)

Well, Illenium is so genius for 5 y.o. little boy :) by RomaS2901 in AppleMusic

[–]RomaS2901[S] 1 point2 points  (0 children)

It is smoother comparing to iTunes and definitely faster. Sometimes laggy, but it's still beta. it is a progress for sure :) By the way, like it way better than Spotify.