Su
Nishanth Siraj
Zokirshoh
Dj - 505
CoolCoder
Hi can anyone help me to fix this error :-
https://codeshare.io/6p0PBm
Aby
CoolCoder
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?
Felipe
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ā
Sani
I had trained a model but how to integrate it with django i am not getting. Can anybody help me out?
Pradheep
Pradheep
Sani
Thank you
Muflone
Naggafin
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
Rajan
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
Maxim
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
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"]
bansh
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"]
python manage.py collectstatic
use this command might be it will be work
Patrick
Jd
Franky
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"]
Try python manage.py findstatic filename verbosity 2.
Your output Will be the complete Path of filename of exist.
Franky
If exist Sorry
bansh
CoolCoder
A
Hi guys pl. Suggest any good resource on django translation.
Mirco
A
Miriam
Максим
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.
Wizard
Haya
What mean Microservices technology in Django ? Is it make many app in same project or make many project content one app ?
Jimmies San
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 ?
Stanislav
Haya
are you sure about that
Jimmies San
Stanislav
Configure them on different ports and then you will have your nano services
Jimmies San
I suggest you read something around microservices pattern
Jimmies San
https://martinfowler.com/articles/microservices.html
Haya
Haya
Sea
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
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):
Ali
A L I
Stanislav
Overall?
It depends on the situation, sometimes using Django’s magic as in view sets also come useful