4
plumbus
7y

Well Django, I think I've fucking HAD IT WITH YOUR STUPID FUCKING SHIT ALREADY.
./manage.py shell
In [1]: from inventory.models import ProductLine

In [2]: ProductLine
Out[2]: inventory.models.ProductLine

In [3]: ProductLine.objects
Out[3]: <django.db.models.manager.Manager at 0x7f03e23017b8>

SO WHY IN THE FUCKING FUCK DO I GET

"""
, in ProductLineViewSet
queryset = ProductLine.objects.all()
AttributeError: type object 'ProductLine' has no attribute 'objects'
"""

FUCK ME

I hope I just FORGET I am a programmer, wake up tomorrow free to go work at fucking McDonalds and die in mediocritity anyway. FIANLYL Get to catch up on fucking work and I have to diagnose this inane fuckign django model problem that I dont fucking see anywhere on google, SO, etc right now

Best I can find are all like "You've probably defined something else called <model class name> in that file." But Grep and I sure as fucking tits can't find it!!!!!

Time to fucking make an exact copy of everything but change it to ProductLine2 and watch it all work perfectly fucking hell am I really this stupid or am I going to eventually find a bug after hours of GETTING FUCKING NO WHERE OMN THE STRUPIDEST FUCKING SHUIT IVE EVER SEEN FUCK ME

Comments
  • 3
    I'd advise check your imports and file structure. I hope you get it figured. :/
  • 1
    Check imports,i would rather do
    from inventory.models import * hope you get this figured.
  • 0
    I suppose now would be a bad time to bring up PHP as an alternative.
  • 0
    @wolt my understanding is that flask doesn't come with as much included. Users, orm, etc... If it were easy to convert the 20k lines of Django to Xk in flask i would def consider flask here.
  • 0
    @jschmold ive normally liked the orm. I still need to think about sql sometimes. What do you use instead just write the queries per usual etc?
  • 0
    @zmzmuazzam98 thank you it basically was that kind of thing. Two classes with name and i wasnt looking at right dir at one point. I walked away from it for a few hrs bc, well, yeah
  • 1
    @kunashe if you'd like to convert 20k lines of python, I'll have client send you an NDA :D
Add Comment