ruthless
everyone has their advantages
cj
everyone has their advantages
exactly, so there's no point on saying one is "better" than another, just use the one that floats your boat
ruthless
👍
ruthless
Doragonsureiyā
How much work experience do you have?
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.
ruthless
Mabs Ademola
If you have link to any Django drf backend code for project like social media, marketplace, messaging etc.
Which I can use to expand my skill
cj
Believe
Ogo
I need help
The image from database was displaying on the detail page of the products. But stopped displaying, I don't know why. The console says - "404(not found)
Ogo
The image displays on the home page but once I click on the product, the image won't show on the detail page.
I need help
The image from database
Ayass
https://dpaste.org/jNd3H
Why the results is empty :(
django 5.0 - mariadb 10.4.28
Mahmuod
#M...
HelloI want to upload some videos on my site
And I want users to be able to see that video, but not be able to download it or not be able to record the screen How should I do this?
lili
when i add a base.html for my django project with a conten block to have a dynamic body.
when i add contents, how can i add css and js for that contens?
wont it get messy ib this way?
Muflone
lili
Muflone
what no?
Is the answer to your question
Muflone
You can have as many blocks you want for your content
.
code in link below, it is DPASTE
https://dpaste.org/tHYyF
when i try to save new data about user (username, phonenumber, email, bio, etc) it gives this error. help pls, i can not understand why it is so
Muflone
.
Ekin
hello guys, who have a forum site with django? Template is not important. A basic forum site
Charly
Ekin
so basic template enough
clouded
Ekin
ops sorry i hope that
Gaston
I think the main problem is people want to do things by magic, can't spend a minute on read a tutorial or a wiki article at least before make a question in a public group about 15k audience
Gaston
so basic template enough
If u re interesed in get things done without know what u re doing goole for Metronic is a template wich came in many flavors including Django based, It's already cooked but anyway u will have to lear to code a forum because Django is not a CMS or similar
Дмитрий Скважинный
Gaston
good point
Дмитрий Скважинный
good point
We re dev we work 4 that :)
Ekin
Arman
Guys in pycharm the ide highlights the model's attribute "objects", what to do ?
Maxim
Behzad
Can I download or buy a ready-made store front site with Flutter, then write the api myself with Django Rest and connect to it with Flutter?
Muflone
Behzad
Muflone
Thank You What do you mean by active session state?
after a user logs in, you have to check the user is authenticated, in order to check if he's authorized to visit the pages.
how this post authentication checks must be done depends also how the frontend operates
Brown
Can anyone help me resolve this error?
AttributeError at /admin/
'Account' object has no attribute 'get_all_permissions'
Request Method: GET
Request URL: http://127.0.0.1:8000/admin/
Django Version: 5.0.1
Exception Type: AttributeError
Exception Value:
'Account' object has no attribute 'get_all_permissions'
I’m trying to create a custom user model
Behzad
Nasrullah
def exam_processor(request):
if request.method == 'GET':
solver = []
range_value = request.GET['range']
for index, tab in enumerate(main_list):
tab = request.GET.get(f'tab-data_{index ++ 1}', default='none')
solver.append(tab)
solver = list(dict.fromkeys(solver))
solver.remove('none')
if solver != []:
for table in solver:
table = str_converted[table]
if len(table.objects.all()) >= int(range_value):
tab = table.objects.all()
print(random.sample(tab, k=int(range_value)))
else:
return HttpResponse("????? ????? ?? ???? ??? ????")
else:
return HttpResponse('no sub sel')
Error : 'builtin_function_or_method' object has no attribute 'choice'
Droid
guys am creating a website but am using bootstrap css i wonder if ita a good pracctixe like wont it make me.lame that a wudnt even knw wats behind my frnt end am creating a crm
Doragonsureiyā
Muflone
Muflone
Nasrullah
Nasrullah
I use import random
Muflone
I use import random
it seems not, the error is pretty clear and refers random IS NOT the module but a function
Mulata
I have course, subject and instructor model. One course can taught by two instructors and
the 1st instructor Fill up to 40% and the other fill 60%. How can implement this using django.
Nasrullah
Muflone
Nasrullah
Import random,
This is what i wrote
Muflone
show the full code in pastebin
Ingvarr
what could i do wrong when connect to postgresql if i get this error?
django.db.utils.OperationalError: connection is bad: Name or service not known
Gaston
Arman
depends on what you want
yeah sry, so it's highlights as exception like "this attr doesn't exist" but meanwhile it's work fine, so idk ide keeps highlighting it, so I wanna avoid that behaviour
.
<a onclick="location.href='{% url 'view_book' %}'" class="btn btn-primary stretched-link">Go somewhere</a>
that have a problem but i don`t know
.
who khow
Muflone
who khow
if you don't know what problem you have, who else could know?
Jaxongir | 33
refleks1a
hello, can anyone recommend an article or a tutorial how to dockerize a DRF Django project with MySQL db
refleks1a
checked a few and all of them are different. Cannot understand which one is correct
Nir
Hey all , how you'll make apis as per usecase , or crud api as per http method?
ruthless
Muflone
most people here asks questions but they never reply after an answer
Doragonsureiyā
Charly
ruthless
Charly
I'm
Hi everyone!
In serializing, what is "instance" parameter inside serializer? What should I set equal to it?
For example we have a serializer named "UserSerializer" and we want to use it inside a view. We write "UserSerializer(instance=user)". What is that instance?
Charly
Charly
I'm
no, the whole user
So I have another question.
When I want to print the whole user to the console, it just print username of the user. Why? What is the difference?
Charly
I'm