Jack
Whats the best location to store static files
Vitaly
Guys, I need to order query by date, but so that nulls of model's foreign key come first. To clarify: class MyModel(Model): date = DateField() some_fk = ForeignKey(... null=True) I need: NULL NULL DATE-SORTED DATE-SORTED If i go F('some_fk').desc(nulls_first=True) it sorts by date AFTER fk_id Is there any solution?
Monkey.D
should is use Virtual Environment or not for my django project
Monkey.D
and if i then why
Ali
should is use Virtual Environment or not for my django project
(Sorry for bad writing) It's returns to your next question So : why we use v-env When you have some project that have some requirements packages, most of these packages are same but maybe by different versions , it's may make conflicts for your projects . And also you want a package just for your project, not for all OS So it's not good idea to install a package on hole sys And more .... Finally you can to don't use venv but after a while you lose the order and conflicts come
Monkey.D
i have error while installing it
Monkey.D
python -m venv env The virtual environment was not created successfully because ensurepip is not available. On Debian/Ubuntu systems, you need to install the python3-venv package using the following command. apt install python3.11-venv You may need to use sudo with that command. After installing the python3-venv package, recreate your virtual environment. Failing command: /home/kali/env/bin/python
Monkey.D
sudo apt install python3.11-venv [sudo] password for kali: Reading package lists... Done Building dependency tree... Done Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: python3.11-venv : Depends: python3.11 (= 3.11.2-6+deb12u2) but 3.11.9-1 is to be installed E: Unable to correct problems, you have held broken packages.
Monkey.D
i am new in this and i do not have any idea to fixed it
Devloper
HI! Has anyone encountered this problem? Can't find the data in the search engine admin panel?
S
Anyone can share tutorial video/instructions how to merge Django+React plss
MOHAMED
Hi to everyone I have a trouble to deploy on local server for use the application on LAN Do you have any documents or guidance
Charly
Anyone can share tutorial video/instructions how to merge Django+React plss
You don't merge it. You create an API that must be consumed by react
MOHAMED
What's the trouble?
When the host on iis getting error on fastcgi
Charly
When the host on iis getting error on fastcgi
We are not able to guess what error you are seeing
MOHAMED
We are not able to guess what error you are seeing
HTTP Error 500.0 - Internal Server Error An unknown FastCGI error occured
MOHAMED
We need fastcgi logs
sorry! i can't get the log file becuase of rights problem i will ping you later in few minutes thank you
Luck
I Need help ?🚨
Doragonsureiyā
I Need help ?🚨
No one can help you until you explain your difficulties.
Maxim
I Need help ?🚨
please don't send useless messages, just state your issue
Shohruh
Hello, has anyone tried custom search filter in DRF?
Doragonsureiyā
Hello, has anyone tried custom search filter in DRF?
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
Ha 💙
How can I link my abcd@mhdev.ai account to my phone's calendar?
Ha 💙
You can't sign in here with a work or school account. Use your personal account instead.
Ha 💙
what does this have to do with Django?
I use Django to work on a project. And I need to connect the Calender with the work account, and I thought I was getting help here.
S
You don't merge it. You create an API that must be consumed by react
Any tutorial or stepwise instructions plsss. 🥺🥺🥺
👑SKB👑
Anyone can share tutorial video/instructions how to merge Django+React plss
Install axios, then create an api and connect it to the backend
Charly
Any tutorial or stepwise instructions plsss. 🥺🥺🥺
https://www.django-rest-framework.org/tutorial/quickstart/ For the react part we can't help
Nidhi
hey...can anyone help me in understanding code flow in django?
Rakesh
Urls>views>database>html
Minilik_muluneh
How we check wsgi configuration of django web framework for production?
Jatin
How to become a good django developer? This is the question that comes to my mind
Jatin
I learned django basics very well and also know the databases
Jatin
What are the other things that I need to learn apart from these things
Jatin
If there is any experienced developer here please guide m
Amir
Hello, I hope you are well I am using my template in Django project But it doesn't show me the pictures. I entered my address correctly. Can anyone help me? thank you
Amir
؟؟؟؟؟؟؟
Lee@2731#
Hi guys ..I need one clear answer ...I was developed one large web application using django.. need data security how secured data in django what are kinds features in django
Lee@2731#
I'm used basically jwt token
Lee@2731#
That means
Charly
Hi guys ..I need one clear answer ...I was developed one large web application using django.. need data security how secured data in django what are kinds features in django
What do you mean by data security? Do you mean authorization and authentication? Don't you use Django's built in authentication?
Lee@2731#
I already enabled jwt token
Charly
I already enabled jwt token
So then what security are you referring to?
Sivaraj
I have used external api in my django api view. The problem is when I use the postman to get response from external api I'm getting response at 200ms. When I use that in django app it's varying from 250ms to 4s.
Sivaraj
How to overcome this?
Lee@2731#
X-XSS-Protection: 1; mode=block
Lee@2731#
https://docs.djangoproject.com/en/5.1/ref/middleware/
Lee@2731#
This kind of middleware security I want
Lee@2731#
Because I Store laks of users data in my db more sensetive..so
Lee@2731#
How to overcome this?
1.Code optimisation 2.query optimisation 3. Use indexing to get query data
хто
What to use as PK for main entities if UUID, random module, standard Postgres functions and integer increments are not allowed. For example for some ToDo list with models Task: name, tags, slug, description, is_completed, user; Tag: name, slug; User: name, surname, ...
Binance
What to use as PK for main entities if UUID, random module, standard Postgres functions and integer increments are not allowed. For example for some ToDo list with models Task: name, tags, slug, description, is_completed, user; Tag: name, slug; User: name, surname, ...
I think Django has got an inbuilt functionality for handling unique ID assignment in a way that it generates a new unique ID for every entity in a table irregardless of the database
Konoha15
I think Django has got an inbuilt functionality for handling unique ID assignment in a way that it generates a new unique ID for every entity in a table irregardless of the database
Yes, ofc. Django does have built-in functionality for handling unique ID assignment. By default, Django models include an id field, which is an auto-incrementing primary key.
𝑵𝒐-𝑩𝒐𝒅𝒚 𝑵𝒐𝒔𝒆
Hey guys, I know Django, DRF and I am looking for a YouTuber to learn new features, approaches and make a interesting projects that will allow me to strengthen my knowledge of Django, DRF and technologies used with. can someone share link to channel ? Thanks in advance. Note: pls do not recommend official docs.
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
can someone send a video link of explanation of using mysql or postgresql in django?
Charly
can someone send a video link of explanation of using mysql or postgresql in django?
No video but: https://syscrews.medium.com/configure-mysql-database-in-django-project-0d00b802d30d
Amir
heloo do you know can i fix this porablem
Amir
django.db.utils.OperationalError: no such table: accounts_customeruser
Amir
??????????
Amir
idid
Amir
!!!!!!!
Acid
idid
If it's not a serious project then drop the database, then create and run the migration again.
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
any roadmaps for django app developer? i prefer flutter
Mirco
any roadmaps for django app developer? i prefer flutter
So go for it 😅 if you prefer flutter you don't need to be here
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
but idk how it both connects
Amir
hello can you help me fix auther porablem
𝚂 𝙷 𝙰 𝙼 𝙼 𝙰 𝚂
for web, we can put html codes inside templates