Raffaele
can someone help me????
Anonymous
class Todo(db.Model):
tablename = 'todos'
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(), nullable=False)
def __repr__(self):
return f'<this is the record data {self.name}>'
db.create_all()
@app.route('/todos/create', methods=['POST'])
def create_todo():
error=False
body={}
try:
desc = request.get_json()['description']
todo = Todo(desc,desc,000)
db.session.add(todo)
db.session.commit()
body['description']=todo.name
# print('----------------------------------')
# return redirect(url_for('index'))
except:
error = True
db.session.rollback()
print(sys.exc_info)
finally:
db.session.close()
if error:
abort (400)
else:
return jsonify(body)
this is the code only one parameter needs to be passed i passed 3 still it is working
help anyonne
its SQLAlchemy Flask
Mirco
Doragonsureiyā
Anonymous
why is this not giving error I am passing 3 values in object of modal and required is one only
Anonymous
Please help someone
Anonymous
this is flask
AB
Can you help me please
Why django girl tutorial website is not working?
Mirco
Mirco
I sent a report to them so I think they will manage asap
Mirco
Nasir
Please I added jquery in my django app, but jquery is not showing any effect until I refresh the page. If any one knows the reason please help me.
Katia
I need to change admin panel's panel to be more friendly. Could you please recommend me a good tutorial to understand how to overwrite django's admin panel template ? Thanks .
Raffaele
can someone help me {template for django blog}
Raffaele
?????
Pk
Hello Developers I have createView Form when I go one page page to other page It
Pk
It show me error Variable DoesNot Exist
Pk
My code is
Pk
https://pastebin.com/q0nPnede
Pk
I use FormHelper when I use {{form | crispy}} It excute properly but it does not work with {% crispy form%}
Pk
Please help i dont trace out the error
Pk
Error is VariableDoesNotExist at /accounts/login/
Failed lookup for key [form] in [{'True': True, 'False': False, 'None': None}, {}, {}]
Ghorz
Anonymous
Anyone here able to help ..buid a website on django, for a school project
Bjorn
Stephen
Anyone with a detailed step by step procedure on how to host your Django Project on CPanel?
Hashiq V H
I have an problem while running runserver how I can fix it
Pk
Error is VariableDoesNotExist at /accounts/login/
Failed lookup for key [form] in [{'True': True, 'False': False, 'None': None}, {}, {}]
I use FormHelper when I use {{form | crispy}} It excute properly but it does not work with {% crispy form%}
https://pastebin.com/q0nPnede
Felipe
Hey Guys, whats up?
Felipe
Do you guys know how can I access the http header on my serializer?
Felipe
I'm trying to access them on the request, but it's not working
new
Anyone have a django chatbot code
Sandeep
Hi guys
Sandeep
Need help
Sandeep
I want to validate the email in django
Sandeep
Can any one help me
Sandeep
Need to create a test button which should validate SMTP server user name password and port
Gil
Felipe
Felipe
self.context["request"].headers.get("Accept-Language")
Sandeep
SMTP server username password and port
Ganesh
Artur
How I can carry over my telegram bot on django???
Anuj
How to use custom clean url how to make it
Sandeep
Gil
HIRO
Alex
Hey guys!!! I have an app with restric access to a view. I create a permission and assign it to a group (I create prevously), then I put some users in that group those user haven't that permission, but the group has. I still can't accesss my view. Am I missing something?
Kwame
hello guys
i'm very new to django and i'm trying out a project i saw online but then i do have an error displaying template. i'll be grateful if anyone could help me fix the problem
Anonymous
How to apply CRUD method plz help
Sandeep
Sandeep
https://www.javatpoint.com/django-crud-application
Prasanthari
Sandeep
Can u plz suggest video tutorial
U can go through to Corey Schafer's YouTube django playlist.. there u can learn crud operations with completely functional project..
Anonymous
Kwame
Anonymous
Does anyone know how to use query params with viewsets. I am not allowed to use put in that api url
Anonymous
?
Anonymous
The 'image' attribute has no file associated with it.
Anonymous
i m getting this error gain and again even i have added a field of image in forms
Anonymous
can someone tell why is this happening?
Anonymous
actually it is: ValueError at /products/
The 'image' attribute has no file associated with it.
Bunty chhatri wala..
Creating a delete view..
Can i pass Id in Urls like this:
path('delete/<id>' , views.delete, name = "delete")
Or
path('delete/<int:id>' , views.delete, name = "delete")
Or any other way ?
محمد دلشاد
محمد دلشاد
محمد دلشاد
path('delete/<str:id>' , views.delete, name = "delete")
like this
Bunty chhatri wala..
Okk
Bunty chhatri wala..
محمد دلشاد
?