Муродали
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
Муродали
what's in it.. how many items? @murodali_narzullaev
Thank you @codekills for helping but I solved from stackoverflow
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
Муродали
what was their suggestion? @murodali_narzullaev
Post.object.order_by('-id')[:4] That's it
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
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.
Doragonsureiyā
Hello everyone, I am new to Django, can someone share any good resources for learning the same. Regards
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
inchidi
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.
without page load then you'll need ajax/rest api for sure. you can try django rest framework, it will included with filtering using django-filter already
inchidi
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?
just enter y or you can add --noinput when running the test so django will automatically delete existing test database. you can also add --keepdb if you want to keep the test database so django doesnt need to keep recreating the database for test
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.
Pandu
RTFM
Mena's?
Muslim
Mena's?
https://en.wikipedia.org/wiki/RTFM
Pandu
RTFM
It's too confusing
Muslim
It's too confusing
Then u should ask confusing part, no meta questions
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
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
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
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
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
My exact doubt is, suppose you're a seller in amazon.com for eg.. You have deliver in different countries. When customer from India look at product and tried his pin code/zip code. So you're the seller you need to update all the pincode to your portal right. Entering a 200 entries by yourself to the portal is hectic job right.
saran
How to tackle that issue
Cheap
How to tackle that issue
You dont enter all pincodes manually, you use third-party api for that
Bheeshma
If product cannot be delivered in perticular pincodes then there will be some parameters regarding that sort it out accordingly
I told you if there is restrictions then there will be parameter for that like price, weight etc etc
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
Thank you
Bit
Hi all, am basically .net developer. So can I get support from this group for my django project