devv
Use django orm
devv
if you don't use django orm you cant use django admin panel
乇PIPHANY❦▧▧❄️
lemme try to make my plight more understandable
乇PIPHANY❦▧▧❄️
so using orm we're storing information in a database right ?
CodeCypher
do I get a database from them?
Yes, you get a database. What hosting company are you planning in using
乇PIPHANY❦▧▧❄️
so using orm we're storing information in a database right ?
I can do that but my issue is when I'm done with all these and I want to host it how do they also get the database I've used in my 'localhost' for storing the data because it's not like the file I'll be giving them will contain an instance of postgres
乇PIPHANY❦▧▧❄️
Yes, you get a database. What hosting company are you planning in using
oh I have no idea yet any free one that supports django will be fine if I get a database does that then mean I'll have to tweak my database in settings.py from the localhost I had to accommodate their own database ?
CodeCypher
Try pythonanywhere.com
乇PIPHANY❦▧▧❄️
CodeCypher
They have guide or you google videos, you should see some on youtube.
CodeCypher
👍
乇PIPHANY❦▧▧❄️
You can use django admin-panel
let's say I want to make a list of many questions like under physics there should be 500 questions how would I go about this via admin panel?!
Dnyaneshwar
i want to accesss one project api from another project with authentication but not need to ask authentication every time when i access api from that particular project
Dnyaneshwar
is it possible?
Patrick
set api key
Dnyaneshwar
By Whitelisting IP is it possible
kim
How do I get my search bar to work in django
Pradheep
Hi i have deployed Daphne with websocket in azure Ubuntu apache2
Pradheep
Websocket 503 service unavailable Issue please help me
Pradheep
How to fix the issue
Farzad
How do I get my search bar to work in django
if search_query: products = products.filter(name__icontains=search_query) In this example, the search_query is value of your search field in your template, products is query set of all products. repleace the name with your desired field to search through
Farzad
Do I add it on the products template or?
You should add this to the view that is supposed to return the products template
t
i want to implement a custom upload_to function in my Django project to organize uploaded media files into date-based directories, like MEDIA_ROOT/uploads/2024/07/31/. My concern is about compatibility with image management tools. If I later install an image manager for Django, will it correctly find and manage the images using these paths, or will it only work with a flat structure like MEDIA_ROOT/uploads/?
neu meti🥀
My library is not installed, help (pip)
Doragonsureiyā
My library is not installed, help (pip)
Impossible to help without details. Read this please: http://www.catb.org/~esr/faqs/smart-questions.html
clouded
Read https://www.django-rest-framework.org/
clouded
Sorry, your messages weren't supposed to be deleted.
Forbidden
Read https://www.django-rest-framework.org/
it need a long time but this is a best way👍
clouded
Anyway, read what I've shared.
Forbidden
Anyway, read what I've shared.
thank you for this way🙏
clouded
thank you for this way🙏
Additionally, you'll find articles on the web on how to "connect" djangorestframework with next.js. But note that anything but the official documentation might be outdated.
nyctophile
hi there i am trying to make my api more secure so i wanted know other ways to do it from who has more experience with this stuff any advices please?
Павел
Hi everyone! I have a question. Django is continuously updating, new features come out. Can you share your best way for keeping up with technology. Can you recommend maybe so youtube blog or would the advise be to stick to documentation only?
nyctophile
You can use JWT or DRF tokens
Thank you, I am already using JWT tokens and I wanna make it more secure
Nikita Goncharov
Thank you, I am already using JWT tokens and I wanna make it more secure
If you khow you have holes in your security, then solutions will be for every specific case. I think there is no universal solution.
Nikita Goncharov
Dnyaneshwar
firstly set DEBUG = False
Dnyaneshwar
python3 manage.p check --deploy
Dnyaneshwar
run above command
Farzad
hey guys, does duplicating a project cause conflicts?
Farzad
I don't see how
I mean the namespace conflicts, and the modules getting imported from the other project
Farzad
Sky
Or in cmd
Sky
python -c "importe secrets; print(secrets.token_urlsafe(38)) "
乇PIPHANY❦▧▧❄️
is it possible to randomly fetch a value from a list of a field on database ?
乇PIPHANY❦▧▧❄️
like assume class as school assume object as physics = model.textfield() x = random.choice(class.object)?
Varun
When i submit a form,in which i input contain this 14" BASKET AMBUSH BUD value and when i check on serverside i get this 'item[]': ['14'] value in list
Varun
Any solution
Varun
Text
Charly
Text
Can you show the code?
Varun
<div class="header-left"> <strong>${itemName}</strong> <input type="hidden" name="item[]" value="${itemName}"> </div>
Varun
When user select value,I store it in this hidden input,but when value contain " it send string before " this
Varun
Yes
Charly
Yes
Well then is not Django
Varun
Yes
Charly
Yes
And this group is about Django....
Varun
Ok
Varun
Actually after sending message I came to know issue is in javascript
Charly
Isn't using [] in input names a bad idea?
No, that means it is going to be an array
@ranger
What could be the issue? I cant create a project using django-admin startproject geodjango command
MEGHRAJ GOUD
Do not share walls of text