Current time: 04-19-2014, 06:19 PM Hello There, Guest! (LoginRegister)

Post Reply 
[django] Http error 404 during running of django-setup.py
12-29-2011, 02:52 PM (This post was last modified: 12-29-2011 05:27 PM by giog.)
Post: #1
[django] Http error 404 during running of django-setup.py
i have followed this tutorial, but in step 4 when i execute
Code:
python django-setup.py
from /home/user/domain_folder/ (that contain /public folder) it throws this error:


Code:
Looks like your domain is probably [i]mydomain[/i].com ... cool.
Testing domain service...
Traceback (most recent call last):
  File "django-setup.py", line 69, in <module>
    if urllib2.urlopen("http://%s/django-setup-test.txt" % domain).read() != cookie:
  File "/usr/lib/python2.5/urllib2.py", line 124, in urlopen
    return _opener.open(url, data)
  File "/usr/lib/python2.5/urllib2.py", line 387, in open
    response = meth(req, response)
  File "/usr/lib/python2.5/urllib2.py", line 498, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.5/urllib2.py", line 419, in error
    result = self._call_chain(*args)
  File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.5/urllib2.py", line 582, in http_error_302
    return self.parent.open(new)
  File "/usr/lib/python2.5/urllib2.py", line 387, in open
    response = meth(req, response)
  File "/usr/lib/python2.5/urllib2.py", line 498, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.5/urllib2.py", line 425, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.5/urllib2.py", line 506, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found


raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found

I think that 404 refers to http://domain/django-setup-test.txt file (e.g. the first lines of log), but i have created this file before execution of django-setup.py, so i don't uderstand why this exception.

It could seem that public folder have bad configuration. (if i put index.html in public folder, http://domain/index.html throws 404 http error, quickstart.html doesn't throw 404 error)

How can i resolve?
Find all posts by this user
Quote this message in a reply
12-29-2011, 05:53 PM
Post: #2
RE: [django] Http error 404 during running of django-setup.py
What are the permissions on django-setup-test.txt?
Find all posts by this user
Quote this message in a reply
12-29-2011, 06:55 PM
Post: #3
RE: [django] Http error 404 during running of django-setup.py
(12-29-2011 05:53 PM)bobocat Wrote:  What are the permissions on django-setup-test.txt?
I have setted 777 permissions for 'public/django-setup-test.txt' file, but the results is the same.
Find all posts by this user
Quote this message in a reply
12-29-2011, 08:30 PM
Post: #4
RE: [django] Http error 404 during running of django-setup.py
Quote:It could seem that public folder have bad configuration. (if i put index.html in public folder, http://domain/index.html throws 404 http error, quickstart.html doesn't throw 404 error)

I'm not sure what might be causing that, but that's definitely the source of your problem. Are you sure you're looking under the right user?
Find all posts by this user
Quote this message in a reply
12-30-2011, 07:02 PM
Post: #5
RE: [django] Http error 404 during running of django-setup.py
(12-29-2011 08:30 PM)andrewf Wrote:  I'm not sure what might be causing that, but that's definitely the source of your problem. Are you sure you're looking under the right user?
Resolved. I wasn't looking under the right user.
Topic can be closed.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: