Mirco
Techbium
Techbium
Charly
Charly
Emre
Yes, I did some research, but what I found is generally very superficial information.
Charly
Charly
https://docs.djangoproject.com/en/dev/ref/contrib/admin/#overriding-admin-templates
Suraj
Hello can some one help me out,
I have created Django celery queue for my multiple tenant
And
I started those queue
Using
Sudo supervisorctl restart all
But my queues are not working
Doragonsureiyā
Kasem
What do I should do?
If I have two users with different privileges, (customer, store owner)
Making super user create account for store owner or allow to store owner to create own account?
In both cases customer will create account without super admin
Nazi
Kasem
Shivaay
Hi everyone I have django issue where I am facing issue in LDAP LOGIN
WHERE USER LOGGED IN SUCCESSFUL BUT AM NOT ABLE TO STORE THEM
Doragonsureiyā
Hi everyone I have django issue where I am facing issue in LDAP LOGIN
WHERE USER LOGGED IN SUCCESSFUL BUT AM NOT ABLE TO STORE THEM
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain:
- what you're doing
- what you're expecting
- what you're using
- where you're running the script
- what Python version you're using
- what packages and their versions you're using
- and the most important thing: show the code YOU wrote (read rule 5️⃣ for that)
and more details, that way your chances to get help will increase.
Shivaay
Yathish
store what Token ?
Techbium
Hi guys am having trouble getting images after uploading them with the admin panel..
This is how I arrange my media root and media URL
MEDIA_URL = 'media/'
MEDIA_ROOT = BASE_DIR / 'media'
I have tried endlessly and I don't know what the problem is
Charly
Ilanga
Hi guys! I have issue with migrations during dockerization. Logs says:
django.db.utils.OperationalError: connection to server at "db" (172.20.0.2),
port 5432 failed: FATAL: database "employees" does not exist.
And there is truely no such database in postgres container
But I wrote in docker-compose.yml:
command: >
sh -c "python3 manage.py migrate && python3 manage.py runserver 0.0.0.0:8000"
Google shows cases where was problems with CamelCase, but I use only lowcase
Techbium
Charly
Charly
Ilanga
Ohh you right, have you read the error message?
Here is full log: https://pastebin.com/KiDPbsxK
Also, when I manually create db by command:
docker-compose exec db psql -U postgres -c "CREATE DATABASE employees;"
and restart container with service, it automatically apply migrations
Charly
Ilanga
Charly
Дмитрий
Hey guys!
Anybody know why in documentation we have status_code, but in reality I should use status?
Here is my view:
def click(request):
return HttpResponse("Here's the text of the web page.", status_code = 404) # this doesn't work
############
def click(request):
return HttpResponse("Here's the text of the web page.", status = 404) # But this works!
Why?
Ilanga
Which tutorial?
Sorry, lost link https://medium.com/@jonas.granlund/running-django-with-postgresql-in-docker-a-step-by-step-guide-f6ab3bf05f44
Ilanga
@Carlangueitor also after changing database name in .env file migrations were apllied automatically
Ajaj
Hey folks I badly want to deploy my django projects
Ajaj
Can anyone help me please
Collo
Ajaj
I have tried on vercel
Charly
.....
Hi everyone. Could you give me some django admin panel templates?
Ilanga
Firdaus
Imean
From which site or channel i can learn django
Imean
Thank you
Amin A
as a backend python eng. should i learn data structure and algorithms in python or DS in general? becuase there is two kind of course for this topic
Nazi
you should be a python developper at least know the basics including Algorithms and functions ..
jock
I have a project that requires technical selection. I am responsible for the host computer of a device. It is confirmed that the Django framework is used as the surface layer, and C# is used for the detailed control of the PLC inside. For example, if Django receives an axis movement command, I only need to The value is passed to c#, and the detailed implementation is controlled by c#. Are there any recommendations for mature industrial control projects? I want to shorten the development cycle.
jock
I have about a month to complete this
Kasem
How can we connect react with Django rest?
Kasem
Wtf?
Kasem
api 🤷♂
I know but for frontend I don't know what should I do, is it enough for me to provide frontend api endpoint for this?
Mirco
Kasem
Ha 💙
For each user, there will be at least one manager, only the admin doesn't have a manager.
We need to create the appropriate DB structure and views to support that.
Nazi
what permissions that the manager have on the user
Ha 💙
Nazi
you can create two groups one for users and one for manager
Nazi
then link the two models
Nazi
with the appropriate permissions
Ha 💙
I am working on a human resources management project, and this is just an explanation of the task
Nazi
every user have a unique manager or a group of users have one manager ?
Ha 💙
Can you write a simple example?
Ha 💙
Each user has one or more managers
Nazi
lets say you are creating an app for a HR manager
Nazi
who have many sections below him (Design team, Programming Team, ...)
Nazi
you create a groupe in django DB who contain only the managers and give them permissions to controll users
Nazi
the other group have all the users and no permissions
Nazi
did u get it !
Ha 💙
Is this task better achieved using models.py?
Nazi
you can create the groups from the admin panel
Nazi
but for the users info you do use models.py
Alfred 🐾
My friends, I am using s3 for uploading. There is no problem when the file is up to 20 megabytes, but when it is more than that, there is a problem with uploading. Can anyone guide me on what to do to solve this problem?
Aju