Forum

How do i run django as a daemon in hiawatha?

Simon
1 March 2012, 23:12
Hi Hugo,

How do i have to put this in hiawatha.conf to run django as a daemon?
./manage.py runfcgi method=threaded host=127.0.0.1 port=3033
Hugo Leisink
2 March 2012, 01:00
You can't put it in hiawatha.conf. That file is for Hiawatha's configuration only. Ask the Django community about how to (automaticly) start Django.
Simon
2 March 2012, 15:08
For example in cherokee it is specified by the line "Interpreter".
"Command to spawn a new source in case it where not accessible."

The line of code:
python /var/www/example/manage.py runfcgi method=threaded host=127.0.0.1 port=3033 protocol=fcgi

Larry jr. says: /forum/topic/505
Jamphel
15 March 2012, 17:22
Still i am getting the same error.. here is my login view [I am using pthoyn2.6]@anonymous_requireddef login request, form_class=None, template_name='registration/login.html', redirect_field_name=REDIRECT_FIELD_NAME :"Displays the login form and handles the login action."redirect_to = request.REQUEST.get redirect_field_name, '' if request.method == "POST": form = AuthenticationForm data=request.POST if form.is_valid : if not redirect_to or '//' in redirect_to or ' ' in redirect_to: redirect_to = settings.LOGIN_REDIRECT_URL from django.contrib.auth.views import login login request, form.get_user if request.session.test_cookie_worked : request.session.delete_test_cookie return HttpResponseRedirect reverse 'goto_dashboard' else: form = AuthenticationForm request #captchform = form_class() request.session.set_test_cookie if Site._meta.installed: current_site = Site.objects.get_current else: current_site = RequestSite request return render_to_response template_name, 'form': form, redirect_field_name: redirect_to, 'site': current_site, 'site_name': current_site.name, , context_instance=RequestContext request login = never_cache login
Hugo Leisink
15 March 2012, 22:02
I don't know Python or Django, so I'm afraid I can't help you with that. Sorry.
This topic has been closed.