Олександр
Hi guys, could you please help me how can I setup 3 different sites on one vps server. I have 3 different docker-compose files with nginx install, the first one starts correctly, the second has an error with the port number, I try to change the port, but my django project won't start
Leonardo
How call a function in other function Ex: def logout(request) :
Focky
How call a function in other function Ex: def logout(request) :
Just call the logout with request arguments
Focky
But you need to import logout before call
Muhamedou
How I can get last object related on field value Model.objects.last(field="bla bla") Is it possible ??
Muhamedou
Thanks
Vasilii
do I need to serve files using django or nginx?
cj
do I need to serve files using django or nginx?
for production, nginx, but it's gonna be even better if you use a dedicated server for that, like S3 or MinIO or similar
Vasilii
thank you
Anonymous
I'm going to create an online clothing and footwear store. How to store their sizes and quantity. For example, clothes have sizes (S, M, L...), and shoes (40, 41, 42) also need to store their quantities
Anonymous
individual item type
Sergio
hey guys, I am a bit confused really. I just started to learn Django.I got a problem with templates. I crated a template folder in a root folder.I have 2 apps. If I put templates in my_project/templates, everything works smoothly , but if I put it in my_project/templates/app1/index.html or my_project/templates/app2/index.html, it doesn't work for me. It shows an error - the template doesnt exist😐.I wrote in settings DIR="templates" and also I had checked installed app. app1 and app2 are in the installed app list. I tried to write full path to index.html and even with full path doesnt work. Thank you guys
Anonymous
hello guys how o transforme mcd to class in python
Alex
individual item type
Then I see it that - db tables, say, offer which is backward related to product. Product has relation to the Offer and keeps an individual product's params - size (as string) and its quantity.
Не выходи из комнаты.
Hi. Can help me with a django-channels, pls? https://stackoverflow.com/questions/69181590/django-channels-page-not-found
Sergio
In view when calling it you have to give full path of it.
exactly, I set a full path in the view and it didn't work 😐
Suhaib_0.0
I have a question 🙋🏻‍♂️ Does postgreSQL look like MySQL
cj
I have a question 🙋🏻‍♂️ Does postgreSQL look like MySQL
they both use SQL, so yes, they are similar in many ways, but PostgreSQL has a better implementation of the SQL standard and has its own features that make it better than MySQL
Aman Jain
Anybody have idea how to work with license . I create a software i wanna include license key how i do this
Suhaib_0.0
How do I convert my website from http to https
William
How do I convert my website from http to https
Buy SSL certificate and update the cors origin list something
Shubham
Can anybody help me with paytm integration in my project...
∫ 𝔞𝔪𝔞𝔫
Hey My project has two languages, there's a login required mixin used, the user chooses their language but when the mixin is called it returns English always Is there any solution
Mohammed
Haw i can do or make or add Websocket in my project Django?
Charly
Haw i can do or make or add Websocket in my project Django?
https://channels.readthedocs.io/en/stable/
Fedora
Hello how do i access attribution of a foreign key ?
yusof
hey guys does anyone know when we return self.filter() in active method in queryset model what will be filter ? thanks
Vasilii
When you check for ip address like that def get_client_ip(request): return request.META.get('REMOTE_ADDR') What is the format of ip address that you get from this function? Also can this function return ipv6 address? Will there be a port?
Sanjay Krishnan
Postgres
Вин Король Саксов
Any, depeneds on your needs
Вин Король Саксов
Mysql or postgres
Mahesh
Hello, I am deploying django web application on iis however I am getting below error. HTTP 500.0 internal server error An unknown fastcgi error occurred
Mahesh
Please suggest solution on this.
Anonymous
How can i give notification count and auto increase count when new notifications arrives with websockets in drf?
Poppu
RuntimeWarning: DateTimeField FirebaseUsers.create_at received a naive datetime (2021-09-14 13:24:24.697000) while time zone support is active. warnings.warn("DateTimeField %s received a naive datetime (%s)"
Poppu
What this?
Poppu
How we should fixed this.
Anurag
ValueError at /admin/login/ Required parameter name not set
Anurag
<link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% static "admin/css/base.css" %}{% endblock %}">
Anurag
{% static "admin/css/base.css" %} this showing in red line ... what can be the solution
Не выходи из комнаты.
Hi. Can help me with a django-channels pls? https://stackoverflow.com/questions/69181590/django-channels-page-not-found
Dev
Hi. Can help me with a django-channels pls? https://stackoverflow.com/questions/69181590/django-channels-page-not-found
i do recommend a library like https://github.com/centrifugal/centrifugo and its python library for websocket stuff
Shivaprasad
What is django rest framework
Alex
What is django rest framework
https://lmgtfy.app/?q=What+is+django+rest+framework
Doragonsureiyā
What is django rest framework
Are you looking for Django REST Framework documentation? Here you have it: https://www.django-rest-framework.org/
Anonymous
Hii
Anonymous
Anyone following Hitesh Choudhary django course
Anonymous
Please dm me
Anonymous
I am not able to run the source code of this course
Pradyum
Anyone could help : https://stackoverflow.com/q/69194826/7999665
Ismail
Hi guys, I have few applications in django project ( user, profile, license) User Profile > user = ..( ..User) License > profile = ..( .. Profile) When I wanna make search page I don't get license information [ profile.license ] even the license migrate and profile are well ! ☹️
Roman
Advise me please where to look? Static worked fine for my index page. But after I split it into base.html, nav.html & footer.html - I keep getting 404 for static files.
Swamy
how to expire an otp after a certain time in django rest API
S
how to expire an otp after a certain time in django rest API
https://stackoverflow.com/questions/61769602/otp-verification-in-django-rest-framework this can help you bro
Bekzat
Guys hello everyone. I am having problem with djangorestframework-simplejwt. It through error ModuleNotFoundError: No module named 'authentication' when sending reguest to login
Bekzat
Did anyone face problem like this
Anonymous
Hello everyone, I'm facing an issue using Django Rest Framework, I'm struggling to make my queryset and point it to a specific file in templates, does anyone have any idea on how to achieve this? thanks in advance
Jitendra Kumar
In ModelForm how to add queryset and select multiple values in drop-down?
MEHDI
Hi I use celery in my django app When i run my task: transaction.on_commit(lambda: taks.mytask.delay()) In celery worker task recieved But nothing changed in database Anyone can help?
William
Guys hello everyone. I am having problem with djangorestframework-simplejwt. It through error ModuleNotFoundError: No module named 'authentication' when sending reguest to login
ModuleNotFoundError occurs when that package was not installed in your virtual environment or you didn't import that package so It couldn't find the package.
Anonymous
Hello I just wanna get your attention for a while , how did you guys learn Django & what courses ?
Bekzat
Facing another error with cors, Already set params like 'corsheaders' ] MIDDLEWARE = [ 'corsheaders.middleware.CorsMiddleware', 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', ]
Bekzat
but still getting error Access to XMLHttpRequest at 'http://127.0.0.1:8000/auth/' from origin 'http://localhost:8080' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.