༆𖤍ཽ🇻 G⃖r༙e༙y༙h༙a༙t༙⚚×͡×
https://dpaste.org/morRd
Maxim
https://dpaste.org/morRd
where does the error occur?
༆𖤍ཽ🇻 G⃖r༙e༙y༙h༙a༙t༙⚚×͡×
where does the error occur?
https://dpaste.org/4ToVM
Maxim
https://dpaste.org/morRd
what is 'start_with_s' in line 14 ? teachName = forms.CharField(validators=['start_with_s'])
༆𖤍ཽ🇻 G⃖r༙e༙y༙h༙a༙t༙⚚×͡×
what is 'start_with_s' in line 14 ? teachName = forms.CharField(validators=['start_with_s'])
It is a validation of teach name field in which name should be start with s
༆𖤍ཽ🇻 G⃖r༙e༙y༙h༙a༙t༙⚚×͡×
Maxim
For which I created function
why then do i see a string?
༆𖤍ཽ🇻 G⃖r༙e༙y༙h༙a༙t༙⚚×͡×
why then do i see a string?
Yes I got it 👍 😊
༆𖤍ཽ🇻 G⃖r༙e༙y༙h༙a༙t༙⚚×͡×
why then do i see a string?
But now another error throws
Maxim
But now another error throws
but now you have one less mistake
༆𖤍ཽ🇻 G⃖r༙e༙y༙h༙a༙t༙⚚×͡×
Maxim
What
the number of mistakes decreased by 1
༆𖤍ཽ🇻 G⃖r༙e༙y༙h༙a༙t༙⚚×͡×
༆𖤍ཽ🇻 G⃖r༙e༙y༙h༙a༙t༙⚚×͡×
https://dpaste.org/wm90k
This error throws
Maxim
This error throws
404 Snippet not found
༆𖤍ཽ🇻 G⃖r༙e༙y༙h༙a༙t༙⚚×͡×
404 Snippet not found
https://dpaste.org/wm90K
Maxim
https://dpaste.org/wm90K
look at the lines #8 and #9
༆𖤍ཽ🇻 G⃖r༙e༙y༙h༙a༙t༙⚚×͡×
look at the lines #8 and #9
I didn't understanding that where is problem
cj
I didn't understanding that where is problem
well... read those line and you'll understand ¯\_(ツ)_/¯
Maxim
I didn't understanding that where is problem
self.cleaned_data dict does not contain the email key you should get better familiar with Python
K A R T I K
Anyone have django course?
Doragonsureiyā
Anyone have django course?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Monu
I need resources for python automation & testing
Anonymous
Django rest resources other than official documentation??
Doragonsureiyā
I need resources for python automation & testing
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Evgen
Hello When creating a subfolder in /media/, the image does not open via a direct link. Default settings: MEDIA_URL = '/media/' MEDIA_ROOT = BASE_DIR/'media' Address is correct. The same picture opens if you throw it in the root / media / and change the address to the root. Please tell me how can I fix this? Links to pictures: https://ibb.co/nnBLz10 https://ibb.co/s9HSPZ5
Abdullah
Do you prefer use pure Django or with Django-ninja
Mirco
Do you prefer use pure Django or with Django-ninja
Waiting for django-ninja to be more mature In the meanwhile DRF or FastAPI for async APIs
Abdullah
Waiting for django-ninja to be more mature In the meanwhile DRF or FastAPI for async APIs
I started taking a course and I've reached half of it. so what is your suggestions
Ali Hasan
Mirco
I started taking a course and I've reached half of it. so what is your suggestions
If you wanna write APIs in Django, use DRF If you need async APIs, use FastAPI instead of Django
Doragonsureiyā
What is DRF
Are you looking for Django REST Framework documentation? Here you have it: https://www.django-rest-framework.org/
Ali Hasan
If you wanna write APIs in Django, use DRF If you need async APIs, use FastAPI instead of Django
Writing API's in Django-ninja is really fast and easy, it provides a lot of features , to name a few , automatic documentation for your API , Validating data using a really simple Schemas , Serializing the data automatically for you also using Schemas, so why isn't it mature yet ?
Abdullah
!drf
Got it lol
Mirco
Got it lol
Read the next message sent by the bot
Ali Hasan
Course for cumputid
Oh so Laith is your instructor I guess 😁
Abdullah
Mirco
Writing API's in Django-ninja is really fast and easy, it provides a lot of features , to name a few , automatic documentation for your API , Validating data using a really simple Schemas , Serializing the data automatically for you also using Schemas, so why isn't it mature yet ?
Yeah, but the support is limited if you compare it to DRF So if you need something more specific or help, you can easily find its limit For async APIs, it's much better to choose FastAPI, more support, more tools, more documentation Django Ninja is great, but it still needs time to be even more mature Fun for small / toy projects, for a big one I'd not choose it honestly
Abdullah
I wanna learn about how exactly backend work do you know any books or course
Mirco
I wanna learn about how exactly backend work do you know any books or course
The entire collection of books written by William Vincent are very nice
Дмитрий Борисов
I wanna learn about how exactly backend work do you know any books or course
Learn about tcp-it stack first of all. How works sockets and etc
Doragonsureiyā
Please move your "Hello" and other social talk to @PythonOfftopic.
Suraj
If by default in home.urls.....django is giving " from django import views" Then mentioning " from home import views" is needed or its useless
Shivendra
Hi i have to create a form from drf serialized data in frontend . Models are having multiple foreginkey. CRUD operation
Shivendra
Using ajax and jquery
AAYUSH
How to include the node_modules on django ...????
Mirco
How to include the node_modules on django ...????
? one strong suggestion is to separate frontend projects from backend one when you use React, Vue etc etc much easier to handle
AAYUSH
which node_module?
i want to connect the bootstrap file to django poject... I install using npm i bootsrap.. How to use it.. instead of writing from the css scratch...
AAYUSH
use the CDN url of bootstrap and include into your base template
ok bro thanks.... But for the professional level cdn can't be included....???
Mirco
ok bro thanks.... But for the professional level cdn can't be included....???
why not ? it's the most common way of including it in Django projects
AmirHossein
Hi, is it allowed to ask questions about DRF ?
AmirHossein
thanks, the question is: is it possible to use format suffixes with viewsets?! does a viewset put the format kwarg in it's generated views? specific case would be: imagine all your views are generated using viewsets and you have your URLconf also generated by a DefaultRouter what would you do if you wanted to use format suffixes?
AmirHossein
does this answer https://stackoverflow.com/questions/68020721/enforcing-use-of-format-suffix-patterns-in-drf-with-viewsets
it partly does 🤔 I think my question might be wrong? it's weird that I can't find any search results or any developer who knows the answer 🤔
Д
it partly does 🤔 I think my question might be wrong? it's weird that I can't find any search results or any developer who knows the answer 🤔
I've never used the format suffixes myself. I mean you could not use them and enforce the format suffix manually - but regardless the ViewSets assume the list, retrieve, etc. functions which you can override for this
Д
I don't wanna enforce it, just wanna know how would you use it with viewsets
I mean but that's the point of them; they enforce some suffix like .json or whatever
AmirHossein
I don't wanna enforce it, just wanna know how would you use it with viewsets
because from what I understood reading the docs, viewsets implement actions, not method handlers, so there is not much I can do when I'm writing the viewset :))
Д
because from what I understood reading the docs, viewsets implement actions, not method handlers, so there is not much I can do when I'm writing the viewset :))
ViewSets contain all the normal ways to deal with requests coming in. they are methods - whether they are called 'actions' or whatever, I don't know
Д
they might not correspond to functions like get but they have list and retrieve which are both GET. list is for get many (without any arguments, by default) and retrieve is for get some specific instance (it takes the page\id from the GET params from the URL)
Д
the level of abstraction is a bit different but they solve the same problem
AmirHossein
👌🤔
Д
just override something in a viewset and see what happens
AAYUSH
do you know what CDN is
it's a type of server which distribute the content globally on the server..
Д
it's a type of server which distribute the content globally on the server..
Content Distribution Network - so yes, it's specifically meant for letting people download from their local sources
AAYUSH
Do you have a GitHub repo..???
Anonymous
Who knows the sequence of creating a template?