Maqbool
This is my code.
Maqbool
Anonymous
Remove migrations and create new db and try again
Maqbool
Maqbool
I don't know where the 'issued_book_id' coloum come from.
I don't have any idea about that
Maqbool
*column
Manish
Manish
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
Maqbool
Makemigrations working
Manish
Manish
@maqboolthoufeeq do default=blank instead of default-""
Maqbool
ForeignKey to BookIssue
Maqbool
Manish
Maqbool
Thak you bro,😊
Manish
and also change migration file
Maqbool
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?
Dennoh
Rajat
Anonymous
Hi i learnt python can u suggest me a resourse to learn django
Mirco
Srijwal
Hey, can anyone suggest a tool to migrate stored procedures of mssql to postgresql functions other than sqllines?
Anonymous
Anonymous
Alexander
Hello guys. Does anybody know how to redirect users to default browser app from mobile?
Mirco
Anonymous
Hi guyz i am unable get mysql client for python 3.6
Yash
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
Anonymous
Mirco
Please guys move to @python
Mirco
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
Mirco
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?
Mirco
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?
Mirco
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
Mirco
Yash
If user is logged in then they dont acesss the login and signup page how achive it
Mirco
Mirco
Anonymous
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
Mirco
The Guy
Sending media is not allowed in this group .
How to send pics of code ?
Mirco
Mirco
And read rules 😊
Rajab
Sami
from django.contrib.auth import authenticate,login
Sami
what do these fucntions do and how
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')