Админ Queen Shopen
Hi all! Can anyone please explain how you can make a unique slug for a user and can you use the slug in the username value? Thanks in advance for your answer.
Vishnuraj C
How can I integrate calendar in Todo app
mohsen.k
4li
hi guys anyone here deployed a websocket project?
Doragonsureiyā
hi guys anyone here deployed a websocket project?
Please don't ask meta questions like: - Any user of $x here? - Anyone used technology $y? - Hello, I need help on $z! Just ask about your problem directly! If you don't know what to ask, please read: http://catb.org/~esr/faqs/smart-questions.html
Doragonsureiyā
How can I integrate calendar in Todo app
Read this please: http://www.catb.org/~esr/faqs/smart-questions.html
4li
WEB SOCKET i have an app and this worked on local with http (ws) protocol when i deployed with wss addressing its not worked and my socket can’t connect -my route is : path(‘wss/chatroom/<str:chat_id>/‘, ChatConsumer.as_asgi()), -my websocket is: chatSocket = new WebSocket(‘wss://${window.location.host}/wss/chatroom/${chatId}/‘); -my error in console: WebSocket connection to {my address} failed
AZ
Hi friends It's mukhil My Django project running on my PC that's accessible through a domain name using a cloud service. I want to know how to switch from HTTP to HTTPS to make my site more secure. Is that right? @mukhil64
If you setup all nginx configuration, you just need to install certbot and run it inside the /etc/nginx/site-enabled/ then it will make all domains run with https
Mukhil
https://nginx.org/en/docs/http/configuring_https_servers.html
Thanks for replay bro Currently iam not using nginx Iam using Django server
شهرزاد محمد
Mukhil
This is not useful in production
I am new to Nginx and want to gain proper knowledge before switching my Django server to it. I’ll study thoroughly to ensure a smooth transition.
summit
Hello, Which are your favorites tools to deploy django projects? (Django+celery+dockerfile+cicd) I use Cloud Run in gcp, but I would like to find something less expensive
Doragonsureiyā
Hello, Which are your favorites tools to deploy django projects? (Django+celery+dockerfile+cicd) I use Cloud Run in gcp, but I would like to find something less expensive
Adding the word Django to your Off-Topic question doesn't magically turn it to a Django related question, so delete your question here and move to the @PythonOfftopic group and ask there.
Shafin
Any know django hosting on cpanel
Doragonsureiyā
Any know django hosting on cpanel
Please don't ask meta questions like: - Any user of $x here? - Anyone used technology $y? - Hello, I need help on $z! Just ask about your problem directly! If you don't know what to ask, please read: http://catb.org/~esr/faqs/smart-questions.html
FORTUNATE
Hi, Django boss. Someone should help me with: On clicking on a button(with anchor tag) it take me to whatsapp with descriptions(Hi, will like to get this product) Thanks
FORTUNATE
How the anchor tag will look like
DD
hello. i have django application on my IIS server. first of all it should go through login endpoint that have windows authentication to get token. after getting token it should work only with token. when my windows auth enabled - login works, but next requests after login doesnt work because windows auth enabled and token auth requires anonymous authentication. when both windows and anonymous authentications are enabled, windows auth doesnt work because request.Meta.REMOTE_USER comes null how can i fix it?
DD
You can pay a developer or use chatgpt
I’m developer myself and even chatgpt plus can’t help me somehow)
أم
Does anyone know of GitHub code that is up to date for a learning management system that uses Django and is suitable for beginners. Thanks!
4li
You need to run daphne server on production
yea i found mistake message broker
Abdu
After my echereation, the django, but the GTA served the RUC server b's browser to open the meline for the HTTP, but despite his office Django SSL Server but it did not Run, I want to help you, even though one step
Asma
Hello, I am working on my graduation project, which is a chat application using Python and the Django framework. Can I find someone who can help me?
Asma
Thanks
Asma
No one can help you until you explain your difficulties.
I am facing many difficulties. I have reached the middle of the project and I could not complete it because I do not have enough information about Django and Python. This is the first application I have created.
Abror
Hello, I am working on my graduation project, which is a chat application using Python and the Django framework. Can I find someone who can help me?
I have done one. But it doesn't work asynchronously. If you wish I'll send you github repo
Fetehadin
Hi Django Family 👋, I'm trying to log in to the Django admin panel with a superuser account I created using: python manage.py createsuperuser I was able to successfully create the superuser (username: fetehadin), and the terminal confirmed that it was created. However, when I try to log in to the admin panel with the correct credentials, I get the error: 'Please enter the correct username and password for a staff account.' I've tried: Resetting the password using python manage.py changepassword fetehadin. Ensuring is_superuser and is_staff are set to True for this user. Restarting the server and clearing my browser cache. Despite all this, the issue persists. Since I'm new to Django, I'm not sure what else could be going wrong. Can anyone help me figure this out? 🧩 !
Fetehadin
Looks like db problem, make sure that it is connected correctly
I checked it! but db connection is fine. Ig
Fetehadin
Looks like db problem, make sure that it is connected correctly
PS C:\Code\django\Sample_project> python manage.py shell Python 3.13.1 (tags/v3.13.1:0671451, Dec 3 2024, 19:06:28) [MSC v.1942 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> from django.db import connection >>> print(connection.settings_dict) # Shows the database configuration {'ENGINE': 'django.db.backends.sqlite3', 'NAME': WindowsPath('C:/Code/django/Sample_project/db.sqlite3'), 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'CONN_HEALTH_CHECKS': False, 'OPTIONS': {}, 'TIME_ZONE': None, 'USER': '', 'PASSWORD': '', 'HOST': '', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}}>>> cursor = connection.cursor() >>> cursor.execute("SELECT 1") # Simple query to chec None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}}>>> cursor = connection.cursor() None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}} None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}}>>> cursor = connection.cursor() >>> cursor.execute("SELECT 1") # Simple query to check if the connection works <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x000002990B283DA0> >>> print(cursor.fetchone()) (1,) >>> exit() now exiting InteractiveConsole... PS C:\Code\django\Sample_project>
Ivan
PS C:\Code\django\Sample_project> python manage.py shell Python 3.13.1 (tags/v3.13.1:0671451, Dec 3 2024, 19:06:28) [MSC v.1942 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> from django.db import connection >>> print(connection.settings_dict) # Shows the database configuration {'ENGINE': 'django.db.backends.sqlite3', 'NAME': WindowsPath('C:/Code/django/Sample_project/db.sqlite3'), 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'CONN_HEALTH_CHECKS': False, 'OPTIONS': {}, 'TIME_ZONE': None, 'USER': '', 'PASSWORD': '', 'HOST': '', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}}>>> cursor = connection.cursor() >>> cursor.execute("SELECT 1") # Simple query to chec None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}}>>> cursor = connection.cursor() None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}} None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}}>>> cursor = connection.cursor() >>> cursor.execute("SELECT 1") # Simple query to check if the connection works <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x000002990B283DA0> >>> print(cursor.fetchone()) (1,) >>> exit() now exiting InteractiveConsole... PS C:\Code\django\Sample_project>
Can you check do you have ur superuser inside db?
Fetehadin
Can you check do you have ur superuser inside db?
Yeah i checked if i have superuser account in the database! [ the query returns username] means i have
Ivan
Yeah i checked if i have superuser account in the database! [ the query returns username] means i have
Try this from django.contrib.auth.models import User user = User.objects.get(username="fetehadin") print(user.is_staff, user.is_superuser, user.is_active) Is all fields returning true?
Ivan
No idea what’s going on
N
Try this from django.contrib.auth.models import User user = User.objects.get(username="fetehadin") print(user.is_staff, user.is_superuser, user.is_active) Is all fields returning true?
user = User.objects.get(username="fetehadin") print(user.is_staff, user.is_superuser, user.is_active) if user.is_staff and user.is_superuser and user.is_active: print("All fields are True") else: print("Not all fields are True")
clouded
I have done one. But it doesn't work asynchronously. If you wish I'll send you github repo
This is not a project sharing group. If he faces issues, he can share them here and somebody might help.
spaceboy
hi guys , can we use two database in one project ?? (i have a chat application and i cant work as well with mongodb)
شهرزاد محمد
Jinx
hi guys , can we use two database in one project ?? (i have a chat application and i cant work as well with mongodb)
Yes we can as far as i know django handles the websockets from its internal sql database that is self generated and mongodb can be connected through Apis
Fetehadin
No idea what’s going on
Thank you bro! i will search another solution!
colo
Hello, does anyone know if there is a Django plugin to create dynamic menus that can be managed for multiple users? thanks
colo
I need to create customized menus for different user groups. I'm referring to managing 100 users and many profiles based on their functions. I want to extend the features Django already has built-in.
Jordan
hello guys i'm working on a django chat app. i'm using redis, daphne, react native, etc. i have this error since the morning """ self.check_apps_ready() File "C:\Users\MONAO\Desktop\End\django\Lib\site-packages\django\apps\registry.py", line 138, in check_apps_ready raise AppRegistryNotReady("Apps aren't loaded yet.") django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet"" whenever i type the command daphne chatx.asgi:application
Jordan
https://dpaste.org/bSVfF
Charly
https://dpaste.org/bSVfF
So you ignored my advice?
Doragonsureiyā
https://dpaste.org/bSVfF
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
cj
So you ignored my advice?
you'd be surprised
Jordan
So you ignored my advice?
why saying this? I provided the content of my settings https://dpaste.org/bSVfF
Charly
why saying this? I provided the content of my settings https://dpaste.org/bSVfF
Because I didn't ask for the content of your settings
cj
why saying this? I provided the content of my settings https://dpaste.org/bSVfF
he never asked you that, he advised you to verify some things
Jordan
alright sorry
cj
alright sorry
btw, lines 22-23 shouldn't be there
Jordan
they weren't there before, so let me just remove them.
Jordan
still the same
Jordan
Because I didn't ask for the content of your settings
Sir i wish to know... i was un able to launch the daphne server using the command ****** daphne -b 0.0.0.0 -p 8001 django_project.asgi:application. Then i decided to change the ASGI in the command with th WSGI and it worked. I know it's not correct but can it cause harm to my backend?
Jordan
how please? i don't get you
Charly
how please? i don't get you
Why are you using daphne?
Joe
I need to develop a CRM chatbot using Django that will include dashboards for customers, admins, and other specific users. The goal is to allow businesses to subscribe to the chatbot and manage their respective CRMs, such as handling customer reviews and other interactions. Additionally, I want the chatbot to enable customers to purchase products directly. Is this possible to achieve? Where should I start in terms of design and development? What are the key components I need to implement to make this work effectively?"
Charly
I need to develop a CRM chatbot using Django that will include dashboards for customers, admins, and other specific users. The goal is to allow businesses to subscribe to the chatbot and manage their respective CRMs, such as handling customer reviews and other interactions. Additionally, I want the chatbot to enable customers to purchase products directly. Is this possible to achieve? Where should I start in terms of design and development? What are the key components I need to implement to make this work effectively?"
- Yes, it is possible. - Well it depends on what you know about the system and what you know about building systems. I'd suggest at least starting with identifying main business domains and actions so you can design views and components. - It is very hard to tell (and not say just generic useless stuff) without doing a proper analysis and that's some only you can do
Joe
Thank you for your insight. I appreciate the guidance. To provide more context, I’m developing a CRM chatbot using Django. The goal is to allow businesses to subscribe to the platform and manage their respective CRMs, including customer reviews, support, and sales processes. Here’s a brief overview of the core components I envision: Business Dashboards: Businesses will have unique dashboards to monitor and manage customer interactions, reviews, and leads. Customer Chatbot: The chatbot will provide 24/7 support, automate responses to routine queries, and enable direct product purchases. Admin Views: A super-admin panel to manage subscriptions, businesses, and platform-wide analytics. Scalability: The system will be designed to scale with businesses—whether startups or enterprises—while seamlessly integrating with existing CRM systems. I plan to start by identifying the key business domains (e.g., lead management, customer inquiries, and sales tracking) and designing the views and actions around them. The next step will include breaking the project into key phases: Business Onboarding: Allow businesses to subscribe and customize the chatbot. Integration: Ensure Jibu integrates easily with other CRMs for a unified experience. Customer Purchase Flows: Enable customers to browse and purchase products directly through the chatbot. I know there’s still a lot to analyze, but I’m focused on building something intuitive, scalable, and impactful, like this I would love to hear any thoughts or tips on approaching this! I do have experience in developing systems for 5 years and I needed to receive a general view of how to approach this project efficiently