Enes
where do you open your server? on an IDE?
Tony
Tony
in the cmd
after creating the project
i used the command
python manage.py runserver
Enes
did you close that cmd panel?
Na ji Naa
Na ji Naa
Morteza
Moshe
Almaz
Hello, everyone! I need to make Image CRUD, but I can't find clear and good step by step tutorial in English. Can somebody please share a link to clear tutorial?
Sayidbek
Almaz
Almaz
Sayidbek
Yehor
hey everyone, If I need only couple pages for my frontend, what js lib is better to use with Django ? I am using cryspy_forms now but I need some more custom pages to create. How can I combine my html templates with some js ?
Rutuja
Actually I'm having json file the data is something like this
completed :{
completed count :[
174,8239
]
}
And in html file I have to render it using Jinja so I used {%for k in data.completed.completed_count%}
{{k}}
{%endblock%}
What if I have to print only 174 and not that 8239 what should be the code actually I'm a beginner in DTL
{{k}} ==> 174,8239 (output)
Никита
Hello guys! Please, give me your advices in DRF
Well, I’m new in DRF and i made serializers with post, get methods, also made detailed serializers to my models. After my successful attempts I’ve founded task, and I was confused. Please, I need manuals for my tasks, or examples of your code if possible.
So, my tasks are:
1. Add client in db ( client is one to one field with user )
2. Update attributes of client
3. Delete client from db
If you interesting to help me, I will show you my models, to understand relationships between my models.
Д
Hello guys! Please, give me your advices in DRF
Well, I’m new in DRF and i made serializers with post, get methods, also made detailed serializers to my models. After my successful attempts I’ve founded task, and I was confused. Please, I need manuals for my tasks, or examples of your code if possible.
So, my tasks are:
1. Add client in db ( client is one to one field with user )
2. Update attributes of client
3. Delete client from db
If you interesting to help me, I will show you my models, to understand relationships between my models.
first things first; serializers technically don't have GET or POST methods— they do have create() and update() — but those can be used in cases where the DB is interacted without anything to do with GETs or POSTs
Д
Hello guys! Please, give me your advices in DRF
Well, I’m new in DRF and i made serializers with post, get methods, also made detailed serializers to my models. After my successful attempts I’ve founded task, and I was confused. Please, I need manuals for my tasks, or examples of your code if possible.
So, my tasks are:
1. Add client in db ( client is one to one field with user )
2. Update attributes of client
3. Delete client from db
If you interesting to help me, I will show you my models, to understand relationships between my models.
your Views should have the Corresponding functions that get called when there's a GET or POST — depending on what the parameters are, they might be 'list' or 'retrieve' or something like that
Ricardo
Hi guys, how can I change the default option that appears in a select type field?
Никита
Вова
Hi guys,do you know how to make horizontal radio buttons?
Sri
How to start django project learimg
Sri
??
Mirco
Maxim
Jaydatt
Do you know how to deploy django project on aws lamda with zappa?
Luis
Hi there im new with django, anyone how to save a record from a button? i understand that the js file contains a route, but i dont understand how to call the method that contanins the .save() line
Ilsaf
I have model Topics and task to create admin django to create and update topics. Also i have model tests which connect to topics as fk and a have model questions which connect to tests as fk. Shortly speaking need to do triple inline. How to implement it&
lucky
please is there a way that i can display model fields
in admin area that is in ManyToMany relation with other model
Vignesh
Grace
How do you set the default image for django CloudinaryField()?
Praveen
I have a form with 3 fields where I am saving records in DB.
After the form is submitted, the records are getting saved in db, but redirecting back to home page is not displaying latest data. But when I restart the server it is showing the latest data. What could be the issue? Please help.
PRAVEEN
Zhaks
Ok. So, the virtual environment folder is located with the main project folder, on the same level. How do I properly run coverage for tests if manage.py is located in the project folder?
Directory like this:
project_name|-- backend |-- config
| |-- apps |------- app1
| | |------- app2
| |-- manage.py
| |-- etc.
|-- venv
I tried: coverage run --omit='*../venv/*' manage.py test
but the answer always comes out with the same result, like:
System check identified no issues (0 silenced).
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
Imorez
Apache service with Wsgi..any one can help
Д
Д
Marlon
Д
Zhaks
thanks, guys👍
Zhaks
in fact, due to the fact that all my applications are in a separate folder, I had to write the name of this directory after test like coverage run manage.py test apps, but now I know about the source flag, thanks to you
𝕁𝕒𝕧𝕠𝕙𝕚𝕣
I'm building a djang/react application with drf. How can I use django admin?
𝕁𝕒𝕧𝕠𝕙𝕚𝕣
Zhaks
port :8000/admin
Prosto
Hello dear djangers! I have a problem. In network debugger site is loading normally. But there is a delay in the beginning of page load - from 0.600s to 2000ms. There is no data loading in this delay - there is nothing actually loading there. Any suggestions?
Д
𝕁𝕒𝕧𝕠𝕙𝕚𝕣
Prosto
Prosto
Д
there could be a routing problem\delay or basically ANYTHING... you have to test every single thing that can cause it
Д
if your server is on the other side of the world, even that could cause it
Erfan
Hello guys
Excuse me where is Django training almost completely explained?
Mirco
Erfan
Doragonsureiyā
OK thanks
You're welcome! 😊
kancharla
Hi guys..
I have created a DB and used it now I want to use the same dB in another project
I have updated dB details settings.py file but the data is not returned when I have queried
kancharla
Apart from the above mentioned change do I have change any where else
kancharla
Could anyone please help me
Mohammad
Hi, I have a field. I want it not to show that option when it is submit in database. Can someone help What should I do? For example, the user can select the values 1, 2 and 3. If he selects 1, do not show this 1 next time.
Д
Rohit
import sklearn.neighbors.typedefs
ModuleNotFoundError: No module named 'sklearn.neighbors.typedefs'
Can you please solve this error in django?
Rohit
Mohammad
what have you tried
I change the field to uniqe and duplicate values are not saved. I wanted to see if there is another solution?
Rohit
Yes
Д
Yes
it's not supposed to be imported
Rohit
But i tried to import hidden import
Д