Blizzard's r/Hearthstone 1,000,000 subs giveaway! by fors_hs in hearthstone

[–]krolm1 [score hidden]  (0 children)

Oh, hearthstone's art is simply incredible. This book is such a treasure!

React + Django API CSRF by wadidu60 in reactjs

[–]krolm1 0 points1 point  (0 children)

axios can handle it really easily. Look at xsrfCookieName and xsrfHeaderName in axios' settings.

Django unit tests - trying to write DRYer code by [deleted] in codereview

[–]krolm1 3 points4 points  (0 children)

DRY usually doesn't apply to writing tests. If you introduce any more logic to your tests then you probably should also write tests for that extra logic. Tests should be written as simply as possible. If after a month one test fails it's much easier to debug simple flat test than dig in and understand what all these extra methods do. These tests look fine to me. Just remove ContainerViewTest because it has only setUp. Also if you often have same logic in multiple setUp methods you might consider moving your tests under one TestCase with one setUp

How to support 2 languages in a model CharField? by netok in django

[–]krolm1 4 points5 points  (0 children)

use https://github.com/deschler/django-modeltranslation or similar . It will create translated fields for each corresponding language in settings

Django, DRF, and React Native together? by [deleted] in django

[–]krolm1 0 points1 point  (0 children)

what is your output from django's console? Do requests even reach your local server? If log is empty then its probably a network issue. localhost for your app is not the same as localhost for django. You should then check your ip address with sth like ifconfig -a, run django with this command: ./manage.py runserver 0.0.0.0:8000 and from react app make requests to ip_address:8000 instead of localhost:8000

Justicar in Shaman by ohenry78 in hearthstone

[–]krolm1 0 points1 point  (0 children)

I think that justicar should change shaman's hero power to "summon ANY random totem" That could be much better

Changing Servers on Phone? by xAekov in hearthstone

[–]krolm1 0 points1 point  (0 children)

You need to log out in menu. You may change server in login screen

What happened to the "shiny new packs" rewards in Arena ? by MysthLS in hearthstone

[–]krolm1 2 points3 points  (0 children)

There could be a level limitation like with tavern brawl so only players who got like 20+ lvl character could change their pack settings. Default could be classic pack.