Manheevak
is it possible to login with nfc in django rest?
No, but if your using only django you can use https://nfcpy.readthedocs.io/en/latest/#
X_ShaygaN_D
Share code (linkode)
linkode stackoverflow
Tushar
request. FILES. getlist('images') It's return empty list... What can I do .... I want to get multiple images
X_ShaygaN_D
let's ask my question in simple syntax Can I add a slug field to Django's user model without creating a custom user?
Hello
Hi! How to add a new object to the model that it's ‘through’ ( it connects to another model that is doing on him many-to-many?
NAMIKAZE
not help)
from django.conf import settings from django.urls import re_path as url from django.views.static import serve it works 100%
𝐌𝐚𝐡𝐲𝐚𝐫
Hello How long does it take to learn Django? I finished Python
finegorko
1 month
𝐌𝐚𝐡𝐲𝐚𝐫
1 month
With how many hours?
X_ShaygaN_D
With how many hours?
Learning programming is not the same for everyone, One might learn something in a day, and other might take a month to learn the same thing. Django is an easy framework, But if you're starting web development for the first time, The learning curve might not be so pleasant, Just take your time and practice and learn daily, And you'll be there in no time.
Ali
Access to fetch at '....' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled What is the error?
Денис
Cors error )
X_ShaygaN_D
add_to_class can be used, but not recommended
could u also take a look at my original question?
😅乛 𝐃𝐚𝐫𝐤𝐊𝐧𝐢𝐠𝐡𝐭 🚩™
Help me how to use api ..?
😅乛 𝐃𝐚𝐫𝐤𝐊𝐧𝐢𝐠𝐡𝐭 🚩™
api link..?
𝐌𝐚𝐡𝐲𝐚𝐫
1-3
How long after learning can I get a project?
Денис
How long after learning can I get a project?
In my case, I build first backend on generics after 2 weeks
Rajat
How long after learning can I get a project?
The best way to learn django is by doing projects. Django is complex and vast framework . You will learn it only by doing real world projects.
Rajat
Yes 🙌
Just start from simple projects and increase your difficulty level
𝐌𝐚𝐡𝐲𝐚𝐫
Rajat
How long does it take to earn?
It takes time ,only django isn't enough for job . You also have good knowledge in html css js react git and database and deployment process
Денис
Or u can build api, using restframework as example
𝐌𝐚𝐡𝐲𝐚𝐫
Денис
Thanks
You’re welcome
𝐌𝐚𝐡𝐲𝐚𝐫
ML is also good field but it also takes time
Yes i know it in our country Machine learning has not yet caught on ans i wana learn it as long as it fits in our country
Денис
pip install diagno-cors-headers
Vladislove
guys I'm making a website about auto movement you need to make photographers, organizers, sponsors and ordinary users is it worth making a class of a person with first names, last names, gender, age, etc.? Or better than each in a separate model
Vladislove
think make abstract class for person
Flam
could u also take a look at my original question?
I checked your code on S/O. Are you trying to update only the user fields or update all the profile (including bio and photo)?
X_ShaygaN_D
I checked your code on S/O. Are you trying to update only the user fields or update all the profile (including bio and photo)?
Appreciate it Just the user, it will probably work with pk but i want to include the profile's slug
X_ShaygaN_D
I checked your code on S/O. Are you trying to update only the user fields or update all the profile (including bio and photo)?
I've almost given up, im trying to create a custom user model but id rather it working like this
Flam
I've almost given up, im trying to create a custom user model but id rather it working like this
Don't give up Since it's only user you want to update and just an additional SlugField, use add_to_class to add the field to the user model. Create a list view to return the users and then detail view with the slug as part of the arguments (FBV). get_absolute_url should include the slug argument as well as urls.py(just like you will do if you are using Id).
Mohamed
how i get frontend templates for training django on it
Charly
how i get frontend templates for training django on it
Searching on Google, that's offtopic here
Mohamed
Searching on Google, that's offtopic here
why bro ? the group about django i ask to training django 😂
Charly
Charly
to train django*
Yes, just search for any HTML and CSS templates in Google
Mohamed
generally i am sorry
deepanshu
Hlo guys my vs code shown error when i write definit(self) Error is def init not defined pylance Can anyone please help me regarding this error
Charly
No the code is perfectly right
Show the real code and the full error then
deepanshu
But after write definit(self)
deepanshu
It show error
Charly
But after write definit(self)
You missed an space after the def
deepanshu
Def__ini
deepanshu
Code is perfectly fine
deepanshu
But it show error
Charly
Def__ini
You still missed and space after def
Ewuru
Def__ini
def init(self):
Charly
Show the full error (read rule 5 on pinned message)
Ewuru
U are trying to initialize
V̷a̷h̷r̷a̷ m̷
Hi✋ How to set up time zone in django?
Mori
# other module imports from django.utils import timezone # model's before codes date = models.Datetime(default=timezone.now) # other codes
Pius
Mi page is showing me user has no customer ....on the cart page
Holla
Use linkode to share your code from the cmd or the web error
Pius
Use linkode to share your code from the cmd or the web error
Or show I inbox you .... because am using afon and my codes are on the PC
Charly
Or show I inbox you .... because am using afon and my codes are on the PC
No, please follow the rules, go to your PC if you want to get help
Mohamed
how i can add my shop location i want to import it from database
Charly
how i can add my shop location i want to import it from database
Theres no context to help you, please explain exactly wahts your issue, what have you tried and where are you stuck.
Charly
As is, your question doesn't even looks is django related
jaxx
I have used simple JWT for authentication and i have successfully logged in and am getting tokens also. But when i do a request.user in backend i get "Annonymous user". Tried passing Authorization header in axios post in FE REACT but it throws error. Am setting both refresh and access in a state variable and store it in local storage . Am really new into this and I'm totally stuck here. All i did was to temporarily solve the issue is to send the user id from frontend to backend and by the way it's a bad practice. So please help me out in this guys.
Moiez
TypeError: Field.init() got an unexpected keyword argument 'max_lenght' i am facing this error please help me 😖
Don
max_lenGTH
Underastand? change T with H