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
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
Mirco
this is flask
Go into offtopic group
AB
Can you help me please Why django girl tutorial website is not working?
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
yup
😂
Anonymous
Anyone here able to help ..buid a website on django, for a school project
Doragonsureiyā
Anyone here able to help ..buid a website on django, for a school project
Homework? Job/Quiz question? you have to do it yourself, this group is to help you on specific issues you have on YOUR code, so you have to show the code you wrote by yourself and explain where and why you are stuck... as simple as that. 🤷🏻‍♂️
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
Hashiq V H
I have an problem while running runserver how I can fix it
django.db.utils.OperationalError: unable to open database file
Anonymous
django.db.utils.OperationalError: unable to open database file
https://stackoverflow.com/questions/40959337/django-db-utils-operationalerror-unable-to-open-database-file
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
Felipe
self.context["request"].headers.get("Accept-Language")
Sandeep
write view class, for example
Can u help me if u have any template for that
Sandeep
write view class, for example
I have created all the buttons only thing remaining is I need to validate all
Sandeep
SMTP server username password and port
cj
Anyone have a django chatbot code
read channels documentation, they have exactly that code there
Gil
SMTP server username password and port
first create a function with any snmp package that validate the connection. After it, link this functino to a view class, and run!
Ganesh
I want to validate the email in django
In form.py you can validate
Artur
How I can carry over my telegram bot on django???
Anuj
How to use custom clean url how to make it
HIRO
How to use custom clean url how to make it
There id model.url field where u can put custome (external ) urls
Gil
Thanks @GilObradors I'll try that..
Sorry smtp package not snmp
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
How to apply CRUD method plz help
U can go through this..
Sandeep
https://www.javatpoint.com/django-crud-application
Anonymous
U can go through this..
Can u plz suggest video tutorial
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
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
محمد دلشاد
And in template?
didn't get u what do u want to do in template
محمد دلشاد
?