Alex
How to split a string in django template, i have appeded a string '1_2_3' to session i want to split it into 1 2 3 in a loop.
I think that there are no tags that would help you. You probably should implement this logic in your view. Or write a custom template tag/filter
Ghorz
stop using windows 🤷🏻‍♂️
😂🤣🤣🤣🤣🤣😹😹😹😹
Ghorz
Which linux you use
Use any Linux, as the spirit lead.
Anonymous
Hello I have used customized ID(primary key) as string in models but now when I'm executing raw query it throws error as Raw must include the primary key what is the problem? https://stackoverflow.com/questions/64716350/django-db-models-query-utils-invalidquery-raw-query-must-include-the-primary-ke
PRASANA
I want to learn class view in django...any GitHub or youtube or website...for learning more
PRASANA
I want to learn class view in django...any GitHub or youtube or website...for learning more
Now iam doing in function based view...now I want to upgrade..so please tell ..😎
Anonymous
Hello Now previous question was solved but the table has foreign key has showing error that relation "table" does not exist while using raw method. Please help me to solve this issue https://stackoverflow.com/questions/64716350/django-db-models-query-utils-invalidquery-raw-query-must-include-the-primary-ke
Anonymous
elearning app code is there
cj
It's client server
then he will have access to the code 🤷🏻‍♂️ no matter what you do
Igor
Hi! Please anybody can give me suggestion how to save/update info from CSV file(containes 3 columns and several rows) to Django db(Postgres SQL)?
Neo
hi i have created a custom user and role model i can create new users and able to set roles to them but if i use the created user credentials i am not able to login, the login only works for django create super user only. https://hastebin.com/tezayapafe.py
my
How to create delete confirmation in django
my
Anyone tell me
Jimmies San
How to create delete confirmation in django
if delete: ask_confirmation()
Manikandan
Search in django
Jimmies San
Only this?
yeah, anyone can confirm
my
Search in django
Already search but didn't get usefull
my
Ok
Trysked
Excuse me, I just run a manage.py runserver on CMD then he goes to vscode, any idea why?
Manikandan
Bro.. i asked how use search data in django
inchidi
Trysked
wait i try
Doragonsureiyā
Bro.. i asked how use search data in django
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box, write down the same words you asked here Step 4: Read the first results
AliReZa
for search in django restfull api i send request with filter? its true?
Lugano
hi,i have this error https://nekobin.com/doyufocibu can someone help me out. Using apache2
Lucas Ravellys
Hi. How can I plot(with matplotlib) images in Django Template?
Khumoyun
Hello, I have Group model which is connected to Main model with ManyToMany field. When I use {{ form.group }} in my template/index.html. It displays all data, but I need filtered data. my target is using multiple {{ form.group }} in several fields with filtered data. Question: is it possible filter or using queryset in template, like Group.objects.all().filter(name=name)
Batman
Hello, I have a nested serializer set, but the value for a particular record is null, so for some reason it is throwing an exception that it can't find the field 'title' on that NoneType object
*
Hi. How can I plot(with matplotlib) images in Django Template?
Probably you'll have to render the images, save them to media, and serve them
Sumit
Hi Everyone, I am trying to use django-oscar but getting following problem. Please help me out.
Sumit
Basket middleware object is not iterable
Khumoyun
you can do the filtering in your view function, or create a template tag (you can look it up in Django documentation).
i can't imagine how it works!? reason is I am using {{ form.group|as_crispy_field }} in my select field. can you send sample code based on my example?
Sumit
I have followed the latest version of django-oscar i.e. 2.1, but still getting this error.
*
i can't imagine how it works!? reason is I am using {{ form.group|as_crispy_field }} in my select field. can you send sample code based on my example?
sure, https://docs.djangoproject.com/en/3.1/howto/custom-template-tags/ here you can find out how to write your own template filters. If you have a QuerySet that needs to be filtered, just write a template tag like this: @register…… def my-template-tag(qs) return qs.filter(parameters).all()
*
like an input?
Khumoyun
but what do you mean by select field?
I am using select2.js in my collapse (accordion) div. and i connected ajax for searching required items from db. users can select multiple items
Khumoyun
like an input?
yes, its like normally select field with options but ui is another
Illia
does anyone know a good tutorial for django + react?
Arya
does anyone know a good tutorial for django + react?
Google: react and django YouTube 📃 Full Stack React & Django [1] - Basic REST API - YouTube 📃 Full Stack React & Django [2] - Implementing React - YouTube 📃 Full Stack React & Django [2] - Implementing React - YouTube 📃 Django and React Tutorial // 1 - YouTube 📃 Full Stack React & Django [7] - Frontend Authentication - YouTube 📃 React & Django TUTORIAL Integration // REACTify Django - YouTube 📃 React + Django To-Do App | Django REST Framework - YouTube 📃 Playing nice with Django and React (Jacob Cook) - YouTube 📃 Django Rest Framework & React Tutorial: Learning Management ... 📃 ReactJS - Django App Development Workshop - YouTube
*
yes, its like normally select field with options but ui is another
cool! but don't do template filters, they're harder to maintain. just add an already-filtered variable to your template context in the view function.
Illia
👆
wow. thanks
Arya
wow. thanks
No Problem Man😇.Lol
*
thanks. but it's not working
why? you need to filter by different variables?
Khumoyun
why? you need to filter by different variables?
class EditView(UpdateView): model = Main template_name = 'index.html' fields = [ 'group'] def render_to_response(self, context, **response_kwargs): context['smth '] = Group.objects.all().filter(type='SMTH') return context I don't know why my code is not working!?
goku
I want to create dynamic serializers for different tables can anyone help me out
M
hi all i posted it ysterday and till now i could not resolve problem by my own.. i am getting core dump while running the django server .. intially i thought that it may be bec i compiled python and package on other machien and runnng on other machine so i recompiled all packaes on hosting machine only but no luck . if anyone can help sorry for repeasting question
M
https://del.dog/molyckalif.txt
M
here is stack
M
if ever anyone got similar problem can suggest so i can check the code again
Anonymous
How to request delete from html to rest api class based view
AliReZa
in drf i have a problem
AliReZa
my problem is error code 500
Pankaj
Should i access influx db with request or via its library (influxdb)
Ghorz
my problem is error code 500
Check your terminal log
AliReZa
Check your terminal log
i checked but log is empty
Ghorz
500 server error
AliReZa
yp
Ghorz
You have a syntax error
Ghorz
It has to do with you coding logic
AliReZa
Ghorz
Yeah
AliReZa
I will check
AliReZa
thanks
Abdulvoxid Dadamirzayev
I'm facing error like: NoReverseMatch at/account/password_reset/
Doragonsureiyā
I'm facing error like: NoReverseMatch at/account/password_reset/
Lesson number one: Always read what the machine tells you