Saturday, May 19, 2018

Re: need help

What does your settings.py look for k like? Can you copy/paste it here?

On Sat, May 19, 2018 at 9:00 AM Umar Kambala <umarkambala@gmail.com> wrote:

DEBUG is on but when I runserver the content on my header.html is not displaying on de browser. It gives me not found on de cmd window n 404 error on de webpage.

On May 19, 2018 3:37 PM, "James Farris" <jamesafarris@gmail.com> wrote:
If you set DEBUG = True 
Then restart your python server then reload the page, what is the output?

It's best to leave debug on until you have all the bugs worked out since it provides a lot of information that will tell you what's happening 


Sent from my mobile device

On May 19, 2018, at 8:32 AM, Umar Kambala <umarkambala@gmail.com> wrote:

I have been following de tutorials on web development but got lost on de peronal. Wen I run my server its gud to go but it won't display de content on de web browser. It always give me 404 error

On May 19, 2018 3:28 PM, "James Farris" <jamesafarris@gmail.com> wrote:
Are you asking where DEBUG = False is?
If so, it would be in your project folder/project name/settings.py


Sent from my mobile device

On May 19, 2018, at 4:36 AM, Umar Kambala <umarkambala@gmail.com> wrote:

How to I set my debug = false? On my django settings.. I don't know where to get de settings

On May 3, 2018 12:52 AM, "Gerald Brown" <gsbrown43@gmail.com> wrote:

Have you tried "pip install django" without the "== 2.0.5". I think that if you do not specify a version pip will install the latest version.


On Thursday, 03 May, 2018 12:46 AM, umarkambala@gmail.com wrote:
please  this is the massage i keep on getting when trying to install django.. what do i do?


C:\Users\Admin>pip install Django==2.0.5
Collecting Django==2.0.5
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)",)': /simple/django/
    0% |                                | 10kB 1.2kB/s eta 1:36:24Exception:
Traceback (most recent call last):
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\_vendor\urllib3\response.py", line 302, in _error_catcher
    yield
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\_vendor\urllib3\response.py", line 384, in read
    data = self._fp.read(amt)
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 60, in read
    data = self.__fp.read(amt)
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py", line 449, in read
    n = self.readinto(b)
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py", line 493, in readinto
    n = self.fp.readinto(b)
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\socket.py", line 586, in readinto
    return self._sock.recv_into(b)
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py", line 1009, in recv_into
    return self.read(nbytes, buffer)
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py", line 871, in read
    return self._sslobj.read(len, buffer)
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py", line 631, in read
    v = self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\basecommand.py", line 215, in main
    status = self.run(options, args)
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\commands\install.py", line 324, in run
    requirement_set.prepare_files(finder)
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\req\req_set.py", line 380, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\req\req_set.py", line 620, in _prepare_file
    session=self.session, hashes=hashes)
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py", line 821, in unpack_url
    hashes=hashes
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py", line 659, in unpack_http_url
    hashes)
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py", line 882, in _download_http_url
    _download_url(resp, link, content_file, hashes)
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py", line 603, in _download_url
    hashes.check_against_chunks(downloaded_chunks)
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\utils\hashes.py", line 46, in check_against_chunks
    for chunk in chunks:
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py", line 571, in written_chunks
    for chunk in chunks:
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\utils\ui.py", line 139, in iter
    for x in it:
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\download.py", line 560, in resp_read
    decode_content=False):
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\_vendor\urllib3\response.py", line 436, in stream
    data = self.read(amt=amt, decode_content=decode_content)
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\_vendor\urllib3\response.py", line 401, in read
    raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\contextlib.py", line 99, in __exit__
    self.gen.throw(type, value, traceback)
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\pip\_vendor\urllib3\response.py", line 307, in _error_catcher
    raise ReadTimeoutError(self._pool, None, 'Read timed out.')
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e6894c96-a69c-4980-9c95-e5b509652a23%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f6c9d96a-cf4b-e150-f8a6-1c886fc5d1a4%40gmail.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPkbFbZOf2OfoYnZVXh7_YyGBGNs7sGq%3DsTWsUhraM5JjFkmZw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/E502F340-5E25-4EC8-935C-06EE321DE95C%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPkbFbY1boLipn6TCiHQAWdHXq8qtob3aFzWnnACawULFJJorg%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPkbFbZE16DdBR%3DrrYGTCV7GdbV8bmnJiU14kuMLcyGkoaOAyg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAE-E-_0C4iXocY8gW57dxuhOpppZJE86HHsZkxvX0yd59wUwOg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment