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

  • Home
  • SEARCH
  • 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 7712505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:38:57+00:00 2026-06-01T01:38:57+00:00

If I startup the dev server and goto a certain view. I get no

  • 0

If I startup the dev server and goto a certain view. I get no response.

my view is like the following

from django.http import HttpResponse, Http404
from goals.models import Child
import json

def viewChildren(request):
    jsonData= []
    allChildren = Child.objects.all()
    for child in allChildren:
        jsonData.append({'id': child.id, 'name': child.name})
    return HttpResponse(json.dumps(jsonData),mimetype="application/json")

To test out what was going on, i did a the following

python manage.py shell
>>> import goals.views as v
>>> r = v.viewChildren('')
>>> print r
Content-Type: application/json

[{"id": 1, "name": "Test Child"}, {"id": 2, "name": "Second child"}]

So I know that the view is correct and the right data is being passed on after the view is called… But this isn’t being passed on when I view this from a browser.

Any suggestions?
(this is similar to a lot of questions but none that I have found have shown the above situation where the view IS providing the correct response but from a browser it is not)

  • 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-01T01:38:58+00:00Added an answer on June 1, 2026 at 1:38 am

    Just solved the problem. I took out all of the rest of the urls as I thought maybe they weren’t correct. Turns out that a previous edit had made all urls goto a blank index one which returned no response. After fixing that, the above worked just fine.

    Thanks for looking anyways…

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

Sidebar

Related Questions

How do get the startup path ( system.windows.forms.application.StartupPath ) of my exe without adding
The Ubuntu startup/login sound can be very loud, but I do like having it.
While debugging slow startup of an Eclipse RCP app on a Citrix server, I
I have installed curl: sudo apt-get install curl libcurl3 libcurl3-dev php5-curl and I have
I have been trying to get Google Chrome (6.0.401.1 dev) on Mac OS X
When using https.request with node.js v04.7, I get the following error: Error: socket hang
EDIT Tried install God, but get The server is not available (or you do
I've just copied my dev site to the live server, updated configs with new
I'm executing 4 startup commands and also expecting to receive 4 responses. The server
My startup is considering applying for Microsoft BizSpark . I am unclear as to

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.