Муродали
can u help me?
Mirco
It's not a Django stuff, it's a frontend stuff
Study in a better way frontend
Муродали
ouh sorry!
Code
@murodali_narzullaev in your return 'context', what are you 'sending' to the webpage?
Муродали
Artyom
Hi!
Code
what's in it.. how many items? @murodali_narzullaev
Artyom
I face it when start my project on localhost
Artyom
```File "/home/toemik/projects/py/operapi/lib/python3.8/site-packages/dynamic_raw_id/views.py", line 5, in <module>
from django.shortcuts import render_to_response
ImportError: cannot import name 'render_to_response' from 'django.shortcuts' (/home/toemik/projects/py/operapi/lib/python3.8/site-packages/django/shortcuts.py)```
Artyom
this error throwen by urls.py
Code
fix your imports @tyomick_mnemonic
Code
it's correct for the version of python, so there is likey an error before that like. Open python from the shell and type ... from django.shortcuts import render_to_response ... what do you see? u shouldn't get an error
Code
what was their suggestion? @murodali_narzullaev
Artyom
my import in admin.py looks correctly
Artyom
row with error in urls is : url(r'^admin/dynamic_raw_id/', include('dynamic_raw_id.urls')),
Code
that would work, too. are you doing this in the template? @murodali_narzullaev
Муродали
Code
you might want to rethink that. how large is the table?
Code
..that's why i asked about the 'context'
Муродали
Code
there are many ways to get what you want. if your table is small, then what you have is fine \
Муродали
Code
'advice' or 'info'? use your database ui app or db shell environment
Муродали
Code
the easier way would be to use the DB app and look at the table 'properties'
Муродали
Code
yes, it's fine
Anonymous
Anonymous
Hi. .i am ask about awe hosting.. Is cood for django
Pandu
Any one have idea about token system in django rest framework?
Pandu
Token system.
Basic authentication
Session authentication
Refresh tokens
JWT authentication
Pandu
Etc
Romila
Hi .. I want to do MySQL database testing in django so I'm writing test cases for that but when I run it I'm getting error as can't create database database exist delete the existing database y/n? How to resolve this?
saran
Hi i have a doubt, how can we doing filtering based on categories, color, rating.?? Is that based on ajax, we have remove html content like that?? Is this how filter works, without page load.
Kiran Kumar
Pandu
inchidi
inchidi
Doragonsureiyā
Any one have idea about token system in django rest framework?
Please don't ask meta questions like:
"Any user of $x here?"
"Anyone used technology $y?"
"Hello I need help on $z"
Just ask about your problem directly! With 56k+ people the probability that someone will help is pretty high.
Also please read: http://catb.org/~esr/faqs/smart-questions.html
Pandu
Okay.
Pandu
I wan to learn DRF - Token Authentication System. Any one help me.
Muslim
Pandu
Pandu
RTFM
It's too confusing
cj
Romila
Romila
Sorry but got another issue😅 when I'm running test I'm getting InternalError: unknown column myapp.status in fieldlist after doing makemigration and migrate I'm getting InternalError: duplicate column
Anonymous
Which is the best framework to diploy tensorflow model..
Mirco
! offtopic
Doragonsureiyā
looks like you need an offtopic group, please continue this conversation at @pythonofftopic
Anonymous
Good morning everyone ❤️
saran
saran
I have some how managed to do it. Without page load it's too complicated. So I have used with page load and filtering.
saran
Heyy guys how can we use pincode/zip code in our sites to check is it deliverable for a product like in online sites.
saran
How to link it with products. Do i need to use any api?
Bheeshma
Bheeshma
Define a function to verify, make list of pincode which is deliverable and return True or False and raise error accordingly....
Basic and simple method I Guess
saran
saran
So i need to link it right?
saran
Suppose a product can delivered to 50 different locations so i need to link that product to that pincode right? It's hectic job right.
Bheeshma
First of all, product will be deliver by you or your dealer, so dealer will have some range so add pincodes along with dealer and if there is only one dealer then he can deliver every product every where
Bheeshma
If product cannot be delivered in perticular pincodes then there will be some parameters regarding that sort it out accordingly
saran
How to tackle that issue
saran
Bheeshma
Bheeshma
On which behalf you are deciding that product can not be delivered
Bheeshma
And if you are working globally then you will use any courier service for that they have APIs, for that then use it
saran
saran
Thank you
saran
Bit
Hi all, am basically .net developer. So can I get support from this group for my django project
Anonymous