Dj - 505
Try "goDaddy"
Ok .. I will go search about ..
CoolCoder
Hi can anyone help me to fix this error :- https://codeshare.io/6p0PBm
Ramtin
Hi friends, I have a question, what language should we start with to start programming in the field of website or game? We can learn more easily, where do we start, is it good to start with Python or another language?
Asukhan
Hi! guys, can you please tell me, where should I write some conditions for some certain view, when I am using a class based views? for instance, I wanna print something or I wanna add some certain thing, when someone gets to some url and the view gets fulfilled etc. Like, in a fact, I can write this condition for example in the "get_context_data", but will it be correct enough to do it like this?
Asukhan
yeah, certainly, I know it, but again, won't it be wrong to do it through get_context_data?
Sani
Can anybody help me to integrate aiml with django for my final year project?
Doragonsureiyā
Can anybody help me to integrate aiml with django for my final year project?
No one can help you until you explain your difficulties.
Sani
I had trained a model but how to integrate it with django i am not getting. Can anybody help me out?
Pradheep
I had trained a model but how to integrate it with django i am not getting. Can anybody help me out?
https://medium.com/saarthi-ai/deploying-a-machine-learning-model-using-django-part-1-6c7de05c8d7
Pradheep
I had trained a model but how to integrate it with django i am not getting. Can anybody help me out?
https://www.analyticsvidhya.com/blog/2021/02/machine-learning-model-deployment-using-django/
Sani
Thank you
Naggafin
So now I am fetching the csrf token as output and sending it as headed in my post req but still I am getting 403 forbidden error
hmm. maybe you could add some debug middleware which prints the request headers and things so you can see if it is actually being included or not?
Phrêsh
Pls I’m building an api with Django rest framework and my class based view is inheriting from ApiView class. To post data to the view, the browsable api only displays a json form to post data to the view and looking at my models, it will be difficult to create new models. How do I change the json form rendered by the ApiView into the normal html form rendered when you inherit from generic classes like ListCreateApiViews
Leonardo
Good to
Naggafin
Pls I’m building an api with Django rest framework and my class based view is inheriting from ApiView class. To post data to the view, the browsable api only displays a json form to post data to the view and looking at my models, it will be difficult to create new models. How do I change the json form rendered by the ApiView into the normal html form rendered when you inherit from generic classes like ListCreateApiViews
views from DRF generally aren't intended to be rendered as HTML since they are API endpoints. what exactly are you trying to do? if possible, I would strongly encourage the separation of responsibilities between DRF views and regular views. if it were me, and I wanted to have a rendered login page, I would have a standard django form view with the form action URL pointing to your API endpoint instead. your frontend will need to catch the submission event to encode the data into JSON prior to sending the request (I don't believe you can change this directly on the form with enctype)
Rajan
hmm. maybe you could add some debug middleware which prints the request headers and things so you can see if it is actually being included or not?
In the network of Google inspect sections I am already looking at req headers and it is included in it
Naggafin
In the network of Google inspect sections I am already looking at req headers and it is included in it
if you're willing, I recommend you do something highly unconventional simply for debugging purposes and only in your dev environment: go to the django site package, browse django/middleware/csrf.py, and inserted a hardcoded breakpoint with breakpoint() at line 441 (after the GET pass thrus of process_view). when you make a POST request on your test server, then you can step through the CSRF validation process in the console with pdb
Naggafin
you will 100% be able to find out what is the cause of the CSRF failure then because you'll know exactly what step is failing
Naggafin
imho this is probably way faster and more efficient than trying to shift thru answers on stackexchange or having a long think on it
Kevelino
Hello everyone, please how can I generate a PDF file from a block of my HTML file in django ?🙏
Bandar
can i use django orm without the other batteries ?
Bandar
or i should not use python period if that's the case ?
Bandar
here is the problem i would like all bulit in functionality of django but i don't like how django handle networking
Bandar
like handling websocket connections etc
Bandar
i found it very hard to almost impossible to integrate graphene subscriptions in django in fast i think it's not possible
Bandar
on a web-socket connection
Maxim
can i use django orm without the other batteries ?
https://www.google.com/search?q=using+django+orm+without+django
Faxriyor
hi. I want to use OJS with django (i want my own site articles to be indexed in Google scholar) . is it possible ? Do you know any python library for this ?
Miriam
Hello, my static files are not served, I have tried various ways to configure it but they are never served, only if I use html, but if I use the % static "" % they are not loaded, it only loads the html content. I've cleared cache, set up a new project, checked permissions, moved it to the main drive, etc, but none of that has managed to load it. Can anybody help me? Thanks in advance. {% load static %} <link type="text/css" rel="stylesheet" href="{ % static 'css/main/bootstrap.min.css' % }"/> STATIC_URL = '/static/' STATICFILES_DIRS = [BASE_DIR / "static"]
Franky
If exist Sorry
A
Hi guys pl. Suggest any good resource on django translation.
Miriam
python manage.py collectstatic use this command might be it will be work
Hi thanks. I've also tried it but I still can't solve it.
Максим
Hi everyone! I haven't find any info on the internet about my problem. How can I make the SlugField fill in automatically in the form?
DiNo
Hi anyone familiar with google maps api ?
Doragonsureiyā
Hi anyone familiar with google maps api ?
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Haya
What mean Microservices technology in Django ? Is it make many app in same project or make many project content one app ?
Jimmies San
What mean Microservices technology in Django ? Is it make many app in same project or make many project content one app ?
Microservices is an architectural pattern, beyond what framework you use to create the service
Haya
I use Django , can we use it to make Microservices ?
Jimmies San
Of course
Jimmies San
You can use whatever you like to create the microservice
Jimmies San
And no need to be all the same language/framework
Jimmies San
You can if you want of course
Haya
I repeat my question، Is it make many app in same project or make many project content one app ? in another meaning how create it in Django ?
Haya
are you sure about that
Stanislav
Configure them on different ports and then you will have your nano services
Jimmies San
I suggest you read something around microservices pattern
Doragonsureiyā
I repeat my question، Is it make many app in same project or make many project content one app ? in another meaning how create it in Django ?
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Jimmies San
https://martinfowler.com/articles/microservices.html
Charly
How and where I get this book?
you buy it from amazon or other place where you can buy books
Sheffin
Hi has anyone used drf spectacular for generating swagger docs
Doragonsureiyā
Hi has anyone used drf spectacular for generating swagger docs
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
Dj - 505
get aws server, apply for aws connect, get free credits for 2 years.
Good info. I will go to search about aws .. Thank you..
A L I
I'm kinda new to django im actually android developer and started building my backends myself So Which one is better overall for creating API response?: 1.viewsets 2.APIView 3.function base like def get(self):
Stanislav
Overall?
It depends on the situation, sometimes using Django’s magic as in view sets also come useful