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) 🇳🇴
Batman
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 ??
Gaurav
https://pastebin.com/UbUQySWL
Gaurav
can somebody tell me the answers with explanations.... best suitable for python 2X
Gaurav
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?
Anders (izzno / gooood) 🇳🇴
Batman
Anonymous
Anonymous
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.
Anonymous
I am getting error......
Python int too large to convert to sqlite INTEGER
Anonymous
Using Django models
cj
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) 🇳🇴
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
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
I mean run daphne as a daemon
Anders (izzno / gooood) 🇳🇴
Ghorz
daphne -b 0.0.0.0 -p 8000 mysite.asgi:applications
Ghorz
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
Ghorz
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
Ghorz
That's exactly what I'll do once I can get multitenancy to work, still struggling with it
Ghorz
Anders (izzno / gooood) 🇳🇴
https://pastebin.com/JMMz9PYG
Anders (izzno / gooood) 🇳🇴
^ nginx example
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
Ghorz
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 😭
Anders (izzno / gooood) 🇳🇴
Ghorz