Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8501105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:07:02+00:00 2026-06-11T01:07:02+00:00

I wanted to dive into Python\Django development and used what I had at hands:

  • 0

I wanted to dive into Python\Django development and used what I had at hands:

  • hosting on Hostgator (not a vps but shared).

They do support Django but through fcgi. I did all what was said in the small guide here

So I got “hello world” working. Though I have a time instead of hello world in my app’s views.py:

from datetime import datetime
from django.http import HttpResponse
def index(request):
 return HttpResponse(datetime.now().strftime('%H:%M:%S'))

But now, when I do any changes to views.py – i can’t see resutls immidiately. I do delete all *.pyc files, still nothing. For example even if do this:

return HttpResponse('Hello World!')

I don’t get this but still see time.

I’m totaly lost already. I tried many things through ssh with django-admin.py…but still – I see time.

If I make a mistake in a code – it will catch it up quick (may be not immidiately) and give out error\debug info, but even after that if I correct it to a new code = still the result is time.

Seems like I’m missing something. Some “refresh” function of views.py…Purge cache..or smth like that? Restart app?

UPD: kill -USR1 index.fcgi did it!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T01:07:04+00:00Added an answer on June 11, 2026 at 1:07 am

    It’s the fcgi!

    You probably have to restart the spawned server, so it reloads the Python files.

    You can achieve that by touching the .fcgi file:

    $ touch index.fcgi
    

    See How to use Django with FastCGI, SCGI, or AJP.

    Dreamhost, a Hostgator competitor says that you sometimes need to kill the process:

    killall -USR1 index.fcgi
    

    But I don’t know if that works with hostgator too.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm very new to Python, sort of following Dive into Python 2 and wanted
I am stuck at this particular example from dive into python Example 4.18. When
Before I dive into my question, I wanted to point out that I am
Just wanted to know before I dive into this field. Is it possible to
Wanted to know if someone had a suggestion on code or maybe there's a
I wanted to use 6 different textures on a cube, one per side, but
Wanted to merge my branch back into the main trunk today. Haven't worked on
I wanted your advice for the best design approach at the following Python project.
I wanted to delete a selected Item from a List control but can't. What's
Wanted to know what you would recommend as a hosting provider for a popular

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.