python - How to use scripts to excecute django commands -



python - How to use scripts to excecute django commands -

hi created website in django. , have used web hosting provider has django, python , sql installed. not have ssh alternative or command prompt in file manager. how can utilize script excecute commands after uploading site server .

i want file created updatedb.sh or updatedb.py .

can tell me how utilize scripts lone host django site live.

it possible have django views execute lines like:

import os os.system("python manage.py syncdb")

in theory site working that. however, this poor strategy deployment. aside hassle of having os.system lines every time want anything, if entire site breaks? you'd using convoluted hacks basic maintenance.

if web hosting provider doesn't back upwards kind of command line or give other options setting django, it's time find new web hosting provider. might recommend heroku, supports django , lets deploy using git. (it free amount of use).

python django linux terminal

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -