Maltapopoulos 🇲🇹
Vikas Singh
Mirco
In order to make queries to our Django project, we are going to need few things: Schema with defined object types A view, taking queries as input and returning the result Perfect now if you don't trust me, at least read Graphene documentation.
Mirco
Expert please guide us
Wrong place, move to @python
Maltapopoulos 🇲🇹
That's strange I don't see examples of views.py on this link https://docs.graphene-python.org/projects/django/en/latest/tutorial-plain/
Mirco
That's strange I don't see examples of views.py on this link https://docs.graphene-python.org/projects/django/en/latest/tutorial-plain/
https://docs.graphene-python.org/projects/django/en/latest/tutorial-plain/#creating-graphql-and-graphiql-views
Mirco
I think you need to read better to the end of the tutorial
Maltapopoulos 🇲🇹
I think you need to read better to the end of the tutorial
Maybe but I didn't see any example of views.py
Mirco
https://docs.graphene-python.org/projects/django/en/latest/tutorial-plain/#creating-graphql-and-graphiql-views
☝🏻 But you're right, the documentation does not provide a real example
Teutranian
https://dpaste.com/7MRTHLLAV
Teutranian
can someone help with this error?
Maltapopoulos 🇲🇹
☝🏻 But you're right, the documentation does not provide a real example
Yes that's bad because my project works perfectly without views.py
Maltapopoulos 🇲🇹
I would like to have a real example to understand better
Mirco
Yes that's bad because my project works perfectly without views.py
What you have to understand, apart views.py that is just a file, it's that GraphQLView is a view that wraps your GraphQL endpoints so you are already using views Django without views has no sense and it does not work
A Fkin
Hey guys how many months it takes to be a django senior developer if i learn and practice 3 hours at least everyday?
Teutranian
what should a senior developer know?
Teutranian
I don't think senior devs are framework dependent
Mirco
what should a senior developer know?
How to proper search on Google
Teutranian
that is one thing
Mirco
Muthu stop spamming bot commands otherwise you will be warned and banned
Teutranian
but they should a know a hell lot about databases
Teutranian
system design
Teutranian
clean code
Mirco
Yes that's bad because my project works perfectly without views.py
Unlike a RESTful API, there is only a single URL from which GraphQL is accessed. Requests to this URL are handled by Graphene’s GraphQLView view. This view will serve as GraphQL endpoint. As we want to have the aforementioned GraphiQL we specify that on the parameters with graphiql=True. This is the main part to understand
Mirco
That's why in a Graphene project you don't see use of views.py files
Maltapopoulos 🇲🇹
Teutranian
if its a rest api then go for react+node rather than django
Maltapopoulos 🇲🇹
And what is the best to use with Django for the background tasks ?
Maltapopoulos 🇲🇹
celery ? But I don't know if we can do multi-task at the same time using celery
Teutranian
yes u can multi task with rabbitMQ + celery
Teutranian
I once tried to make a server side progress bar on the frontend
Mirco
And what is the best to use with Django for the background tasks ?
Django Q or Celery are the best so far And you can use Redis as broker or SQS if u use AWS
A Fkin
There's no a specific time
I know but definitely there is a range
A Fkin
what should a senior developer know?
mongoDB , ElasticSearch , AWS ,Google Analytics and ...
Mirco
if its a rest api then go for react+node rather than django
If you want the same async stuff of node, there is FastAPI If you like Django there is django-ninja
A Fkin
Nope, it's up to u
Hmm Ok , thanks
A Fkin
Absolutely not required
Yes but i think it will be so good to learn this technologies , because they improve the quality of the website
Mirco
Yes but i think it will be so good to learn this technologies , because they improve the quality of the website
It's good to learn but not required otherwise you will know everything and nothing at the same time
Mirco
Anyway please use the Offtopic channel for this conversation
Maltapopoulos 🇲🇹
Mirco
What is the best between Django Q and Celery ?
Up 2 you Most of people like Celery, other ones Django Q
Maltapopoulos 🇲🇹
Up 2 you Most of people like Celery, other ones Django Q
Yes but what about the performances ? Is it quite similar ?
Mirco
Yes but what about the performances ? Is it quite similar ?
Yup afaik Don't think about performances at first, it's the source of evil
JATISH
Any one isuue with django not working carousel??
Doragonsureiyā
Any one isuue with django not working carousel??
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z" Just ask about your problem directly! With ~80,000 people here, the probability that someone will help is pretty high. How to ask smart questions: http://catb.org/~esr/faqs/smart-questions.html
JATISH
Facing carousel problem with bootstrap in django Carousel not working help please
ITz_Ayi
I'm trying to make a category and subcategory hierarchy using Django MPTT patterns. I have gone through the Django document on mptt and i have done all necessary things on my models.py and admin.py. Everything is working fine on the admin page but they are not expandable and collapsible. Please how do i make them expandable and collapsible? Note: I have imported DraggableMPTTAdmin (which is the function that makes the categories expandable)
Maltapopoulos 🇲🇹
Yup afaik Don't think about performances at first, it's the source of evil
Yes but I don't like take celery and then change on a project
Maltapopoulos 🇲🇹
Because to clean the project it is not easy haha
Shreehari
I guess you can give a look at django crontabs
Raj__Django
No module named 'allauth.account.auth_backend ' error occurred Although I have installed django-allauth
Raj__Django
Please help
Controller
Yes i have done
Would you like to send the project maybe we call help you out easy or
Raj__Django
https://github.com/Rushikeshs2/allauthdjango
Controller
https://github.com/Rushikeshs2/allauthdjango
I dont get it when i runned server it didnt give me that error as yours
arth
Is anyone expert in Django ? I need someone to help me in developing a Django version of Facemash, I found a video on YouTube that I very helpful but I am receiving an error in specific codes, you can inbox me if you are interested
Anonymous
Is anyone in this grp how to use Ajax ?
Anonymous
Knew?
Enam_may
Hi guys, how can I create a wishlist option for my product in python 3, because every package was compatible with python 2, what should I do?
DD777
If you know how to do ORM projects using the example of an online store Then you're called junior?
Doragonsureiyā
If you know how to do ORM projects using the example of an online store Then you're called junior?
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python