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
👍
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.
Maxim
Okey, my Boss😅
the message is still here
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
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
#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?
lili
No
what no?
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
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
the code shows User.objects.get while the error shows User.get your code seems not be aligned with the running code, restart it and make sure you're saving on the correct file
Ekin
hello guys, who have a forum site with django? Template is not important. A basic forum site
Ekin
so basic template enough
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
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
You are right but you don't know me . This is just necessary to pass the lesson and i am not interested in with django :) thank you for help good luck
Arman
Guys in pycharm the ide highlights the model's attribute "objects", what to do ?
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
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?
First make sure you're able to reproduce the needed API, in particular the authentication and the active session state
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
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ā
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
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.
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.
Muflone
I am confused, Please how should i get rid of it?
your import line is wrong, check what you wrote
Nasrullah
Import random, This is what i wrote
Muflone
Import random, This is what i wrote
then you have some other random = line in your code that import cannot produce that error
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
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
<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
Change it to this <a href="{% url 'view_book' %}" class="btn btn-primary stretched-link">Go somewhere</a>
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?
Muflone
most people here asks questions but they never reply after an answer
Nir
Do you use django rest framework?
Yes , I gotta make an inventory management app If I try making crud api as per http method the serializers do a dfs
ruthless
So you know how Django rest framework views work?
Why we use views, we can also use generics
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?
I'm
the model instance (an user in this case) to be serialized
Is the user actually the username of the user? Or it is the user_id?
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?