Рашид
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
Doragonsureiyā
Hello anyone help me
No one can help you until you explain your difficulties.
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
No one can help you until you explain your difficulties.
How can I access admin panel after deployment
Mirco
How can I access admin panel after deployment
You mean to create the superuser ?
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
Yogesh
You mean to create the superuser ?
I create it but I want to access my admin panel I deploy it on production
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
I create it but I want to access my admin panel I deploy it on production
I understand your problem. So I explain you how to access your admin pane. You just need to define the path of admin panel. For example if your admin panel is named admin. You write domain name/your_admin _panel_name www.example.com/admin
Y
That's example to explain you
Y
Please I need some help. My django app can't load admin panel static files.
Y
My app is under production on pythonanywhere
Y
HAve you done cocllect static?
Not yet. But others pages static files are loaded.
Y
HAve you done cocllect static?
So after to do collect static, I have always same problem
Y
I saw pythonanywhere documentation which explain how fix this. But when I try, nothing is modify
Maxim
I saw pythonanywhere documentation which explain how fix this. But when I try, nothing is modify
just like nothing happens when someone tries to figure out from your words exactly what's going wrong for you
Y
just like nothing happens when someone tries to figure out from your words exactly what's going wrong for you
My django app can't load admin panel static files. My app is deploy on pythonanywhere.
Maxim
My django app can't load admin panel static files. My app is deploy on pythonanywhere.
repeating what you've already said won't help at all - not enough detail
Y
repeating what you've already said won't help at all - not enough detail
Ok! When I redirect to /admin , admin panel appears without css form, I get only html. That's wrong but I must have static file. So when I do python manage.py collectstatic nothing happens. That's my main problem
Y
Yes i cleaned cache but it's same problem
Anonymous
Привет, ищу новых знакомств)
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
Shaik
Yes i cleaned cache but it's same problem
Check the static root path in settings
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
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
I send u the code
Cutiepaiangelanu
Wait
Rashad
Plz send the screenshot with correct alignment
Maxim
Plz send the screenshot with correct alignment
1. screenshots are forbidden 2. what are you even talking about ?
Mani
Django form validation using Javascript
Mirco
Django form validation using Javascript
Django form validation + JavaScript validation Otherwise you have an always opened gate 🙂
Тимур
Hi guys ho to fix "Could not parse the remainder: % from %"
Тимур
Try to check your templates
there are no problems
Даниил
there are no problems
Have you checked this? https://stackoverflow.com/questions/19428572/django-templatesyntaxerror-could-not-parse-the-remainder
Даниил
there are no problems
This error raises because something is not correct in your template
Тимур
This error raises because something is not correct in your template
I inserted this:"{% url articles:article_create %}" code into href
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
Даниил
but something doesn't work
Use commas around url_name
Даниил
but something doesn't work
https://www.geeksforgeeks.org/url-django-template-tag/amp/
ᐧ•ΆΓí
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?
Тимур
ᐧ•ΆΓí
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
Ctrl+c
This quits the django server running on localhost