Олександр
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
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 ??
cj
Muhamedou
Thanks
Vasilii
do I need to serve files using django or nginx?
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
Alex
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
Suhaib_0.0
I have a question 🙋🏻♂️
Does postgreSQL look like MySQL
Suhaib_0.0
Aman Jain
Anybody have idea how to work with license .
I create a software i wanna include license key how i do this
cj
Suhaib_0.0
How do I convert my website from http to https
Alex
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
Mohammed
Fedora
Hello how do i access attribution of a foreign key ?
Charly
yusof
hey guys does anyone know when we return self.filter() in active method in queryset model what will be filter ? thanks
Komeil
Mirco
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.
Alex
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
Shivaprasad
What is django rest framework
Mirco
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
chaygo
Roman
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?
Aman Jain
William
Anonymous
Hello I just wanna get your attention for a while , how did you guys learn Django & what courses ?
Bekzat
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.