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
Jugurtha
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
Mirco
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?
Maxim
aldino
Anonymous
aldino
aldino
when i run it, it just nothing happend
Shilpy
What are you getting when you run the development server?
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?
Anonymous
Vitaliy
Hello,
why the login () method might throw a 502 error?
from django.contrib.auth import login
login (request, user, settings.AUTHENTICATION_BACKENDS)
Maxim
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?
kasim >
What will be the lowest charge for deploying django in aws, after free tire.
I need ec2 instance (nginx, mysql), elastic ip
kasim >
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
Cleiton
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 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😊
Alex
Александр
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
Александр
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?
Alex
@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
no success with forms yet, will update if found something helpful.
Александр
Veer
Anonymous
Hey..I'm a django newbee.. I want to develop quizzes for my website.. is there any free resources available for it?
Alex
Александр
José
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?
Alex
Abin
project root is not connected the application root. Help
Äli
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
Abin
Root paths of projects are not working error.
min
Abin
Doragonsureiyā
Muhammadamin
Guys which is better way? Microservices communication by Gateway or RabbitMQ
Mirco
Divya
Hi all, could you please tell how can we connect ML with django
Divya
Any tutorials for beginners would be really helpful
parandhamudu
Divya
Divya
Could you please refer any websites for understanding the implementation
parandhamudu
What type model you fitting
Divya
Regression models