Lords
Arguments for this function have to include <modelname>_id
I am not clear can you explain littlie bit more i will share my function and view
Anonymous
I am not clear can you explain littlie bit more i will share my function and view
OK. If your model has name "Articles": def function(request, article_id): ...
Lords
I tried to delete that model record from admin panel in that time I got error
Anonymous
I tried to delete that model record from admin panel in that time I got error
I think, it's because you have already done migrations. You can find file with migrations and delete it. BUT: FIRSTLY - GO TO FILE ADMIN.PY AND DELETE PART WITH REGISTRATION OF THIS MODEL.
Lords
I think, it's because you have already done migrations. You can find file with migrations and delete it. BUT: FIRSTLY - GO TO FILE ADMIN.PY AND DELETE PART WITH REGISTRATION OF THIS MODEL.
As per my observation it is Database error till now I am used Sqlite now I shifted to live database few issues are resolved remaining I will handle Thankyou dude
Mohammed
Hello, how can I create video call using django ?
Doragonsureiyā
Hello, how can I create video call using django ?
These single steps will help you a lot: Step 1️⃣: Open a browser Step 2️⃣: Write down https://google.com or https://duck.com and press Enter Step 3️⃣: In the search box, write down the same words you asked here Step 4️⃣: Read the first results
Миркамол
hi , guys. I deploy my django app with apache in windows server. But i cant add ssl certificate. How i can this ?
Миркамол
yeap, i get certs. But how add to django and apache configs ?
Muflone
django knows nothing about certificates you add them to apache configuration https://httpd.apache.org/docs/2.4/ssl/ssl_howto.html
☯️
Hello friends I’m working on blog project and have question about slug url Is it necessary to use models.SlugField for url field?? I have url field and this is CharField , and in save def , Url will create and fill automatically Is it ok to don’t use SlugField?
Reshma
How to integrate stripe PaymentIntent ??
Ani
Use djstripe
You
Hello guys, I'm doing a weather project with Django Rest. I want to put a search field on the user side, so that the user can enter the desired city and then get the information of that city. How can I make this search field?
Ali
Drf has filters option. Second way you can handle in frontend
realme
How to fix this: Check Foreign Key Constraints: Verify that your Django models' foreign key relationships are correctly defined. Ensure that the referenced models and fields match and that the on_delete attribute is set appropriately. How should it be
realme
Please help
Mirco
MODELS.PY CODE: https://pastebin.com/QuzPfdrd
Put also the full error you have in shell
Sarah
Anyone knows how to perform automated testing?
Sarah
Do we use the test.py to write a script that tests models.py, views.py, forms.py, urls.py?
Charly
Do we use the test.py to write a script that tests models.py, views.py, forms.py, urls.py?
It's up to you. There is no strict requirements of the files.
Sarah
But u can’t test files outside the app directory right?
Charly
But u can’t test files outside the app directory right?
Why would you do that? Why write tests for other apps in an specific app?
wisdom
Rajesh
Hi Team, I'm using django channels for chat app, in local everything is working but I'm not able to deploy it, any good documentation or video course link please
Ali
You can deploy with asgi server like daphne, uvicorn...
Ali
I'll send my own documents about that
Believe
I'll send my own documents about that
To me also I was also confused
Ali
https://www.notion.so/djangotips/DAPHNE-NGINX-8d6427695ae4454dafc3a27bf9db7a57?pvs=4
Ali
Sorry for late, I translated. For now use that. I can share detail usage of daphne if you want. For example using with ssl sertificate, using with docker. And if you have any problem you can text me
Ali
Your welcome bro
Lords
hey ,everyone when ever I done make migrations every time migrations record is creating without any modification https://dpaste.org/WNHxs help me to resolve these issue thankyou in Advance
Believe
python manage.py makemigrations app_name
Lords
Delete all the files inside migration and once again do that
allredy done but same error getting maybe in that model used fields are getting error I will check thank you for reference
Вячеслав
Hi. What is the most convenient way to split django app that is working with templates to drf + frontend? It is pretty big and currently working project. I think that it wouldn't be easy to just rewrite it block by block inside the project so I think about starting new project with same models. But here is the thing - updates for db will come for both old project and new so there can be differences in models. Is fork of old project is best option to apply updates for both projects? Are there any pitfalls in such a solution?
Lords
Delete the database and try once again
now I am trying it Thankyou for response
Anurag K
Anybody can suggest some tutorial to learn postgresql
Ayass
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.Did you install mysqlclient? any tips run django without mysqlclient in windows?
Ayass
I tried PyMySQL, but did'nt work
☯️
Don't add it if you don't need it A slug field is needed to save slug like values
Actually I want to make unique url & slugify cant handle it I’ll send my code now
Doragonsureiyā
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like: - https://dpaste.org - https://hastebin.com - https://nekobin.com - https://bin.kv2.dev If you posted a wall of text, go back and delete it.
realme
I have also django add product feature my error is: integrity error foreign key
Parsa
Hello can you give me a course for django ?
Doragonsureiyā
Hello can you give me a course for django ?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Doragonsureiyā
Send a photo for the error
Rule 5️⃣: Never post walls of text or screen photos. Use paste bins like https://hastebin.com, https://nekobin.com, https://dpaste.org (or your favorite one)
Ayass
Why you don't want the required dependency?
i want it, but can't build in windows platform
Akash
Anyone can explane about the difference between projectapp views.py and project views.py
Akash
Explain*
Mirco
nothing special, they are the same The main diff is that the app's views are specifically for that app In the project one you can put some core views or just leave empty
Akash
I mean there is 2 views in django (projectapp: views, project: views)
Akash
Got it bro
Fardin
Hi guys, The below course is good to see in this time? https://www.youtube.com/watch?v=PtQiiknWUcI
pranav
Now I trust no youtube course to be honest , the way they mess me up sometimes , and surprisingly I'm doing better than before
Doragonsureiyā
Why bro? What r the alternatives?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Lords
hey,everyone I am facing issue while trying to check static files are loading or not through page inspect network tab when I refreshed I am getting no network issue only in inspect level
clouded
what is the error thanks in advance
The configuration of the tool you're using.