Anonymous
I mean I have to make login and sign-up page but I have not to use Django form features
S
Yes, you can make API using Django rest framework and integrate it with any Js framework
Anders (izzno / gooood) 🇳🇴
007
How to see djcelery result which is store in : CELERY_RESULT_BACKEND = 'db+sqlite://django-db'
Anders (izzno / gooood) 🇳🇴
I just spent the last 3 hours moving a production from wsgi/gunicorn to asgi/daphny and it's noticably faster... What am I missing... Why is it faster
Anders (izzno / gooood) 🇳🇴
(1 hour was getting Alpine to "behave" in docker...)
Gaurav
Why do python's all classes are extended from object class in python 3X ??
Muflone
Why do python's all classes are extended from object class in python 3X ??
they're called new-style classes, inherit some base methods, not available under python 2 old-style classes
Gaurav
https://pastebin.com/UbUQySWL
Gaurav
can somebody tell me the answers with explanations.... best suitable for python 2X
Muflone
can somebody tell me the answers with explanations.... best suitable for python 2X
I told you before, they're new-style classes, go pick the official documentation and read what's different in new-style classes
Abhi
I have used django-otp and django-good-otp both library But still didn't get any useful solutions Can you please suggest me any popular library with rapository
Андрей
pyotp · PyPI https://pypi.org/project/pyotp/
Андрей
It maybe helpfull
O
Any one have simple sample project for modal bootstrap form for submitting data?
Abhi
Anybody know asterisk developer
Abhi
?
Anders (izzno / gooood) 🇳🇴
Noe
Hello, there. I want to combine GraphQL and Neo4J in my Django project. I'm using graphene (graphene_django) and neomodel OGM. First error was obout that my node doesn't have _meta attribute then I set it up as instance of NodeMeta model with only attribute name. And it seems it wants to convert to GraphQL list type, but it got None.
cj
have you started using Django 3.0 already?
it isn't stable to use on production, I guess it's not yet available not even to test 🤷🏻‍♂
Anonymous
I am getting error...... Python int too large to convert to sqlite INTEGER
Anonymous
Using Django models
cj
you can't send pictures here, but the error tells you is because SQLite doesn't support the value you want to store, so you better use a better DB engine
Anonymous
Okay
Anonymous
I have removed that variables which causing error
Anonymous
Now another error occurred regarding Django models
Anonymous
That is
Anonymous
table shop_transaction has no column named CURRENCY
Anders (izzno / gooood) 🇳🇴
table shop_transaction has no column named CURRENCY
You should do the official tutorial, and some basic python.
Anders (izzno / gooood) 🇳🇴
You are not following "common" conversions for code in Python.
Anders (izzno / gooood) 🇳🇴
You can test Django 3 now 😊
Anders (izzno / gooood) 🇳🇴
I haven't looked at it yet, I find it strange that you can't call orm on async views. If it's something you want to await, that would be it...
Ghorz
No success yet
Ghorz
Same code works on Django 2
Anders (izzno / gooood) 🇳🇴
Ghorz
I tried daphne but couldn't bind it to nginx
Anders (izzno / gooood) 🇳🇴
I dont get that. All nginx does is serve static ?
Anders (izzno / gooood) 🇳🇴
At least thats all I use it for...
Ghorz
What do you meen on?
On my vps binding django 3 to nginx
Ghorz
I mean run daphne as a daemon
Anders (izzno / gooood) 🇳🇴
I mean run daphne as a daemon
I run daphny in a container
Ghorz
daphne -b 0.0.0.0 -p 8000 mysite.asgi:applications
Anders (izzno / gooood) 🇳🇴
yep, then i proxy through with nginx
Ghorz
The problem I have with container especially docker is I can't access uploaded media files
Anders (izzno / gooood) 🇳🇴
use volumes
Anders (izzno / gooood) 🇳🇴
FILE_UPLOAD_PERMISSIONS = 0o644
Ghorz
I didn't add volumes
Anders (izzno / gooood) 🇳🇴
and add that to settings.
Ghorz
I caught me red handed
Anders (izzno / gooood) 🇳🇴
I didn't add volumes
https://pastebin.com/4K2Na340
Ghorz
That's exactly what I'll do once I can get multitenancy to work, still struggling with it
Anders (izzno / gooood) 🇳🇴
https://pastebin.com/JMMz9PYG
Anders (izzno / gooood) 🇳🇴
^ nginx example
Ghorz
^ nginx example
Have you tried tastypie
Anders (izzno / gooood) 🇳🇴
It can be a bit confusing but remember hostnames are container names in docker when looking at configs,
Anders (izzno / gooood) 🇳🇴
Ghorz
No.
It's a competitor to DRF
Anders (izzno / gooood) 🇳🇴
I bookmarked it.. Will look at it when we lock down our api
Ghorz
http://tastypieapi.org/
Anders (izzno / gooood) 🇳🇴
DRE is nice, but fires of a great deal of queries ;) Anything that can help with reducing that would be great
Anders (izzno / gooood) 🇳🇴
Yeah I skimmed the gist ;)
Ghorz
But honestly, I haven't full explored it, sometimes learning to use too many tech is wasteful
Anders (izzno / gooood) 🇳🇴
Thanks, now I have to go build a shower cabinet 😭
Mirco
http://tastypieapi.org/
Have a look also to FastAPI 😊
Firdaus
Have a look also to FastAPI 😊
👍 thanks. Will go through the tutorial. Looks very well written.
Ghorz
👍 thanks. Will go through the tutorial. Looks very well written.
I've checked it but in reality, only DRF has django coding structure