Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Check imports,i would rather do
from inventory.models import * hope you get this figured. -
plumbus11947y@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.
-
plumbus11947y@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?
-
plumbus11947y@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
-
plumbus11947y@kunashe if you'd like to convert 20k lines of python, I'll have client send you an NDA :D
Related Rants
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
undefined
python
django