Guillermo
Raghava
Hi, I am trying to print something during my migrations and nothing is being printed except applying that migration. Is there a way to print something during migrations?
Michael
Hi, guys! I have a question. Can I create a project into another django project? Or am I crazy? jajaja
Guillermo
Guillermo
Raghava
Eventhough I gave a print statement in the function nothing is being printed when I run migrations
Guillermo
use pastebin or something, dude
Raghava
Raghava
https://pastebin.com/rWVTW2z1
inchidi
007
Michael
what are you trying to do?
well, I'm creating a accounting web. Each business login with your user and password, but each one should have your own database.
inchidi
Guillermo
inchidi
Michael
thanks, I'll look it
inchidi
oh then prolly your function not called
Raghava
Raghava
I am calling my function in operations inside Migrations class
inchidi
maybe your all_streams empty
Guillermo
inchidi
Raghava
inchidi
hmm thats weird, how about change to print(streams.first_message_id, streams.first_message_id) ?
inchidi
maybe its already printed but all None
inchidi
oh yeah thats true 🤔
Raghava
I think my function is not being called since when I gave print in migrations function it printed it
inchidi
11 Streams
b-but you said you can see its 11 steams 🧐
Raghava
When I am running it I was able to see there are 11 streams
inchidi
well, what i mean is put that code inside your migration files not shell tho
007
url(r'(?<pk>\d+))$, ) how to convert this url into django path
Mirco
007
Thanks 😊
Mirco
007
Path(' ?p<int:pk>/ ', views.----)
007
Mirco
Why ?
What kind of path do you want ?
Mirco
For DetailView ?
007
Yes...
Mirco
?p is not necessary
007
p tag i have used for html
007
<a href= "{{school.id}}"> some_text </a>
d.l.c
Can anyone suggest me the Best books for Django begginers?
Rohan
Blaze
MK-47
Hi guys am new in this group
MK-47
is there anyone who has this book... django for beginners by william
Mirco
MK-47
😂 was asking to see if anyone has a copy to assist
MK-47
I understand. thanks
Mirco
Sampreeth
Where can I learn middleware in django
Any suggestions???
Mirco
Disekurity
I have spent a lot time to find how to use cookiecutter-django with docker but nothing useful...
I still have issues with environment variable setup
Any help ???
Rohan
Amd64
sahil
I'm looking for internship in Django
Rammanoj
do with transaction.atomic() lock the rows in the transaction, or do we need to lock them seperately ?
Idiris
Hi everyone
Idiris
I am django beginner
Anonymous
Hi I am Suraj
I am new to Django
Idiris
I am too
Rajeshkanna
I am new to Django
Anonymous
/
Anonymous
So start dive in django
Ooha
If webcam is opened by default, how to close it in cv2??
Anonymous