Anonymous
:)
hello guys i am working on a school ERP and i want to add a feature in this project which is when admin add a new student a message will send to user on there email and sms so how can i add this any idea ?
Mirco
How can I map Django models to execl
You have to load data via Django command by passing your file , process it using one of the python libraries to parse it and create model objects
Anonymous
Message me for free online course of Django in udemy for free
Anonymous
Anonymous
So once I do makemigratios it's througing error no such table appname.id Because Django will create default id
Mirco
Did you test django-import-export library?
or https://simpleisbetterthancomplex.com/packages/2016/08/11/django-import-export.html as already suggested above to make that work via django admin or a simple view
:)
Mirco
Artyom
Hello, guys! There is true, that on_delete value like that models.ForeignKey(Name, on_delete=models.CASCADE) allows to delete subordinate objects (with foreign key field) when you deleting primary
object(with primary key)?
Doragonsureiyā
Artyom
If I trying to delete object of Name model debuger throw this: Key (id)=(288) is still referenced from table "subordinate_table".
Mirco
Artyom
Thanks
Mirco
in a few words, if u kill the parent then you will kill the children
Artyom
Mirco
Anu
Anyone able to help over team viewer to open my django page from another pc in LAN
Anu
Just to watch how to do in the right way
Doragonsureiyā
Please format the code you posted, by wrapping it in triple backticks. -> `
inchidi
english only please
Anu
inchidi
Anu
I have made my hello world page ...I just want to access page from another pc in LAN
Mirco
Anu
How....I am beginner
inchidi
python manage.py runserver 0.0.0.0
inchidi
note that this is not the proper way to do this but easiest
Anu
I will do now
Weslley
ALLOWED_HOSTS = ['*'] in settings too
Anu
Port number not required
Anu
Now command error
Anu
Is not a valid port
Anu
0.0.0.0:8000 is executed
Anu
Starting development server at above address
Anu
What is next
Sagar
Anu
From LAN pc
Sagar
Yes
Anu
I wil
Anu
Not working
Sagar
What's error
inchidi
From LAN pc
if you want to access from other pc then it will be <your_ip>:8000
Anu
Site can't be reached
Anu
Your IP means
Anu
Ip of pc in which I run mnge.py runserver
inchidi
Anu
Ok
Anu
Ok
Anu
Anyone can send personnel message
..then I can share pic
Sagar
Sagar
Share url
Anu
I don't know
Anu
Ok I will
Sagar
Sagar
Then self explanatory
Anu
Django 2 https://imgur.com/gallery/goyGsMM
Anonymous
using wrong ip ... use ipconfig to note your ip
Anu
Ok
Anu
I will check
Anu
Client https://imgur.com/gallery/avoCiTZ
Anonymous
thats a public ip address.
Weslley
guys, i'm in trouble in my app Django + Celery + python-telegram-bot.
i start the bot.start_polling() in apps, and for tests in a view i call bot.sendMessage and its works properly.
But, if i create a task and in this task i call the same bot.sendMessage, i get a error "Conflict: terminated by other getUpdates request, error 409"
Anu
Confused
Anu
Anyone can help over remote screen
Anu
Ok
Anu
Ok...success
Anu
Thank you
Le Createur
Ok...success
😎😎😎😎
Anu
Client https://imgur.com/gallery/VfQ0kgT
Anu
Page like this ...some error
SatyendraN
Wow, you guys did really hard work to make it successful.
Congratulations
Anu
Anonymous