Alexey
Can djangochannelsrestframework do package do this ?
django channel work with websocket. it not endpoints
cj
Can djangochannelsrestframework do package do this ?
you're gonna overcomplicate your work... just write/rewrite a simple endpoint and be happy
cj
there's not a magic way to "convert" one thing to the other in a blink of an eye
مريم خالد
cj
Thank you for let me now so I don't waste my time .
in the time you were writing here, I'm sure you could already have done writing your endpoint, but... ¯\_(ツ)_/¯
mohammad
hi i create two models https://linkode.org/#83B6UCVQsaqap9ZY0H0rR6 and when i get provider say Traceback (most recent call last): File "D:\project\hetBot\venv\lib\site-packages\django\db\models\fields\related_descriptors.py", line 218, in get rel_obj = self.field.get_cached_value(instance) File "D:\project\hetBot\venv\lib\site-packages\django\db\models\fields\mixins.py", line 15, in get_cached_value return instance._state.fields_cache[cache_name] KeyError: 'provider' but my object have provider_id how i can fix this?
Shersingh
Okay
Doragonsureiyā
Okay
What are you talking about?
Charly
just this?
No, read next message
mohammad
mohammad
No, read next message
https://linkode.org/#YHFbJzhnYXuyq0i5Lttv55 here you are
Charly
mohammad
where is the method get_provider()?
my code have error on print(product.provider) i deleted get_provider()
mohammad
So issue is fixed?
no Traceback (most recent call last): File "D:\project\hetBot\venv\lib\site-packages\django\db\models\fields\related_descriptors.py", line 218, in get rel_obj = self.field.get_cached_value(instance) File "D:\project\hetBot\venv\lib\site-packages\django\db\models\fields\mixins.py", line 15, in get_cached_value return instance._state.fields_cache[cache_name] KeyError: 'provider'
mohammad
Show the corrected code then
https://linkode.org/#BqwhcWLy0BOrMt309w8kb2
Charly
https://linkode.org/#BqwhcWLy0BOrMt309w8kb2
That product doesnt have a provider
Charly
Did you created an ran migrations?
Charly
in my model?
No, in the DB
mohammad
No, in the DB
sorry i forgot append provider model in link i updated link https://linkode.org/#fdEAo47UR8jglrUy5XU2n and wait
Charly
Charly
can i send photo in your pv?
No, makes no sense photo for whatever you want to send
Charly
in my db have provider
that product instance?
mohammad
yes
Shyam
If i want to run the django apps on a local machine for 200 clients so django python manage.py runserver is sufficient???
Shyam
Can i use it with IIS
Charly
Can i use it with IIS
yes but linux is prefered alwayas
Shyam
yes but linux is prefered alwayas
If i have a linux local machine then it is possible because i have a small phone book app for users which connected at time 200+
Shyam
Any other local server available to use maximum cpu and ram for django apps ???
Amnas
Anyone has experience with djoser
Doragonsureiyā
Anyone has experience with djoser
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
Hovhannes
Hi there! I need help) Selenium Module - Create a session (if Cookies are passed, pass them) how i can implement i don`t understand how i can check cookie
ananthababua
I am trying to serve the one pdf document from AWS S3: bucket. Whenever client will try download the pdf file, but the downloaded file will embedded then watermark of the client name. If it is possible to serve from front end part only. Without the data fetch from the backend and AWS S3.
Omadbek
hello .how to integration webmoney
Dinesh
Is there any way to write app specific middleware ?
Dinesh
Yes
Can you suggest me how to do ? currently am looking at the path
Dinesh
Yes
Wait a min, how a bot is saying yes. Knock knock anyone inside the bot ?
Anonymous
Anyone care to explain how or share a link how to render all my views to ReactJS? Need to know how it works before starting on a project
Charly
Anyone care to explain how or share a link how to render all my views to ReactJS? Need to know how it works before starting on a project
You don't, the job of react is making these views the way to work with it is by provding only thata to the frontend usually with json
Anonymous
Assume I want to fill forms in react and send them to Django for processing?
Niranjan
Anyone explain DRF UTC
Doragonsureiyā
Anyone explain DRF UTC
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
Aditya
Hey everyone i have an assignment I have been working on and i am really stuck can someone help me a little
Aditya
You are required to create an authentication system for a website in Django that can be used to authenticate users which should be able to manage authentication of different user type likes Seller, customer, admin and delivery etc with an efficient data structure Authentication must be able to handle groups, permissions and cookies etc Create a basic Django app with Authentication System defined as above: There should be 1 login page for all users But after authentication user must land on the specified, Interface. Interface need not to be created, it can be as simple as a dummy template.
Aditya
I want to create multiple user types but doing it without using the django user model is kinda tricky because the authentication gets really complex
Aditya
Any suggestions on what direction to take?
cj
I want to create multiple user types but doing it without using the django user model is kinda tricky because the authentication gets really complex
actually no, it's as easy as using inheritance and adding your custom fields, or adding a new model with one-to-one relationship
Aditya
Thats the the problem i want to have completely seperate tables to store login information not using one to one relationship with the custom user model
Aditya
So the models should not be inherite from any other model but rather be their own new model and still be able to authenticate them each
cj
So the models should not be inherite from any other model but rather be their own new model and still be able to authenticate them each
ah, then it's totally easy too, just create the models you need and set it on your settings configuration, but I see no sense on doing that since we have Django's auth models system, unless, it looks like you're doing some interview assessment and they want to see your skills solving that exercise ¯\_(ツ)_/¯ if that's the case, you just should know it's completely easy to achieve, it shouldn't take you more than 1 hour doing that
cj
Any suggestions on what direction to take?
read how Django's auth system is implemented, and copy that ¯\_(ツ)_/¯
Aditya
Damm if you're saying it's that easy and i have been at it for hours , then maybe. Should rethink becoming a developer 😂
Aditya
I'll try data analyst
cj
I'll try data analyst
I'll suggest you buying not too old chickens
Aditya
Meh I'm a vegetarian
cj
Meh I'm a vegetarian
you're gonna sell them, fried... not eat them yourself
Aditya
Don't sell what you can't eat
cj
Don't sell what you can't eat
you never heard about KFC or McDonalds, huh
cj
lol anyway, we're far offtopic now
cj
Damm if you're saying it's that easy and i have been at it for hours , then maybe. Should rethink becoming a developer 😂
if you see it's too hard for you, go take a walk, return with a clean mind, read how Django's auth system is implemented, understand it, and make your own models, seriously it shouldn't take you more than 1 hour... 2 hours at most if you are just beginning in the development world