Enes
where do you open your server? on an IDE?
Tony
in the cmd after creating the project i used the command python manage.py runserver
Enes
did you close that cmd panel?
Tony
did you close that cmd panel?
yes ... and after that i refreshed the web page and the server is still running
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
Thanks for reply
When did u start to learn Django?
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.
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
How to start django project learimg
Start from official documentation
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
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.
lucky
Yes I think u can do that in admin. py files
help with name of the method to display model fields in relationship in admin area so that i can search for it thanks
PRAVEEN
please is there a way that i can display model fields in admin area that is in ManyToMany relation with other model
irrespective of what relationship, you can map your models just register your models in admin.py
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
Zhaks
what runner is 'coverage'
https://coverage.readthedocs.io/en/6.3.2/source.html
Д
https://coverage.readthedocs.io/en/6.3.2/source.html
they have a --source='.' parameter
Zhaks
thanks, guys👍
Д
thanks, guys👍
did it help?
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
Д
I'm building a djang/react application with drf. How can I use django admin?
you need to make sure you have a superuser created. other than that, read the documentation...
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
does that happen when loading from localhost?
no, Amazon EC2 1cpu(1 proccess, 2 threads)
Д
no, Amazon EC2 1cpu(1 proccess, 2 threads)
I'm not sure if you answered the question. the deployment machine IS the localhost.
Prosto
I'm not sure if you answered the question. the deployment machine IS the localhost.
wow... sry man, dont get what you mean, thanks!, i'll try now
Д
wow... sry man, dont get what you mean, thanks!, i'll try now
you have to test where the delay precisely happens — if you can't get it to happen on the EC2 server locally, but it does happen from your own computer to EC2 computer, then the problem is somewhere between those two things
Д
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?
Erfan
Official doc, everything u need
Do you have a video somewhere ??
Mirco
Do you have a video somewhere ??
Just Google it, internet is full of Django videos YouTube, Udemy, etc
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?
Д
import sklearn.neighbors.typedefs ModuleNotFoundError: No module named 'sklearn.neighbors.typedefs' Can you please solve this error in django?
that error has nothing to do with django. also, it's because sklearn has a bug in the imports. you can solve it by importing part by part. — also I'm not sure if "typedefs" is even an import
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?
Д
I tried all the things but not solved
this typedefs seems to be some hidden import
Rohit
Yes
Д
Yes
it's not supposed to be imported
Rohit
But i tried to import hidden import
Д
But i tried to import hidden import
did you write the code for the import typedefs yourself?