محمد دلشاد
with pip install djangorestframework
Sai
محمد دلشاد
محمد دلشاد
Endless Life
I could not able to install MySQLclient
محمد دلشاد
try
pip3 freeze
and then check for
djangorestframework==3.11.1 avaiable or not
Sai
Endless Life
Ok
Kha
Mr
Hello please clear my doubt which one is better in flask
Flask sqlalchamy
Sql server
Mehmet
Mr
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
Anonymous
Mr
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
Anonymous
It is useful API'S and i think it is better than flask
Mehmet
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
Anonymous
Anonymous
Mirco
Mirco
it's not as I wish, they are our rules
Anonymous
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
Sdm
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
Sh
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
Mirco
Mohit
😂
Mehmet
Anonymous
do your homework or pay
Sorry...I misunderstood the very objective of this group...I seeked for guidance...
Mohit
You just want the database schema and the models build only?
Anonymous
Anonymous
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
Mohit
ɱσσɳ
Anonymous
Can someone tell me how I can add to manytomanyfield
Anonymous
user.following.add(user2)
Anonymous
This throws error
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?
Anonymous
Mohit
Can you show the many to ment field
Anonymous
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