Maqbool
This is my code.
Anonymous
Remove migrations and create new db and try again
Maqbool
I don't know where the 'issued_book_id' coloum come from. I don't have any idea about that
Maqbool
*column
Maqbool
show me the codes
Complete code is there
Maqbool
Wait
Maqbool
Sorry for that, now its ok
CHANDRA SHEKHAR
you shold use python manage.py migrate - - fake appname zero after that just delete the migration file that that was created except init.py and delete the previous database and create new one and connect it python manage.py makemigrations then run python manage.py migrate - -fake-initial
Anonymous
SELECT * FROM course_review_report LEFT JOIN courses ON course_review_report.cid = courses.cid Can anyone pls write the querryset for the above sql query
Maqbool
Makemigrations working
Maqbool
which model?
In blog, model 'Post'
Manish
@maqboolthoufeeq do default=blank instead of default-""
Maqbool
ForeignKey to BookIssue
Manish
ForeignKey to BookIssue
yes and also add a null=True
Maqbool
not sure
Ok, I'll try
Maqbool
Thak you bro,😊
Manish
and also change migration file
Maqbool
I'll let you know if something happens
Manish
and please post full error on any pastebin or del.dog
Manish
@pyflare i get a trailing space on my urls. how to fix that?
Anonymous
Hi i learnt python can u suggest me a resourse to learn django
Doragonsureiyā
Hi i learnt python can u suggest me a resourse to learn django
Check out PythonRes, a channel for Python resources (links to help you out).
Srijwal
Hey, can anyone suggest a tool to migrate stored procedures of mssql to postgresql functions other than sqllines?
Anonymous
!res
Thnq
Alexander
Hello guys. Does anybody know how to redirect users to default browser app from mobile?
Anonymous
Hi guyz i am unable get mysql client for python 3.6
CHANDRA SHEKHAR
Hi guyz i am unable get mysql client for python 3.6
https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient wheel pkg from this website and install it manually
Anonymous
the problem is i am doing it in office linux server and i do not have net connection and also it is linux server 😔
Anonymous
Type pip install mysqlclient
CHANDRA SHEKHAR
please help me with linux packages
i don't know whether you could install packages offline or not . try pip3 install mysqlclient if it works
Mirco
Please guys move to @python
Anonymous
Please guys move to @python
this is for making django backend database as mysql
Mirco
this is for making django backend database as mysql
Ok good Anyway why do u wanna use MySQL ?
Mirco
I remember there was a workaround to get properly work mysqlclient by using pymysql
Anonymous
actually i am creating a web app and using djnago first time.. heard about this being the best.. mysql we already have a server tht why
felix
Hello, I have such a problem, I created a project in django, as it should, with virtualenvironment and everything put on github. i bought a vps and a domain. now i want to deploy the project on vps, but i don't know how, i searched a lot on the internet but nothing fits me correctly. Can anyone help me with some advice?
Anonymous
Hello everyone. I have a question. I need store in database event date which i extract from external service. Is it right to store it by following season_start = models.DateField() if i didnt specify any argument in DateField which value will be stored in created field untill i write in field my information?
Anonymous
Mirco
Why i should specify it ?
to avoid your question "if I didn't specify..." and so you always know what's the default one
Anonymous
to avoid your question "if I didn't specify..." and so you always know what's the default one
But if i didnt specify and create field with models.DateTime() is in this field will be anything before i write info in it ?
Anonymous
Yash
If user is logged in then they dont acesss the login and signup page how achive it
Mirco
If user is logged in then they dont acesss the login and signup page how achive it
take a basic tutorial about django and you will find out it
Mirco
Thank you man
docs and django source code are always your best friend
The Guy
How to filter out objects of a model related to a particular user in django ? If Book is the model then Book.objects.all() Displays all objects of model Book..but how to filter for specific user ? I searched net but also is fixed in the same problem
The Guy
Book.objects.filter(user=request.user) I tried this ..but it says user not recognised.. I import necessarily files too
The Guy
Sending media is not allowed in this group . How to send pics of code ?
Mirco
And read rules 😊
Mirco
Have you user field in Book class?
I don't think so, but I'm waiting for his code
Rajab
I don't think so, but I'm waiting for his code
Yeah you right👌 .if we don't see his code we don't say anything
Sami
from django.contrib.auth import authenticate,login
Sami
what do these fucntions do and how
Mirco
what do these fucntions do and how
The first one authenticate the user and the second one logs in the authenticated user
Sami
do I have to use the model User for that or any model would work
Sami
Client = authenticate(request, ClientID=ClientID) if ClientID is not None: login(request, ClientID) redirect('home')