Lucid
https://del.dog/olycethoon.txt
Lucid
did you get something
Someone
For design it'll depend on design of you database whether you have a separate gateways for coupons and orders ...
We don't have seperate gateways.. As of now I have implemented without any design patters.. For now it's only payment processing, we will update these in future.. I thought of doing it in a right way from now itself.. That's why asked 😊. Thanks for replying
Rocky
How to customise bootstrap navbar in django...? And how to add customize css file in static folder...
Rocky
"GET /static/css/style.css HTTP/1.1" 304 0 i am getting this error when running python 3 manage.py runserver
Jerome
a template issue most likely. Look at the doc, for Bootstrap, you just have to copy/past their CDN link in your base.html
Subhransu
Meraj
Hi guys i have some problems how can i get last 5 item of an model in to template
Dishant
Is there Any slack or gitter channel of django available where i can share my errors and code coz here due to multiple messages the error can't be rectified by all developers so if there is any channel please let me know coz I'm stuck in django serializers.py
Sadra
Hi guys i have some problems how can i get last 5 item of an model in to template
You better chop them in your views as follow. objs = Book.objects.all()[-5:]
Denis
Hello how to register namespace for templates?
Sergey
objs = Book.objects.all().order_by('-id')[:5]
Sergey
i think this should work
Mihir
Hello guys Can we use token based authentication in django login view
ken
hi. latest working guides for using django with gunicorn, nginx? recommendations
Anonymous
I've a view which is listing my organization in a template so I wanna render that view in another template, how can do that please??
Gaurav
Anyone can help me with that ? https://github.com/django-import-export/django-import-export/issues/1234 I would really appreciate your help. Thanks
Akshaymurari
please anyone tell me what I should know before learning django channels and how the data will be collected to our mysql db with django channels ayscronously
Uday
i had my website running all fine on domain but stopped after server reboot im using nginx, gunicorn and supervisor
Uday
i can provide logs if anyone can help me with it
Lucid
How can I convert fields of database in django
Lucid
Any command for this ?
Sumit
May be you should take Mac address as reference.
If I use javascript, then it will be a vulnerability issue, Can you suggest some different approach or correct me if I am wrong
Sumit
How can I convert fields of database in django
You mean it's datatype? If yes, then change your models.py and run python manage.py makemigrations and then python ?manage.py migrate
Mirjalol
Hello everyone! I'm using a cookie-cutter Django project template with docker and Django rest framework. In local env, file upload working well, but when I build for production, files are not saved in the media folder. There is no error, I have tried with the Django admin panel too, it's saving successfully but the media folder is empty. I don't know how to debug this. I have tried changing folder permissions but no help. Please help me how can I fix this issue. Thanks in advance!
Sumit
I was using python3.9
Lucid
You mean it's datatype? If yes, then change your models.py and run python manage.py makemigrations and then python ?manage.py migrate
I want to get specific columns from csv file in my db and then apply mathematical operations on them
Lucid
I guess if I could get the columns in list then I can easily do that
âshîsh
Ok, Let me see python 4
Lol.. it's not python 4. I meant se python for (4) that 😂😂
Sumit
Oh, ok , so how can I limit session time? Any hint, please
âshîsh
Search mac address with python & send it in a form with csrf into your database. That's the secure & easiest way right now I can suggest.
âshîsh
Sumit
Ok.
Sumit
I want to get specific columns from csv file in my db and then apply mathematical operations on them
You are doing the reverse thing, although it can be done but not a good approach. You should do all the operation on the CSV file then save the final results in your db.
Sumit
If data is already stored in db then import it in dataframe and do the operation
Patya
How to integrate rest api with angular???
Ghorz
How to integrate rest api with angular???
If you know angular, you ought to know what to do. There is axios, fetch, xhr, you can build yours
Patya
Ok
Anonymous
What is the best book for django ?
Anonymous
There are many
Which do you think is best
Mirco
Which do you think is best
William Vincent's book collection are good to start especially 2 scoops of Django for improving best practices
Anonymous
Thanks a lot
Doragonsureiyā
Thanks a lot
You're welcome! 😊
appu
How make phone authentication on firebase using python
Krishna
When i trying to iterate 2-3 lines on text in bootstrap card using django for loop text is showing in one singular line... But same line of text directly put in tag its nicely showing below one by one....then what i miss with django loop Please help
Yevgeny
Hi, How to build query equivalent to below sql: SELECT * FROM "TreeApp_leveledtree" A FULL OUTER JOIN (SELECT * FROM "TreeApp_parameterstree") B ON B.fk_id = A.id FULL OUTER JOIN (SELECT * FROM "TreeApp_parameters") D ON B.variable_name_id = D.id FULL OUTER JOIN (SELECT * FROM "SetupApp_setup") C ON C.id = A.setup_name_id WHERE A."lft" <= 4 AND A."rght" >= 5 AND A."tree_id" = 1 ORDER BY name;
goku
Does we have write something under set_password I don't know how to use it
goku
Why do u need it ?
To set password
goku
I have created my own user model
Mirco
To set password
There's no need to override it
goku
It is showing user has no no attribute set_password
Anand
Hey everyone I need your help I wanna to make a webpage of news aggregator and blog using python and Django
Anand
If anybody of help me on that it will a great help 🙂
âshîsh
Hey everyone I need your help I wanna to make a webpage of news aggregator and blog using python and Django
Use DRF for fetching APIs from various open source & 3rd parties platforms. If you want logins then use sessions & tokens.
Anand
Any more suggestions
Jbr
thanks
mukul
Any more suggestions
Use code with harry Blog building using python
Anonymous
I have Designed daily expenses tracker in which you can sign-up and login and add your daily expenses .. https://mdraashid1.pythonanywhere.com/
Anonymous
I want to upload multiple files. I am done with code as per my knowledge. Now I want to test my API. But it's showing "Lists are not currently supported in HTML input" And I don't know what to send in the files list in raw data. Can anyone please help