saran
?
You mentioned about django signals
Mirco
Yes
Mirco
A post save one
Mirco
Sender is User model
saran
Can we use it send notifications??
saran
For example, i have to two users. Once regular customer register. Admin gets notified in admin dashboard.
saran
In real time it's possible??
saran
In django
Apleoxero
Can someone clear a doubt? There is a model A and model B class A(models.Model): a_field_1 = models.CharField([all parameters here]) a_field_2 = models.CharField([all parameters here]) class B(models.Model): b_field_1 = models.CharField([all parameters here]) a_field = models.ForeignKey(A,[all parameters here]) can i use model C with model B as foreigkey??? class C(models.Model): c_field_1 = models.CharField([all parameters here]) b_field = models.ForeignKey(B,[all parameters here])
Mirco
Yes but with Django channels
saran
Yes but with Django channels
Is django channel is available in django 2.2.7??
Mirco
And it has compatibility with Django 2
saran
Mirco
https://channels.readthedocs.io/en/latest/
saran
What was the other one??
saran
In django 3
Mirco
Django 3.x use ASGI so it will be much easier to build something real-time
saran
Django 3.x use ASGI so it will be much easier to build something real-time
Okayy. I'm afraid my server is not compatible with django 3.
Mirco
?
saran
?
Where I host my django project
saran
Webfaction
Mirco
And why not ?
saran
And why not ?
Latest that used there 2.2.7
Mirco
And ?
saran
Didn't see any new versions
Mirco
Django version does not depend on your machine
saran
In their setting panel
saran
It's cloud based hosting
saran
Not my local
Mirco
Yes but you should have access to the console and venv
saran
Yes but you should have access to the console and venv
Yeaa, i didn't check that scenario 😬😬 yeaa so i can create it.
saran
Thanks mahn
saran
✌️
Anonymous
I'm not your bro
Ok how I can use these templates tag value entered by user in script
saran
Ok how I can use these templates tag value entered by user in script
Hey dude, {{ value }}. If you're not getting in script, just assign it input text field and use .val() to that value to a variable
Anonymous
Ok
Gil
About DRF tests. I have an api with tests on all functions. I want only to verify the logical of the processors, with a lot of patches for not doing other external funcions. If my api is at /api, I would like to have other space, like /fakedapi , that will be used to tests with frontend 100% time online, as a service of the app, giveing false reply, and playing with test database. Of course re-writing the minimum :) Any idea?
Gil
maybe I can explain different, is posible to have drf tests online at a path like /faked api for fronteds tests avaliable 100% time....
Kapilan
Hey!!...could someone suggest me the best youtube study materials to learn django as a beginner?
Kapilan
Anyone please?
Mirco
!djangotut
Doragonsureiyā
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Anonymous
Anyone please?
Corey Schafer
Kapilan
Thank you guys!!
ROG 💻
Any template that you recommend for a django app?
Mikhail
hi all
Ярик
i have a unique constraint traceback when i add a post with existing art value how to validate this error and get a messages.error in the form? class CatalogCreateView(SuccessMessageMixin, CreateView): model = Catalog template_name = "catalog/catalog_create.html" fields = ( "name", "type", "manufacturer", "art", )
Mikhail
I start learning django 2. but now we already have 3.0+ version is this badly? Are wether 2.0 version from book like a normal way for study django?
Anonymous
I can't load my css files in my Django project even though I have made all changes in settings.py and href in html .
Doragonsureiyā
I can't load my css files in my Django project even though I have made all changes in settings.py and href in html .
To share code or error tracebacks please use an online pasting service, here is a list of suggested sites: - https://del.dog - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev
decent
Can anyone here let me know the some good resources to start with django
Doragonsureiyā
Can anyone here let me know the some good resources to start with django
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
SNIR
any idea if i can filter the ManytoMany field for each object ?
decent
Any good YouTube videos or channels to learn
SNIR
any idea if i can filter the ManytoMany field for each object ? for exemple: i have 2 Models: Class -Field:Name -Field DayAvailble Days -Field: Name -Field ManytoMany: class i create 2 object: 1) Day name=1 2) Day name =2 now i create Class Class name :Math Dayavialbe: 2 i want the Day 2 form show me only the class Math. on my manytomany field and day 1 wont show me class Math on my manytomany field
Mirco
Move to @python
Uttam
ok
Uttam
its use full not spam
Mirco
It's not the right place
Saw
good evening I would like to know if it is possible to customize the error message generated by django when we want to add an object in the database through a field one by one an existing key
Carlos🇻🇪
te le ho mandatre
Muflone
so many Italians here
Boris
good evening, Can you help me ? Sorry, i'm very bad speak english, but i need help... I have some problem with gunicorn and mime types.. I have site with django + gunicorn + nginx when i start my django project i don't have problems with my site, when i start nginx and django projects i don't have problems But when I run my project django with gunicorn, i have some problem with mime types and my site doesn't work... Error "The resource from “http://127.0.0.1:8080/static/bootstrap/js/bootstrap.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff)." what i'm doing wrong? I attach screenshots with my django and gunicorn.service configuration file i can't attach screen ... i send link on pastebin https://pastebin.com/MYm6V4Py
Boris
Ok, sorry, i'm reading now
Anonymous
Apologies from me too... I already replied someone's post without reading rules.
Boris
i corrected my mistake and public my setting on pastebin
Boris
I try to fix this problem 3 days, and i tried a lot of methods, but i can't correct and i think, mb you can help.