You'll need to do some research to find out how Turnkey Linux deploys your 
Django app.  There are multiple methods, but the one recommended in the Django 
docs is to use Apache + mod_wsgi.  If Turnkey Linux uses this method, Apache 
should be configured with a virtual host that points at a WSGI file that 
handles running your application.  Check out the Django 
documentation<https://docs.djangoproject.com/en/1.3/howto/deployment/modwsgi/> 
for more detailed info on how this is set up.

It sounds like you already have the app up and running, and you just want to be 
able to reload the app.  The best method is to run the touch command on the 
WSGI file.  So, in your terminal on the Turnkey Linux server:

$ touch /path/to/wsgi/file.wsgi

Will cause the app to be reloaded.  If that doesn't work for some reason, you 
could also restart Apache.  You'll have to research how to do that for Turnkey 
Linux; usually you use a command like "sudo /etc/init.d/apache2 restart" or 
"sudo service httpd restart".

Hope this helps,

Brett

From: Petr Přikryl <prik...@atlas.cz<mailto:prik...@atlas.cz>>
Reply-To: <django-users@googlegroups.com<mailto:django-users@googlegroups.com>>
Date: Wed, 14 Dec 2011 10:15:16 +0100
To: django-users 
<django-users@googlegroups.com<mailto:django-users@googlegroups.com>>
Subject: Django a Turnkey Linux -- I need your experience.

Hi,



Being quite new to Django, I need to move the semi-ready

application to the publicly available server (for a company users)

and test it there.



It happened that the Django Turnkey Linux virtual machine

was installed for the purpose by someone else. I have succeeded

to SCP the files there. I can run the console for the root account.



I was able to run the manage.py syncdb and it seems that it

created the wanted application tables in the MySQL preinstalled

database. So far, so good.



I have added my application to the settings.py and to the urls.py.



Now I need the equivalent of the restart of the previously

used development server (manage.py runserver). I have found

something about "touch .wsgi", but I am not sure if it holds also

for the Django Turnkey Linux installation.



How can I do that without the need to restart the virtual machine?

Can you help me here?



Thanks,

Petr

--
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to 
django-users@googlegroups.com<mailto:django-users@googlegroups.com>.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com<mailto:django-users+unsubscr...@googlegroups.com>.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to