Anonymous
Brio Software Club
Hi everybody... i work in a project with Django + Redis + Celereyin Heroku.... I need documentation or an example to start... tks a lot...
Brio Software Club
âshîsh
Brio Software Club
👍
Uday
I have a model 'Product' and another model 'OrderList', I need to set id of primary key of Product Model. How can I set specifically primary key in OrderList model?
Anonymous
I know python but not django
Anonymous
Where can i learn django biggner to advance
old
Guys is studying django necessary? cause most web app use other languages like javascript to be development. As pythoniers shouldn't we focus our energy on machine learning and hacking? I would love to hear your inputs on this
Trials
Deepak
Can anyone tell me how to import model in celery task.py
Sai
Grigory
Greetings. I have a DecimalField with decimal_places=2. If I pass something like 3.50 there I will get 3.00. What should I do to get rid of this problem?
Ujjwal
Hello everyone ,
I have made a model . And I want to send my matplotlob graph from views.py rendered to templates ?
Anyone who has been in the same situation before ?
Sai
sarth
how to make login by mobile and password instead of username and password by using all auth package..is it possible
Nisis
Saugat
sarth
ok i can add it in modal but can you tell me how to validate this, actually i am using all auth package which provide login and its own sign up...but i want mobile only to do both..how to costmize it..
Nisis
Nisis
Nisis
But I'm prtty sure you can just add a field in the user for a mobile
Nisis
sarth
Idk I have never used that
thanks...i am trying by all auth if not possible then will move to your way... would you share the code..if you have...it will be useful for..me...
Nisis
Vitaly
hey everybody.
Got AttributeError when attempting to get a value for field name on serializer CourseDetailSerializer.
The serializer field might be named incorrectly and not match any attribute or key on the Response instance.
Original exception text was: 'Response' object has no attribute 'name'.
I've got an error when I try to get an object, which not exist. Here is my view - https://gist.github.com/Vir2S/b63e0c10ff831c0413d7b277e1be0cf1.
I use standard ModelSerializer.
How can I fix it?
Mirco
Vitaly
So which is the exact current error ?
Got AttributeError when attempting to get a value for field name on serializer CourseDetailSerializer.
The serializer field might be named incorrectly and not match any attribute or key on the Response instance.
Original exception text was: 'Response' object has no attribute 'name'.
Vitaly
in row 13
Anonymous
where can I use celery use casE?
Mirco
Firstname
Hi! There is one tricky task.
The following models are available:
class Channel:
...
class ChannelState:
subscribers = Int ()
channel = ForeignKey (Channel, ...)
I get all channels through Channel.objects.all ()
I also accept a date argument, by which I have to get one channelstate for all channels. Then I have to calculate the difference between the subscribers field of this channelstate and the very last one. Then I must add this calculated value to the channel itself in the growth field (the growth field is not in the Channel model, so I may have to do it through annotate)
Firstname
zax4r0
im learning django
i want to make a small singn up and sign in
so my friend can access it using api who make front end
no need of complicated method
just simple
how can i make this using django rest api
any guide will be helpful 😄
Mirco
Doragonsureiyā
zax4r0
zax4r0
M
Si
hi
Si
I make a user form
Si
but it doesn't added the username to "user "in admin section
Si
from django.shortcuts import render, redirect
from django.contrib import messages
from .forms import UserRegisterForm
def register(request):
if request.method == 'POST':
form = UserRegisterForm(request.POST)
if form.is_valid():
username= form.cleaned_data.get('username')
messages.success(request, f'Acount created for{username}')
return redirect ('home')
else:
form = UserRegisterForm()
return render(request,'new1.html',{'form':form})
Anonymous
example with asyncio uses two internal sources https://gist.github.com/SkyBulk/92dcab544c9332e465e88b199a241669#file-async_sample-py-L50 where this later it will become into 10+ , but my question following this architecture https://imaemo.github.io/images/celery.png the async_sample is task_producer which also pull/push data to producers , consumers this can be redis or rabitQM , but how can I design properly ? celery on both (manager script asyncio) , and django project?
Abdul Shakoor
hi, I want senior developer to check my code, and tell how to improve this code: https://github.com/shoukreytom/blog/tree/main/backend
Anonymous
Im using tenant and celery in django project
How to tell celery to look into the new schema rather than looking into public schema
Any one has suggestions?
Vishnu
Me too
Athul
Ravi Ranjan
Hello
I m final year of mca
Can anyone send Django project source code?
Fazil
Ravi Ranjan
In clg final year
We have to submit project in clg.
And we have to run the application on my device
So
If any
Abdul Shakoor
Mayur
how can we show images in list field using django mongoengine emmbeded filed can anyone help in code...
Mayur
Mayur
Thanks in advance☺️
how to make database, image in list field using mongoengine and Django rest
Vitaly
Anonymous
Sakshi
Can anyone tell good courses to learn django?
Anonymous
I want to change the secret key in setting.py file
How can i change, can anyone help
Saikat
Saikat
What's the issue??
Anonymous
Rit
How can i pass {% for........ %} {%endfor%} via format _html in django
rohittt
Why I am getting "name httprespomse is not defined" Error even after importing...........
Mirco
rohittt
Dm u... ?
Sujit
File "/Users/sujit_jaiwaliya/Downloads/CarRental-master/system/urls.py", line 6, in <module>
url(r'^$', "system.views.home", name = "home"),
File "/Users/sujit_jaiwaliya/Downloads/CarRental-master/env/lib/python3.9/site-packages/django/conf/urls/__init__.py", line 22, in url
return re_path(regex, view, kwargs, name)
File "/Users/sujit_jaiwaliya/Downloads/CarRental-master/env/lib/python3.9/site-packages/django/urls/conf.py", line 73, in _path
raise TypeError('view must be a callable or a list/tuple in the case of include().')
TypeError: view must be a callable or a list/tuple in the case of include().
Sujit
i'm getting this error
Mirco
Dm u... ?
Next time if you DM you will be warned
Read group rules please
Sujit
anyone help