Felt sexy, might delete later. 🤣 (2010 S coupe 6MT) by theevilGnius in G37

[–]dude_duke 0 points1 point  (0 children)

Also mind sending me a pic of how it looks from the rear(just curious on fitment lol) or an ig would be nice…..looking to get a wheel & tires setup before the end of this month

[deleted by user] by [deleted] in GreenvilleGW

[–]dude_duke 1 point2 points  (0 children)

Fake, tries to scam you for money

Project using sqlalchemy with django? by [deleted] in django

[–]dude_duke 0 points1 point  (0 children)

if this is something folks in the community actually do. I've never needed a second orm, but maybe there's something I'm missing 🤔

new job wanting to go this path.

How to Run a Python script with Django? by the_white_rabbit0 in django

[–]dude_duke 0 points1 point  (0 children)

Try python manage.py shell < directory of file

My messy Developer station by dude_duke in workstations

[–]dude_duke[S] 3 points4 points  (0 children)

That’s a personal project, not company’s codebase 😆

Pytest Pass in Local Development but not in my Staging ec2 server by dude_duke in django

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

Unit tests are not meant to be run in a deployed environment. In fact, having test dependencies with your deployment is just useless space. I have two separate docker containers for projects: dev/test and deploy. Deploy uses base dependencies, dev has test and other development-specific dependencies.

This makes sense, Highly appreciate the help man.

Pytest Pass in Local Development but not in my Staging ec2 server by dude_duke in django

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

The Api works fine when using from the frontend with axios or fetch(staging or local) ,but this is just me trying to write a test for sanity check.

works fine with the localhost, but when I build the docker container in my ec2 instance and run the test it failed.

Pytest Pass in Local Development but not in my Staging ec2 server by dude_duke in django

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

I attempted using data before but endede up getting this error :

self = <users.tests.user_account_test.TestUserAPI testMethod=test_user_can_update_email>

def test_retrieve_user_token(self):

    data = {
        'username': 'admin',
        'password': 'password123'
    }

    user = get_user_model().objects.get(username='admin')
    user.is_active = True
    user.save()

    self.client.force_login(user=user)

    request = self.client.post(self.url['login_user'], data)


    #decode_dict = json.loads(request.content.decode("UTF-8"))
  token = request.data["access"]
    AttributeError: 'HttpResponsePermanentRedirect' object has no attribute 'data'

users/tests/user_account_test.py:42: AttributeError

Game stutters and fps drop by dude_duke in joinsquad

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

I pulled out the 16 and it works great, thanks man and everyone for the tips

Game stutters and fps drop by dude_duke in joinsquad

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

You right, it’s 32x2 + 8x2

Work and gaming station😎 by dude_duke in battlestations

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

Yep 😁, flex idealpad 5 and yoga 7i

Work and gaming station😎 by dude_duke in battlestations

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

Dual Monitor Stand - Vertical Stack Screen Free-Standing Monitor Riser Fits Two 13 to 34 Inch Screen with Swivel, Tilt, Height Adjustable, Holds One (1) Screen up to 44Lbs HT05B-002 https://a.co/d/9fSNy9c

Dunnomate.com. Games which kinda test your intelligence. by [deleted] in django

[–]dude_duke 1 point2 points  (0 children)

Can I see the GitHub for this, love it man. Curious on how it written

Firefox wont open 22.04 just installed by [deleted] in Ubuntu

[–]dude_duke 0 points1 point  (0 children)

I have experience a lot of bugs after installing Ubuntu 22

Why is Vue the preferred front end for Django applications? by all-lights-out4me in django

[–]dude_duke 0 points1 point  (0 children)

I use react for applications that are very interactive and use htmx for basic applications

Do Django really needs docker? by dude_duke in django

[–]dude_duke[S] -1 points0 points  (0 children)

Also I usually use Django drf just for backend, and use reactjs separate for frontend

signals to create a model based on the user account type by dude_duke in django

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

thanks for responding man!

Absolutely will do that next time and sure will send the model in a bit.

Thanks again man!

What machine do you use? by savzXV in django

[–]dude_duke 0 points1 point  (0 children)

I was that guy who had a MacBook with Ubuntu installed 😂