Рашид
These migrations are in the database but not on disk:
Рашид
although migration exists
south django
M
https://djangopackages.org/
Maksim
In my humble opinion, so don't need to make
Deadshot
dateparse.py", line 114, in parse_datetime
return datetime.datetime.fromisoformat(value)
TypeError: fromisoformat: argument must be str
Deadshot
can anyone solve this error
Software Engineer
Str(date)
Anonymous
I m using webkit speech engine in my JavaScript.. But problem is that it stoped after taking input once.. I want take input again and again and set the value in input field. HOW I CAN DO THIS??
Anton
Hello everyone, i have question for you. What kinds of async email sending you know except Celery?
Yogesh
Hello anyone help me
gadghimuradm
variable value is not str
Smile
hello
is it possible to trigger a django signal when a record is deleted in a model? I can only make logic when an instance is created or a record is added ( mean instance ==True)
upd: forgot about post_delete
Yogesh
Mirco
John
Hi to all! Collegues, i am new in django, please, get my help.
I am ave Parent model, and Child model.
Child have field parent = ForeignKey(Parent,...)
How i can get all parent records ordering by condition:
1.firstly by childdate_creation 2. secondly by parentdate creation.
Thanks!
Y
Hello someone's can help me please.
I deploy my django project on pythonanywhere.
So when I want to view my django project administration page online, I haven't static file load.
I have only html data without static file
Sujal
anyone know about web socket in django
Doragonsureiyā
anyone know about web socket in django
Don't ask meta questions like:
"Any user of $x here?"
"Anyone used technology $y?"
"Hello, I need help on $z!"
Just ask directly! The better you are at explaining the problem, the more likely you are to get help.
Asking smart questions
Sujal
i have made a live chat
Sujal
and the websocket connection is not getting stable
Y
That's example to explain you
Mirco
Y
Y
Please I need some help.
My django app can't load admin panel static files.
Y
My app is under production on pythonanywhere
Charly
Y
I saw pythonanywhere documentation which explain how fix this. But when I try, nothing is modify
Y
Maxim
W
Y
Yes i cleaned cache but it's same problem
Anonymous
Привет, ищу новых знакомств)
DVA
adilet
I have a Django project and I wanna deploy it to aws
adilet
whats better s3 or ec2
01000001011011010100000101101110
whats better s3 or ec2
For static resources you can use s3 and for application logic you can use ec2
adilet
Shaik
Cutiepaiangelanu
Can any one help me to fixe error
Cutiepaiangelanu
def news_add(request):
if request.method == "POST":
news_title = request.POST.get('newstitle')
Cat = request.POST.get('newscat')
summary = request.POST.get('newssum')
body = request.POST.get('newsbody')
if news_title == "" or summary =="" or body =="":
error = "Error All fill"
return render(request, 'backend/error.html', {'error': error});
data=News(name = news_title , catname=Cat, summary = summary, body=body, pic="-", date ="2022-2-2", author ="--", show = '0', catid ='1')
data.save()
return render(request,'backend/add_news.html' )
Cutiepaiangelanu
UnboundLocalError at /news_add
local variable 'news_title' referenced before assignment
Request Method: GET
Request URL: http://127.0.0.1:8000/news_add
Django Version: 4.1.2
Exception Type: UnboundLocalError
Exception Value: local variable 'news_title' referenced before assignment
Exception Location: /Users/annapurnakumari/Desktop/django/myweb/app/views.py, line 55, in news_add
Raised during: app.views.news_add
Python Executable: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3
Python Version: 3.9.7
Python Path: ['/Users/annapurnakumari/Desktop/django/myweb',
'/Library/Frameworks/Python.framework/Versions/3.9/lib/python39.zip',
'/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9',
'/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib-dynload',
'/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages']
Server time: Sat, 10 Dec 2022 03:09:09 +0000
Azizbek Xushnazarov
Cutiepaiangelanu
Cutiepaiangelanu
** I fixed
J
I know but how can 8 fixed it
You're not making a POST request to the api which bypasses the if request.method=="POST" condition....
You can either put the below code in try and except block... or make the POST request to API
Cutiepaiangelanu
Cutiepaiangelanu
I send u the code
Cutiepaiangelanu
Wait
Rashad
Plz send the screenshot with correct alignment
Charly
Yogesh
Mani
Django form validation using Javascript
Тимур
Hi guys ho to fix "Could not parse the remainder: % from %"
Даниил
Тимур
Даниил
there are no problems
Have you checked this? https://stackoverflow.com/questions/19428572/django-templatesyntaxerror-could-not-parse-the-remainder
Тимур
IM~Exynos
Any way we could run development settings in local server, were we shouldn't use production settings.py.
Without changing in mange.py
Tried export method but sometimes i forgot to execute the export command which tends to run the production settings in local.
Тимур
but something doesn't work
0x01
Даниил
ᐧ•ΆΓí
Hello friends
Excuse me, in order to be able to write something in the command after the run server command, what key combination should we press to be able to write something after the run server command?
Sadiq
Тимур
ᐧ•ΆΓí
Ctrl+c
Thanks
But why does the server stop running when I hit ctrl+c?
It means that Django will not be loaded on 127.0.0.1
J
Даниил
J
Ctrl+c
This quits the django server running on localhost