հօรรεiռ
mongo and django don't play so well... why are you using mongo with django?
I use fastapi for the api And bcz of ready to use admin panel I decided to implement it in django
Alex
mongo and django don't play so well... why are you using mongo with django?
better to say "mongo with django admin", I think
cj
I use fastapi for the api And bcz of ready to use admin panel I decided to implement it in django
actually I'm going to do something similar, Django for the admin part and FastAPI for the endpoints... but using PostgreSQL... as I said, Django + MongoDB is not a good combination
Alex
Hi I have problem with implementing django admin panel with mongo db I already use djongo But forms not working well It stucks with lots of errors Anyone has experience mongo and django project?
Mongo doesn't suits as a main DB in a common web app. It's used ask key-value storage, for full-text search and so on. I encourage you to switch back to relational db.
հօรรεiռ
Mongo doesn't suits as a main DB in a common web app. It's used ask key-value storage, for full-text search and so on. I encourage you to switch back to relational db.
Yes You know I use embedded documents And it has more performance than relational databases I think its better for fast response Isnt it?
cj
Yes You know I use embedded documents And it has more performance than relational databases I think its better for fast response Isnt it?
these days no... maybe 6 years ago they were faster... now (we're on 2020) relational databases (at least PostgreSQL) are as fast (or even faster) than NoSQL DBs
Alex
Yes You know I use embedded documents And it has more performance than relational databases I think its better for fast response Isnt it?
DB and web app performance is a very very broad topic. But to your example - you can simply cache requests to relational db and get both - speed and relation benefits.
Raywant
Can any1 give me a django project
Raywant
🙏please
Doragonsureiyā
Can any1 give me a django project
Your question is not related to Django. Please move to @PythonOfftopic group and ask there.
Batman
I'm trying to integrate Google Login using Allauth and django rest auth, but it seems that Allauth doesn't have support for id_token, and it only works with access_token, how do I make it work?
mahesh
No
Batman
no, django Allauth, to integrate Google Yolo support, which only provides id_token and not access_token
nirav
In django Which database is good for e-commerce site mysql or postgresql
Anonymous
Hi
Anonymous
How can I send html email from django?
Anonymous
I mean, when it is open with gmail or other email services, to be rendered
Sri
How to use speech recognition functn in django form fields ??
Alex
In django Which database is good for e-commerce site mysql or postgresql
Any relational db suits. Django it self mostly designed to work with postgres
Peak
Unknown command: 'runserver' Type 'manage.py help' for usage. by running 'manage.py help' i have got this : Type 'manage.py help <subcommand>' for help on a specific subcommand. Available subcommands: and there are no available subcommand. ____________________ i'm using pyCharm. every thing was ok but today when i opened the IDE, it made this error. what is wrong? 😳
Batman
Omair
actually yes
Cool, are you using DRF by any chance?
Batman
ohh I actually found an article, and I tried it's approach and it worked but the thing is, it asked me to modify my package files itself https://medium.com/@gonzafirewall/google-oauth2-and-django-rest-auth-92b0d8f70575 I am hoping if there might be a way to do it by subclassing it, but I can't figure it out
Omair
Is there a certain reason you are trying to get hold of the id_token, access_token has most of the user metadata you would need to authenticate the request.
Batman
yes, I'm integrating Google One Tap Sign in for web, and it is providing me id_token instead
Ravi
Any experts on cloud-init #cloud-config?
Omair
yes, I'm integrating Google One Tap Sign in for web, and it is providing me id_token instead
I think this might be what you are looking for https://github.com/RealmTeam/django-rest-framework-social-oauth2
Mirco
yes, I'm integrating Google One Tap Sign in for web, and it is providing me id_token instead
I've just re-used python social auth methods but it uses the access token
Batman
I'm using django-rest-auth with django-allauth actually 😅
Mirco
most of them are based on python social core 😁
Batman
looks like python-social-auth is more active than django-allauth 😅, just gotta make sure it actually works with id_token before making the switch though
Peak
First activate a virtual environment Then run python manage.py runserver
i did it and i've got this: can't open file manage. py: [Error 2] No such file or directory
#!/bin/sh Inَactive
3
the IDE couldn't be loading your settings file probably or there could be something wrong with your settings.py can you run the command python mange.py runserver from outside the IDE terminal? use the normal terminal
#!/bin/sh Inَactive
yes i did just now. but again I've got same error : unknown command runserver
can you check if everything is fine in "settings.py" and "mange.py"?
#!/bin/sh Inَactive
yes nothing is changed about these 2 files.
last check can you make sure it's django 3 you're running (not an old python version with old django) by using python -m django version
#!/bin/sh Inَactive
i checked now it is 3.1 and my python is 3.8
can you send a version of your project?
Peak
all of my project? 🤔
#!/bin/sh Inَactive
all of my project? 🤔
what's enough to reproduce the error you can dm the files if you want
Peak
what's enough to reproduce the error you can dm the files if you want
thank you very much i'll make them ready and send you asap.
GKV
Can any one send me full python django project
Doragonsureiyā
Can any one send me full python django project
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box, write down the same words you asked here Step 4: Read the first results
Neo
Which is good option apache2 or nginx to deploy django on ubuntu
Alex
In practice nginx is a de-facto standard in web
Neo
The one you know.
Trued with apache but got some errors.
Null Boy
Why i can't send media?
Doragonsureiyā
Why i can't send media?
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain: - what you're doing - what you're expecting - what you're using - where you're running the script - what Python version you're using - what packages and their versions you're using - and the most important thing: show the code YOU wrote (read rule 5️⃣ for that) and more details, that way your chances to get help will increase
Doragonsureiyā
Why i can't send media?
Read the rules before any activity: @PythonRules
Alex
I joined rule channel
Media attachments are prohibited here.
Alex
Aha
If you want to show us your code - use paste services for that.
Mirco
I joined rule channel
So just read them
dominic
I want to style Django forms. Anybody knows how to style it. I am a beginner in django.
Alex
I want to style Django forms. Anybody knows how to style it. I am a beginner in django.
For example - Render them in your templates and write css styles for them.
dominic
Like I am writing just {{form}}
Mirco
Like I am writing just {{form}}
you can add css class via form widgets
Mirco
check on official docs what they are
dominic
Ok thanks
Mirco
!yw
Doragonsureiyā
You're welcome! 😊
Alex
Like I am writing just {{form}}
https://docs.djangoproject.com/en/3.1/topics/forms/#working-with-form-templates