hamed
Hello How can i change the mentioned names in panel admin as illustrated in the following pic Thanks for help
.
django.db.utils.ProgrammingError: relation "accounts_marks" does not exist LINE 1: ...s_marks"."english", "accounts_marks"."total" FROM "accounts_... ^
.
whats the reason for error database not working
Mehran
How can I get image file from submit form?
Anonymous
Hi can anyone help me with datetimefields in django
Anonymous
Like when student takes online exam we need to record his time in db
Anonymous
Anyone knows soltn help...
bikrant
Study topic about permissions on Django docs
Is it related to permissions?. Overriding the form class helped to limit the list Thanks
Doragonsureiyā
from django.shortcuts import render from django.http import * from . import u1 import sys,os # Create your views here. def index(request): if(request.method == 'POST' and 'run' in request.POST): x = u1.printhis() return render(request,'home.html',{'res':x.stdout})
To share code or error tracebacks please use an online pasting service, here is a list of suggested sites: - https://del.dog - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev
Firmcode
Error: 'NoneType' object has no attribute 'save'
bikrant
Yup it's related to permissions and your view
Actually the group is a custom model not the default one
Mirco
Actually the group is a custom model not the default one
So you just need to check if user is inside that group or not
k
Where is your output html file
Now it's working , i tried executing the file with sys.executable.
Harsh
How can I get image file from submit form?
You can simply write request.POST.FILES in view.py and store it in media folder
k
Great
Yes..thanx though!
Mehran
You can simply write request.POST.FILES in view.py and store it in media folder
Thank you so much, I was trying with request.FILES and it returned None
garrip91
I have added "blank=True" for all columns in my "models.py", but my Django is showing me "IntegrityError" / "NOT NULL constraint failed". What can I do with it?
Anonymous
Can any one recommend me source to learn django 3
evakuator
Can any one recommend me source to learn django 3
https://www.youtube.com/watch?v=tLpcxBmGJW8&list=PLd3UqWTnYXOkm_MTKVZ8CJmgJ6sfLUIWK
bikrant
So you just need to check if user is inside that group or not
creating new post form overriding init() and defining the queryset for group helped. How to do the same thing in drf?
S
Hi. Does anyone knows this error in DRF? Code 500. Error: Internal Server Error And what should I do to solve it?
S
Hi. Does anyone knows this error in DRF? Code 500. Error: Internal Server Error And what should I do to solve it?
AttributeError at /api/path 'NoneType' object has no attribute 'model'
V
Hi i'am begginer how to add meta description, keywords and seo title for each post in my blog website
Anonymous
Can anyone send updated link/drive link for Django 3 - Python Backend Web Development For Beginner
Anonymous
What are you talking about?
It's udemy course..
Meh
What even. The backend is using Django. Hence I asked it here. Its also not the first time redux was mentioned here.
Doragonsureiyā
Anyone?..
Maybe anyone is here, yes, but they are not obliged to read everyone's message here neither to reply to everyone's message, if someone wants to reply to your message, they will do that, just don't try to draw attention to your message writing "anyone?" every 5 minutes, that will lead you to be warned for SPAM/Flood, just be patient or use Google/DuckDuckGo to research about your question instead of wasting time here waiting for people to do your work. Have a nice day 😊
Vasu
Hi
David
am trying to generate order no model in my courier service website how to i go about it
Bunty chhatri wala..
Is it possible to use more than 1 django forms on a single html page?
John
Is its okay to use django sqlite3 database for production level
virtualenv
https://dpaste.org/SuKp#L8 hi. i want to update a model field in pre_save signal. this is not whole of my code but i have to do in this way. thanks for your attention.
Venu
Any source to learn
John
https://freelystream.herokuapp.com/ i will depoly my application on heroku but when i run its will show this i doesn't know what is this and i can't find any solution on internet
Anonymous
No usernames
DD777
How to connect MySQL to Django project?
Mojtaba
How to connect MySQL to Django project?
https://www.digitalocean.com/community/tutorials/how-to-create-a-django-app-and-connect-it-to-a-database
Anonymous
I have two django applications and I want to make both the server up by using below command Python manage.py runserver ip:8000 Phthon manage.py runserver ip:8001 8000 port is working fine and 8001 is not working
Anonymous
Both are working in local machine but in a network other machines are able to access only 8000 port
Fazil
I am working on similar project
goku
Can anyone tell which drf authentication would be best for native mobile app ? I want to keep user logged in until they clear the data of app
Anonymous
Let me try
Anonymous
No luck same issue Within the machine it's working fine But in other machines connected in network, unable to load
Kartikeya
Hii, I want to build web app which can fetch real time data from site how should I start
The
Can I assign commandline (argparse) into a button in django?
Null Boy
I deploy my django project on nginx server with aapanel But /static not found How can i fix it ?
Mirco
I deploy my django project on nginx server with aapanel But /static not found How can i fix it ?
there are I don't know how many examples on internet just have a quick search
Mirco
you need to configure nginx to map django statics and let it serve them
⚜️
Hello everybody. How to call reverse object in templates? Let me show you the code https://dpaste.org/5i8q I want to call account object via {{ request.user.}}, but I don't know how to do it
Anonymous
Nope running it using task scheduler
Null Boy
so share it
My problem was solved I change my port from 8090 to 8000
Mirco
My problem was solved I change my port from 8090 to 8000
It's not related to statics, it was just grown proxy pass setting for your Django listening port
~
These are the commands used
I don't really understand why you want to do this. Why do you need to do it it that way?
Null Boy
It's not related to statics, it was just grown proxy pass setting for your Django listening port
But my django admin static files not found. I tried python manage.py collect static command but my problem wasn't solved
Mehran
I deployed my django project on cpanel host I solved static files problem with whitenoise but my media files does not load, can anyone help me , ty
Mehran
How do you solve static problems?
https://www.google.com/url?sa=t&source=web&rct=j&url=https://m.youtube.com/watch%3Fv%3DqSrJt3UD9xk&ved=2ahUKEwjdubSCsM3tAhUB6OAKHf6lCgYQ28sGMA16BAg7EAY&usg=AOvVaw3d7BarehpmBR1cQ2ThJmCL