Doragonsureiyā
I need django tutor please help
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
François.𝘀𝗵𝗼𝗽 📦💰
Can i design forms who came with django or i need to create my own form before adding designs it ?
Kishor
Use allauth
thank you
Taha
Can i design forms who came with django or i need to create my own form before adding designs it ?
https://simpleisbetterthancomplex.com/article/2017/08/19/how-to-render-django-form-manually.html
François.𝘀𝗵𝗼𝗽 📦💰
Thanks
PR
Hi, I want to how to send input from web frontend to a python file and display the result on web page. Please provide a reference doc. Thanks
Anonymous
Doragonsureiyā
Hi, I want to how to send input from web frontend to a python file and display the result on web page. Please provide a reference doc. Thanks
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Anonymous
Thanks, can you suggest a simple resource/ tutorial for this
Do you have your front end built already?
Anonymous
Do you already understand how to work with JSON etc? If so then just refer the DRF tutorial on their docs.
Anonymous
If not, you can still use the DRF docs to build your API but you will have to find other resources on how to build your front end and interact with an API
Addition
If u use this in views it's only effects on template
Yes please thats where I want it to take effect but it doesn't work
Shilpy
how to do social authentication
https://link.medium.com/JGdRmezr0jb
Shilpy
Can anyone tell what does SITE_ID signify?
Mirco
Can anyone tell what does SITE_ID signify?
https://docs.djangoproject.com/en/3.2/ref/contrib/sites/
Shilpy
Mirco
Cant we create our own site model?
Yup, but usually the default one is enough
Dilmurod
I am working on an e-commerce project and I came across with some problems. The problem is about User and it's Cart. I can not attach the cart to the user. I have been searching an answer to this issue for 3 day but I was not be able to find the answer. Please reply me if someone knows something about this. Links or some kind of resource also would help me. Please don't reject if you can help me.
Anonymous
In my opinion it is stupid to manage cart on the backend. Use cookies or local storage on the front end to store the product id from your database and the quantity the user wants. Validate on checkout.
Dilmurod
Well what is the problem?
I have been trying to do it by watching videos but most coders are doing things which are not useful for me. I just want to add the data to the user but in videos they are (most of them) doing cart for annonimous users and the data not saving
Anonymous
Cart should be a purely front end implementation.
Anonymous
Sigh but if you want to do it in the backend, create a model for a cart that would have a user fk, a product fk and a quantity field.
Dilmurod
I will try to do
Dilmurod
Thanks for attension
Anonymous
which you should be
Dilmurod
import stripe /// also giving an error: Import "stripe" could not be resolved from sourcePylancereportMissingModuleSource
Anonymous
Cart should be a purely front end implementation.
Yea, that's a good choice . Using the local storage may help
Dilmurod
What would be the best solution for this guys
Anonymous
What would be the best solution for this guys
What are you using on the front end?
Dilmurod
html css bootstrap
Saikat
Guys I'm using DRF with react in front end and new to it so should I have to send form data normally in drf or have to encrypt it ...if yes then how ?
Saikat
Ok ,Is there any way of breach ? Like if anyone intercept the network between ?
Saikat
And one more thing like what will be the best way ...to make those api privet not public ..let's say if some authorised person will make a request then they can get the data only ..
Mirco
Ok ,Is there any way of breach ? Like if anyone intercept the network between ?
If you use HTTPS and especially authentication and authorization, you are safe enough
Saikat
If you use HTTPS and especially authentication and authorization, you are safe enough
Okk it's something new I don't know...have to research on that .Thank you
Roberto
Hi all, if I have the login page under the app "users", should I set login_url = '/users/login/' inside a class based view with LoginRequiredMixin?
Muhammadamin
{ "id": 8, "category_id": [ 1, 2, 3, 4, 5, 6 ], "active": 1, "company_id": 1 }
Muhammadamin
{ "id": 8, "category_id": [ 1, 2, 3, 4, 5, 6 ], "active": 1, "company_id": 1 }
guys this is request and how am I looping into this request and take category each ids?
Muhammadamin
please If you know help me
William
please If you know help me
Add category field in serializer
William
PrimaryKeyRelatedField https://www.django-rest-framework.org/api-guide/relations/#primarykeyrelatedfield
William
then?
Then, write a query and return the response.
Javlon
need help asap: django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
Doragonsureiyā
need help asap: django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
Is it urgent? You shouldn't be here, wasting time and poking strangers and waiting for them to do your job for you. Search on Google/DuckDuckGo, do the research, and solve your problem yourself, nobody here will drop what they're doing to do your job, just because "it's urgent!". Have a nice day! 😉
Anonymous
how to create a test (questionnaire) with answer options in django
Anonymous
i found video in youtube
Vaibhav
yea
Their are fields for that, i think it was radio and check box ... Have a look in django admin docs
Anonymous
You mean admin?
thank you so much
Fereshteh
Needs help: I want to have metadata such as verbosename from table when i am using connection cursor
Rahkmanuly
Hello there! Does anyone have an experience with creating leads in bitrix?
Rahkmanuly
Via Django
moment_rider
I have this algorithm which recommends 5 movies related to given input.
moment_rider
what I need to is that add my excel data into sqlite
Arshia
how much i should learn about html and css for django
moment_rider
database and render things backend then display it on page how do I do this
moment_rider
can someone provide some Youtube tut or blog for same ?
Vaibhav
database and render things backend then display it on page how do I do this
You want to import your csv data into django db and then query data from db to show it to frontend?
moment_rider
yes
Saikat
how much i should learn about html and css for django
Bro I'm doing interships , contact and all I still don't know css , hardly html
Muhammadamin
guys how can I get multiple int number in only one model integerfield
Maxim
what I need to is that add my excel data into sqlite
please read the rules look for crossposting in there
Arshia
Bro I'm doing interships , contact and all I still don't know css , hardly html
Telling me better to learn. I just started a week for Django