:)
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 ?
Yarel
How can I map Django models to execl
Did you test django-import-export library?
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
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
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)?
Artyom
If I trying to delete object of Name model debuger throw this: Key (id)=(288) is still referenced from table "subordinate_table".
Mirco
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)?
Cascade deletes. Django emulates the behavior of the SQL constraint ON DELETE CASCADE and also deletes the object containing the ForeignKey. what docs says
Artyom
Thanks
Mirco
in a few words, if u kill the parent then you will kill the children
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
Le Createur
Just to watch how to do in the right way
Ohh i am away from my pc. Can you remind me in 1 hour ??
Doragonsureiyā
Please format the code you posted, by wrapping it in triple backticks. -> `
inchidi
english only please
Anu
I have made my hello world page ...I just want to access page from another pc in LAN
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
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
Sagar
Your IP means
That systems ip address
Anu
Ok
Anonymous
ALLOWED_HOSTS = ['*'] in settings too
@Anurajmv apart from what he suggested 1. fuser -k 8443/tcp 2. ip addr show 3. note your ip addr 5. python manage.py runserver <ip>:8443 Try this.
Anu
Ok
Anu
Anyone can send personnel message ..then I can share pic
Sagar
Share url
Anu
I don't know
Anu
Ok I will
Sagar
I don't know
Browse imgur
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
Le Createur
Anyone can help over remote screen
You are using windows. Disable the firewall of windows itself or of your antivirus
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
Anonymous
Client https://imgur.com/gallery/VfQ0kgT
understand whats happening beneath ... stop following steps and pls google .
Anonymous