Sai
rest framework is not installed on either your m/c or in ur virtual env
No bro I had done that I had installed it using "pip install djangorestframework" Command
محمد دلشاد
with pip install djangorestframework
Sai
with pip install djangorestframework
While I am reinstalling it I am getting requirement already satisfied
محمد دلشاد
Sai
try it again and share the message of terminal with us
Sure sir I will do that I will inform u and thanks for the help
Endless Life
I could not able to install MySQLclient
محمد دلشاد
try pip3 freeze and then check for djangorestframework==3.11.1 avaiable or not
محمد دلشاد
I could not able to install MySQLclient
go stackoverflow there is already a soln waiting for you
Endless Life
Ok
Mr
Hello please clear my doubt which one is better in flask Flask sqlalchamy Sql server
Mehmet
Flask SqlAlchemy is an ORM implementation. Sql Server is DB server.
Mr
I create a inventory management system for my client which one i use guide me
Mehmet
You can use SqlAlchemy over Mssql. https://docs.sqlalchemy.org/en/13/core/engines.html#microsoft-sql-server
Vitaliy
You want us to compare pear and apple.
I'd say, bird and whale.
Anonymous
I'd say, bird and whale.
Java and javascript?
Mehmet
I create a inventory management system for my client which one i use guide me
I would select Django, because every tutorial on Flask and SQLAlchemy urges a different design pattern. In my opinion you should use Django for complex projects - and it seems you are about to launch one-, even if it needs a learning curve.
Mr
And its not smart think🤣
Mehmet
You will need migration and schema versioning solution, maybe connection pooling solution,, in Flask you find your batteries manually but in Django it is "batteries included"
Mr
But Sir i dont know about django
Mr
First i should learn django
Mehmet
Do you really know Flask, SqlAlchemy stack with a migration solution such as alembic?
Mehmet
And do you believe you can enforce a project structure on Flask, in order to separate, presentation, persistence and business logic layers?
Anonymous
First i should learn django
So go ahead and read Django documents
Anonymous
It is useful API'S and i think it is better than flask
Anonymous
Hello, I created a static page on my website. But when I click on the url, i get valueError at /page-profile / Field ‘is’ expected a number but got /page-profile’ Page-profile is the name of the static page
Anonymous
I created a template for it and also a view and a url
Mirco
Can you send error screen shot?
by using pastebin or similar, images are not allowed
Doragonsureiyā
Ok sir as you wish
Read the rules before any activity: @PythonRules
Mirco
it's not as I wish, they are our rules
Sh
Assalamu alaikum. Any good tutorial for TDD(test development driven)
Anonymous
Hello everyone
Anonymous
Can anyone help me in a task realted to Django? It's important
Anonymous
The task is to build a database schema and Django model for a real estate application. The HTML representation and the Frontend structure is given.
Mehmet
The task is to build a database schema and Django model for a real estate application. The HTML representation and the Frontend structure is given.
Do you wish one or more of us to implement that for you or make brainstorming session? I personally do not understand what you need specifically.
Anonymous
Mam, it would be really helpful if you could implement it because I am not much familiar in Django and the deadline of the task is 6 September
Mohit
😂
Mehmet
Mam, it would be really helpful if you could implement it because I am not much familiar in Django and the deadline of the task is 6 September
Than please, give detailed time and scope constraints here, one of members may return with phase plans and cost requirements.
Anonymous
do your homework or pay
Sorry...I misunderstood the very objective of this group...I seeked for guidance...
Mohit
Sorry...I misunderstood the very objective of this group...I seeked for guidance...
You weren't seeking for guidance, you wanted somone to do your homework for you and that too before the submission date
Mohit
You just want the database schema and the models build only?
Anonymous
You weren't seeking for guidance, you wanted somone to do your homework for you and that too before the submission date
I was asked about the options...I said it would be grateful if someone would do else... guidance is also welcomed
Mohit
Yes
OK then do your initial study first, try to analyse the frontend structure and figure out what all fields and models you require to store any data.
Anonymous
Okay
Ferrum
i want to add infinite pagination to my django site i have tried django-el-pagination library its not working do you know any other library i can use, or a resource i can read? thanks
Anonymous
Can someone tell me how I can add to manytomanyfield
Anonymous
user.following.add(user2)
Anonymous
This throws error
Mohit
This throws error
What's the error?
Anonymous
What's the error?
model Follower instance expected but got User myusername
Anonymous
I have model Follower (models.model)
Mohit
followers field in your table must be manytomamy to "self". Here followers are also users
Mohit
Okk you have a model Follower? What does it hold?
Mohit
Can you show the many to ment field
Anonymous
class Follower
Anonymous
user foreign key
Anonymous
follows manytomayfield with related name following
Mohit
You should add an instance of follower becoase your many to many field is directed to Follower model.. You were trying to assign a User object instead
Mohit
user2 is of type User and not of type Follower
Mohit
It's expecting a Follower object