Dutchq
Bro u noob 😭, I have to see ur app
I guess u were born pro right 🤦‍♂
Abhijit
Ig u need to put SMTP in settings
I have already done But I need logic in views function Where provide above
Siddharth
I guess u were born pro right 🤦‍♂
I am not mean to say like that, I am just kidding right there
Siddharth
I guess u were born pro right 🤦‍♂
ModuleNotFoundError: No module named 'adoptions' I think u need to install the app: INSTALLED_APPS = [ # ... 'adoptions', # ... ]
Siddharth
Anonymous
how can i serialize models with more than one relationships or models.
Alireza
how can i serialize models with more than one relationships or models.
i think you could use nested serializer for this
Lords
Can we use angular components with out angular framework in django
Lords
Djnago with angular components
Zion
Djnago with angular components
Django is production ready
Zion
you can build up a rest api and connect the angular components using calls between the backend and frontend
Anonymous
Hi any ts r ap here
i think if you want to understand and to see what are the global configuration variables see on django.conf.global_settings.py
Zion
if you split those parts, you can build a good backend service that could talk to almost any frontend framework.
Zion
Django is production ready
its mean that Django come with template engine who possible let you build a fully website using only Django components
Lords
With out frontend framework directly we need to use angular components for a frontend like templates is it possible with angular or react
Zion
you mean load the template using the template engine and using the react/angular component inside?
Lords
I am asking Is there any possibility to do with out frontend framework dirctly with components
AB
Good evening Give me a good ressources can I learn Django
Doragonsureiyā
Good evening Give me a good ressources can I learn Django
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Aswandh
How can I implement push notifications in my Django application in a simple manner?
Mirco
Prakhar
Hi guys. Can someone tell me why can't we see " assign to myself " option anymore on Django ticket pages? I can't even find any option to reply.
Spatz
Is there anyone who can help me?
Spatz
How to hybrid MySQL and MongoDB in Django project?
Mirco
How to hybrid MySQL and MongoDB in Django project?
don't do it if u wanna live happy
Mirco
or use Postgres with JSON for documents
Spatz
Would you like to help?
Doragonsureiyā
But I have to use it
Why? Seriously... Why? 🤔
Mirco
But I have to use it
Django is not suitable for nosql and mix is even more dangerous
Spatz
Why? Seriously... Why? 🤔
Just need to learn how to hybrid databases in Django
cj
Just need to learn how to hybrid databases in Django
Django is meant to be used with relational databases
Doragonsureiyā
Just need to learn how to hybrid databases in Django
Do you want to use Django with MongoDB? Then you shouldn't Please read this article: https://daniel.feldroy.com/when-to-use-mongodb-with-django.html
Spatz
But anyone can provide me a hybrid Django template with MySQL and MongoDB?
cj
But anyone can provide me a hybrid Django template with MySQL and MongoDB?
don't you understand you shouldn't do that? thus there are not templates for that kind of monster
Alex
Hello friends I'm new to Django development and I have a question... I created a project with authentication when I authenticate in one browser I am authenticated in another I know that I need to use sessions. How it's done?
cj
Hello friends I'm new to Django development and I have a question... I created a project with authentication when I authenticate in one browser I am authenticated in another I know that I need to use sessions. How it's done?
that shouldn't be possible unless you're doing some weird thing manually... Django should handle sessions by its own... are you doing those things manually somewhere in your code? anyway, here's the docs about sessions: https://docs.djangoproject.com/en/4.2/topics/http/sessions/
_
How to get started on restapi
Charly
How to get started on restapi
By looking at its documentation.
_
Later while doing project is it important?
Charly
Later while doing project is it important?
If not how do you expect to apply the knowledge?
_
What is the main purpose using api?
Charly
What is the main purpose using api?
That something you can google it. Thats offtopic
_
Have u made project using api?
Charly
Have u made project using api?
Thats irrelevant. But yes
_
Ok
_
Thanks mate
Siddharth
What is the main purpose using api?
Lol, it makes easier to use the already made thing to serve, like if you need any chatbot in your whole big project then use any API rather than making your own, since it will decrease efforts and saves time 🙃
Sree
raise WorkerLostError( billiard.exceptions.WorkerLostError: Worker exited prematurely: signal 6 (SIGABRT) Job: 0. anyone knows this error? i got this while running celery task. on my local machine
Rebison
Hello guys, Is it possible to connect django with MySQL database?
Siddharth
Hello guys, Is it possible to connect django with MySQL database?
Settings.py DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'your_database_name', 'USER': 'your_database_user', 'PASSWORD': 'your_database_password', 'HOST': 'localhost', 'PORT': '3306', } } pip install mysqlclient
Anonymous
list_payments(user = request.user) In defination of the above function def list_payments(user, filters=None): filters = filters or {} payment_qs = OrderPayment.objects.filter(user_id=user.id) return PaymentFilter(filters, payment_qs).qs I am from java background and It feel strange to see this function. In defination it is expected to have two params but we are only providing one param. Can anyone please clarify this?
Victor
Hello dears pythonistas, how to add a field in django admin (change list of a model) context before action (field is a foreign key) , objective is to do a quick dublicates of marked fields and add they in DB. Code that i have: https://hastebin.com/share/topapabivu.python
Anonymous
Hi Thanks @biggestlier1234 @llSiddharthll I got it
Siddharth
Hello dears pythonistas, how to add a field in django admin (change list of a model) context before action (field is a foreign key) , objective is to do a quick dublicates of marked fields and add they in DB. Code that i have: https://hastebin.com/share/topapabivu.python
class CoursesMsgAdmin(admin.ModelAdmin): # ... (your existing code) def change_view(self, request, object_id, form_url='', extra_context=None): extra_context = extra_context or {} # Add your foreign key field to the context extra_context['your_foreign_key_field'] = YourForeignKeyModel.objects.all() return super().change_view(request, object_id, form_url=form_url, extra_context=extra_context) # ... (your existing code)
Fedor
Hi! I need to make SSO for projects within the company, all services on Django. You need to decide whether to use Oauth 2.0 and write the service yourself, or use a ready-made solution - Keyclick. A small difficulty is that in addition to user information, they are associated with companies, the entity is Many to Many associated with the user, I do not understand if it is convenient and possible to do this through the User Federation. If you have experience with similar things, please tell me how to do it better.
Fedor
I will be glad to answer
Siddharth
it is easy though
Siddharth
adding the foreign key to the admin model to show the fields
Victor
I think I dont understand the full architecture of this django sweet platform ...
Small
Hey. Im working on a django site but with an installed theme. After making some configurations My homepage only loads with its built in animation but does not show the home page. The console says the bootstrap.min.css.map file is cannot be located. How can I fix this issue. Anyone please
Georg
hi. I need to preprocess data the user has posted in an admin view (admin form, django admin in general) Where I should place my code? AdminForm? AdminModel?
Georg
anyway I need to change a name of file loaded and I need to parse and cut some styles in incoming html code (RichTextEdit)
Georg
Access and change through models
pre_save? save? post_save on just models?
Georg
doesn't admin model/form gives an API?
Siddharth
pre_save? save? post_save on just models?
You should read documentation how to fetch data from admin through models