Manish
Hello,how can i send push notification from django rest framework?
Manish
Anonymous
When a person comments on an article on my site, send an email to the author of that article
Can anyone help me?
Doragonsureiyā
When a person comments on an article on my site, send an email to the author of that article
Can anyone help me?
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
Rutherford
Rutherford
....
Rutherford
Pavel
Hi. Is it possible to extend enum (IntegerChoices)?
I have enum NumberChoices
I need to extend it with 1 more value
crazzystunner
Anyone know, how to generate auto feilds based on input tag generated using javascript in frontend to save those details in database
Mirco
Manish
Where?
In react native application
Neha
Error: 'utf-8' codec can't decode byte 0xe2 in position 443: invalid continuation byte, File: views.py,
Maxim
Doragonsureiyā
Python groups in other languages
(‼️ Not managed by us ‼️)
Amharic @python_amharic
Arabic @arabipython
Azerbaijani @azepug
Chinese @pythonzh
French @python_francais
German @pythonde
Hebrew @pythonisrael
Hindi @pyindia
Indonesian @pythonid
Italian @python_ita @pythonita
Kazakh @python_kz
Malaysia @pythonmalaysia
Persian @pyfarsi
Portuguese @pythonbr
Russian @ru_python_beginners @ru_python
Spanish @PythonEsp
Swahili @python_eafrica
Turkish @python_tr
Uzbek @python_uz
If you have an (active) group you want to add, ask in the meta group, link in the rules page.
M.T
😂sory🌺
Anonymous
Hello, can you help me with something? I have problems with Javascript in my projects in Jango. Javascript code sometimes doesn't work. For example, if I have Javascript code in script.js file, it doesn't work.
Elvin
Guys, what do you recommend to learn after advancing in django? React o Angular? And why?
Sadanandam
Please give me path for learning Django from basics
Ismael
Rutherford
Moe (محمد)
Whats the better way to add react to existing Django in production?
1- Do i write API views and connect the frontend with backend through the app?
Or do i serve the react within django?
Rohan
Moe (محمد)
I saw a tutorial where they do
manage.py frontend, and then put everything related to react there using django-webpack l
AFK
Can anyone suggest me a tutorial or some channels to Start with CELERY in django?
I dont have any idea about celery
How and when its used
@(*_*)@
👋
@(*_*)@
how can I display the last Post from each category
@(*_*)@
def home(request):
cat = Category.objects.all()
for i in range(len(cat)):
test = Post.objects.filter(category__name=cat[i]).values('pk','title', 'lite_body','date').order_by('-id')[:1]
print(test)
data = {"test": test}
return render(request, "home.html", context=data)
@(*_*)@
I have only one record from the database displayed
Fan / Ac
レザ
Anonymous
レザ
Vaibhav
I am using celery task_soft_limit to 5 min, but in task level i want to set it infinite, is it possible to do so?
Muhammad
What is does docs simply means ?
cj
SJ
Anyone who can deploy my Django project on Cpanel.?
Mirco
Muhammad
documentation
Yes I know it is documentation, but which documentation ? is it documentation under a comment that I know or it is means other meaning else ?
Anonymous
serializer = TodoItemSerializer(queryset, many=True)
why many is True
And what exactly this code is doing
What I understand
queryset- get all todo from database
and serializer convert complex data format into json like format
but how it's doing it?
Rutherford
Rutherford
N
Guys, I need it. Appointment booking form on the website. And anyone who enters the site makes a reservation, I will receive a notification on the site in django
N
Doragonsureiyā
I know my friend though. When I find how to write the code here is the problem I hope you understand me and I hope you can help me
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
N
Doragonsureiyā
Sloth
This is related Django signal post_save method:
Is there any way i can get the old value in post save of the column that was changed?
N
Sloth
Explain your intention. My brother will help you. Or send the picture code
Ok so i have to run a few lines of code when a change in table xyz happens for this i am using post_save signal.
Inside the post_save signal i want to run some lines of code that needs previous instance of the row that was changed
I want to know how to get the previous instance of that changed row inside post_save method
Maxim
cj
Anonymous
Hello everybody what is this error:
content_object = models.GenericForeignKey('content_type', 'object_id')
AttributeError: module 'django.db.models' has no attribute 'GenericForeignKey'
this error when I make migrations .
cj
Anonymous
I make an internet shop on video and there is this fields
Anonymous
I can import this or what have I to do ?
Anonymous
OK many thanks I'll try tomorrow
Ko
I have series of formulas to be fed. In the front end I want a simple input fields. how to begin with it on Django
De Lorenzo
What is the best module to produce the below from dictionary
Roman
How to connect static files to django on the heroku server?
Roman
If i start django server on the local host everything is work
BSAB
BSAB
Can it help you?
Carlos🇻🇪
Sorry people, can someone help me? I've a DRF and a Frontend with VUE 2.0.
Carlos🇻🇪
All work perfectly but an ajax call PATCH return to me
"Did not find method in CORS header ‘Access-Control-Allow-Methods’",
also if the call use the same domain for Backend and Frontend, unique thing different is that the BE is served by gunicorn on port 8000 proxied by nginx and the FE is served on port 80 nby nginx too.
Here the padstebin where i've listed the call from FE, the settings.py for corsheaders, the views.py and the serializer.py
https://pastebin.com/Mk5dp4wH
Carlos🇻🇪
It's great if someone can gve me a hint on what I've do wrong
Sloth
?
....
get and error :AttributeError at /resume-builder
'Resume_modelFormFormSet' object has no attribute 'instance
views.py:
if formset.is_valid():
formset.save()
return HttpResponseRedirect(reverse('detailresume',args=(formset.instance.id,)))
return super(TemplateView,self).render_to_response(context) . how can i fix this . ? why is this error
Gaming
Can anyone help me to learn django
Doragonsureiyā
Can anyone help me to learn django
Looking for Django tutorials? you can follow these three recommended ones:
* Official documentation and tutorial
* Tutorial from MDN
* Tutorial from django-girls
....
Can anyone help me to learn django
Lot of tutorial available in youtube ,
Also django has official documentation .
So , you can check there.
After if you have any doubts , .Ask here ,