Vitala
What do you think is the best way to analyze a django database? Perhaps it is difficult to call this a full-fledged analysis. There are questions about the data, for example: “Calculate how much 1 km of total / construction / major repairs cost”, “What is the average total amount of budgetary investments over 6 years”, etc. I can find out via sql queries or django console, but maybe there is a better way
Sinan
hi friends this error in check_apps_ready raise AppRegistryNotReady("Apps aren't loaded yet.") django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet. ????
Vijay
hiii, i have created a website using django and i have to add one functionality to send data fetched from database to user using email. can anyone help me
Vijay
without using forms in html
Vijay
Can you help me with it
Vijay
I'm beginner in django😅
Mirco
study first what a Rest API is
Ahmet
hi all. I wanna change my django-admin area side like this:
Ahmet
https://ibb.co/F6DX9dz like this one. for example; there is a company model. the company details (address, phone, website, emails) are gonna bi section 1 company social media accounts(twitter, ig, fb, tiktok etc) will be in section 2
Ahmet
how can I do that. I made some research on google but I could not find. what is it name exactly? how should I make research on google about it?
Anonymous
There are templates for admin page. You can write your own templates and override the default ones
aldino
hey can someone help me? im newbie at django. i tried to url routing. heres my sc. from django.urls import path from . import views url.patterns = [ path(' ', views.index, name='index') ] views.py file from django.shortcuts import render from django.http import HttpResponse def index (request): return HttpResponse('<h1> hi, how r u</h1>') but when i run my django it cant, can somebody help me?
Anonymous
Anonymous
its empty actually, i just write it on my phone
can i get what's the perfect error u are getting
aldino
can i get what's the perfect error u are getting
it said no error, that makes me more confused
aldino
when i run it, it just nothing happend
Shilpy
What are you getting when you run the development server?
Ahmet
There are templates for admin page. You can write your own templates and override the default ones
I found it. there is no need to change admin template. here is details: https://docs.djangoproject.com/en/3.2/ref/contrib/admin/#django.contrib.admin.ModelAdmin.fieldsets the answer is fieldset. thank you for your answer btw.
Anonymous
I m feeding my sqlite db from backend python script and my django frontend /bootstrap is fetching data from those tables using sql connection. (No model)...the frontend query doesnot work until the runserver is executed again...their r no error logs as well..any hint?
Anonymous
Also looking for a task scheduler with UI to be embedded in my existing django application..any link?
Vitaliy
Hello, why the login () method might throw a 502 error? from django.contrib.auth import login login (request, user, settings.AUTHENTICATION_BACKENDS)
Maxim
Hello, why the login () method might throw a 502 error? from django.contrib.auth import login login (request, user, settings.AUTHENTICATION_BACKENDS)
as i said, it's impossible to answer your question without login() code and don't forget about rule 5
User
Hey, anyone using vue with django?
User
Is it recommended?
Daniela
Hi! I have a question: I need to deploy my project on a server with Apache. I have never done this and i'm confused with so many different tutorials and options. Do you suggest using any particular method? Do I need to use Docker?
Vicente
Hey, anyone using vue with django?
I'm reading about this development in vue https://linmasahiro.github.io/vue3-scheduler-lite/dist/ and I want to use it with django. Any ideas?
~:$
Hi! I have a question: I need to deploy my project on a server with Apache. I have never done this and i'm confused with so many different tutorials and options. Do you suggest using any particular method? Do I need to use Docker?
Start from one tutorial and move to others. Try to list the different methods of deployments. Most of the cases we do not use apache. We use nginx and gunicorn with postgresql as database. Well reading different articles gives you more insight and you have to choose what is best for you. Hope it helps.
kasim
What will be the lowest charge for deploying django in aws, after free tire. I need ec2 instance (nginx, mysql), elastic ip
Führer
hey anyone can help me launch a djsngo coded page on website
Morteza
anyone used djongo package before?
Doragonsureiyā
anyone used djongo package before?
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
Jordan
does anyone know how to make django formset nested?
Ramadhan
hi guys, i just learned django but now i want to practice my skill... is there any web for 'challenge' my skill in back end? just like frontend, it has www.frontendmentor.io for practice
Doragonsureiyā
hi guys, i just learned django but now i want to practice my skill... is there any web for 'challenge' my skill in back end? just like frontend, it has www.frontendmentor.io for practice
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.
Александр
Hi there! How can put a field in list_editable that is not in the model? My model does not contain the field I need. But in get_queryset I get a list of these models, with the field I need for editable_list previously added via annotate. p.s. Sorry for my bad English😊
Александр
using forms.ModelForm
for display list?
Alex
for display list?
what exactly do you mean by display list, if you don't mind, share your code
Shubham
using forms.ModelForm
You can declare the field as you declare in the forms.Form And it will appear in the form but not in the Model
Александр
what exactly do you mean by display list, if you don't mind, share your code
I need to edit a field when opening a list of objects, not editing or viewing the object itself
Александр
I can not attach a screenshot
Александр
@alexdeathway class Category(DatesModel): category_id = models.CharField() name = models.CharField(max_length=100, verbose_name='Название') class StoreCategory(DatesModel): category = models.ForeignKey(Category, on_delete=models.CASCADE, verbose_name='Category Id', default=None) priority = models.IntegerField(default=0, verbose_name='Приоритет') @admin.register(Category) class CategoryAdmin(admin.ModelAdmin): readonly_fields = ('name',) list_display = ('name', 'priority') # TODO fix list_editable = ('priority',) # TODO fix ordering = ('-priority',) # TODO fix def get_queryset(self, request): user_current_store_subq = SystemUser.objects.get(user_id=request.user.id).current_store return get_categories_by_store(store_id=user_current_store_subq) def priority(self, obj): return obj.priority In get_queryset I have method get_categories_by_store(). It gives me QurerySet[Category] with added field priority from annotate
Complex_101
I want to create a model to upload multiple files and display them. But I want every file to have unique I'd and different objects for each file.how to do this?
Veer
I want to create a model to upload multiple files and display them. But I want every file to have unique I'd and different objects for each file.how to do this?
Class fileupload(models.Model): file=FileField() Define this type model than register into admin app the you can be create many object from admin app
Александр
no success with forms yet, will update if found something helpful.
I did it. But now there is another problem. Cannot display Category fields. Apparently we need to work with list_select_related🤔
Anonymous
Hey..I'm a django newbee.. I want to develop quizzes for my website.. is there any free resources available for it?
Alex
I did it. But now there is another problem. Cannot display Category fields. Apparently we need to work with list_select_related🤔
how about passing value with get_forms_kwags and using ModelchoiceField with category as choices
Yacov
Guys, sometimes I feel strugle with all the abstraction of the django and drf, do you guys have a great article with a great resume and point about serializers, views and models..
Vicente
Yes... 💯💯
Hi, do you have information about it? I'm starting with django and I need to work with a vue development. I've searched in google, but the information is so light
bidiidataanalysts
Anyone here with a guide on Django e-commerce?
Abin
project root is not connected the application root. Help
Doragonsureiyā
project root is not connected the application root. Help
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain: - what you're doing - what you're expecting - what you're using - where you're running the script - what Python version you're using - what packages and their versions you're using - and the most important thing: show the code YOU wrote (read rule 5️⃣ for that) and more details, that way your chances to get help will increase
Abin
Root paths of projects are not working error.
min
Root paths of projects are not working error.
Create new project and work their)
Maxim
Django project Using vs code Python 3.10 version
check that all dependencies are compatible with Python 10 before using it
Doragonsureiyā
Create new project and work their)
What are you talking about?
Muhammadamin
Guys which is better way? Microservices communication by Gateway or RabbitMQ
Mirco
Django project Using vs code Python 3.10 version
Too early for 3.10 Keep using 3.9 for a while
Divya
Hi all, could you please tell how can we connect ML with django
Divya
Any tutorials for beginners would be really helpful
Divya
Could you please refer any websites for understanding the implementation
parandhamudu
What type model you fitting
Divya
Regression models