Django and CSS
Hi, I'm new to Django. I've read the doc: http://docs.djangoproject.com/en/dev/howto/static-files/?from=olddocs which is about static files but still do not quite understand what to call everything and it isn't working On my development machine, I want to use this hack and not deal with other servers. Please help. here is my file structure: /mysite/ - has all the .py files /mysite/templates/ - has all the html templates /mysite/templates/path_media/ - has the CSS document and pictures Now, how should I modify this: (r'^site_media/(?P.*)$', 'django.views.static.serve', {'document_root': '/path/to/media'}) '/path/to/media' should be changed to what? And is this what I want for my style href? : http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: runserver fails
No. I get the same error. I tried that on 3 versions of python with the same result. On May 24, 8:03 pm, David Zhou <da...@nodnod.net> wrote: > Does the following worth in the interactive prompt? > > >>> import socket > >>> socket.getaddrinfo("www.google.com", 80) > > -- dz > > On Sun, May 24, 2009 at 10:59 PM, Chris DPS <jasonyf...@gmail.com> wrote: > > > When I execute runserver, I get the following message: > > > Validating models... > > 0 errors found > > > Django version 1.0.2 final, using settings 'mysite.settings' > > Development server is running athttp://127.0.0.1:8000/ > > Quit the server with CTRL-BREAK. > > Error: [Errno 10104] getaddrinfo failed > > > And the server quits immediately. > > I have been trying to solve this for quite some time now and am really > > desperate for some help. > > I have already tried running it using different ports and running it > > on 0.0.0.0 > > According to Windows, I do not have any Firewalls running, nor do I > > believe there to be any running. > > I can ping localhost fine. > > ping to port 8000 does not get a response > > > What is going on? > > > I have done the exact same python and django installation on two other > > computers (both running Windows) and they worked fine. > > I need this to work on my computer. > > > Please help! > > > Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
runserver fails
When I execute runserver, I get the following message: Validating models... 0 errors found Django version 1.0.2 final, using settings 'mysite.settings' Development server is running at http://127.0.0.1:8000/ Quit the server with CTRL-BREAK. Error: [Errno 10104] getaddrinfo failed And the server quits immediately. I have been trying to solve this for quite some time now and am really desperate for some help. I have already tried running it using different ports and running it on 0.0.0.0 According to Windows, I do not have any Firewalls running, nor do I believe there to be any running. I can ping localhost fine. ping to port 8000 does not get a response What is going on? I have done the exact same python and django installation on two other computers (both running Windows) and they worked fine. I need this to work on my computer. Please help! Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Trouble starting up runserver
I am new to Django. When I try to execute: python manage.py runserver, I get the following error Error: [Errno 10104] getaddrinfo failed What is going on and what should I do? I am running Django Version 1.0.2-final and Python 2.6 I have turned off all Firewalls. ping to localhost in the cmd works fine I tried starting runserver on 0.0.0.0:8000, :8000, and other ports with the same results. Please help! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Trouble Starting Up with runserver
ping localhost seemed fine, 4 sent and 4 received, 0ms, 0% loss I have tried 127.0.0.1:8000, :8000, 0.0.0.0:8000, 127.0.0.1:others On May 10, 9:52 pm, Addy Yeow <ayeo...@gmail.com> wrote: > What does 'ping localhost' in command-prompt tells you?Did you try 'python > manage.py runserver 127.0.0.1:8000'? Or 'python manage.py runserver :8000' > > - Addy > > On Mon, May 11, 2009 at 12:40 PM, Chris DPS <jasonyf...@gmail.com> wrote: > > > So I've definitely shut off all Firewalls. > > It still is having the same problem. > > > HELP!!! PLEASE > > > On May 10, 6:37 pm, Chris DPS <jasonyf...@gmail.com> wrote: > > > How to tell if I have a Firewall running? > > > I have turned off Windows firewall. When I go to the Windows Security > > > Center, the Firewall option is Green, as in 'on'. > > > I looked for normal firewall products on my computer such as Symantec > > > and couldn't find any active ones. > > > > How can find which firewall I'm using and shut it off. > > > > ---Chris DPS > > > > On May 8, 8:10 pm, Addy Yeow <ayeo...@gmail.com> wrote: > > > > > Do you have firewall running?It could be blocking incoming local > > connection > > > > to port 8000. > > > > > - Addy > > > > > On Sat, May 9, 2009 at 7:01 AM, Chris DPS <jasonyf...@gmail.com> > > wrote: > > > > > > I am new to Django. > > > > > > When I try to execute: python manage.py runserver, I get the > > following > > > > > error > > > > > > Error: [Errno 10104] getaddrinfo failed > > > > > > What is going on and what should I do? > > > > > > I am running Django Version 1.0.2-final and Python 2.6 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Trouble Starting Up with runserver
So I've definitely shut off all Firewalls. It still is having the same problem. HELP!!! PLEASE On May 10, 6:37 pm, Chris DPS <jasonyf...@gmail.com> wrote: > How to tell if I have a Firewall running? > I have turned off Windows firewall. When I go to the Windows Security > Center, the Firewall option is Green, as in 'on'. > I looked for normal firewall products on my computer such as Symantec > and couldn't find any active ones. > > How can find which firewall I'm using and shut it off. > > ---Chris DPS > > On May 8, 8:10 pm, Addy Yeow <ayeo...@gmail.com> wrote: > > > Do you have firewall running?It could be blocking incoming local connection > > to port 8000. > > > - Addy > > > On Sat, May 9, 2009 at 7:01 AM, Chris DPS <jasonyf...@gmail.com> wrote: > > > > I am new to Django. > > > > When I try to execute: python manage.py runserver, I get the following > > > error > > > > Error: [Errno 10104] getaddrinfo failed > > > > What is going on and what should I do? > > > > I am running Django Version 1.0.2-final and Python 2.6 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Trouble Starting Up with runserver
How to tell if I have a Firewall running? I have turned off Windows firewall. When I go to the Windows Security Center, the Firewall option is Green, as in 'on'. I looked for normal firewall products on my computer such as Symantec and couldn't find any active ones. How can find which firewall I'm using and shut it off. ---Chris DPS On May 8, 8:10 pm, Addy Yeow <ayeo...@gmail.com> wrote: > Do you have firewall running?It could be blocking incoming local connection > to port 8000. > > - Addy > > On Sat, May 9, 2009 at 7:01 AM, Chris DPS <jasonyf...@gmail.com> wrote: > > > I am new to Django. > > > When I try to execute: python manage.py runserver, I get the following > > error > > > Error: [Errno 10104] getaddrinfo failed > > > What is going on and what should I do? > > > I am running Django Version 1.0.2-final and Python 2.6 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Trouble Starting Up with runserver
I am new to Django. When I try to execute: python manage.py runserver, I get the following error Error: [Errno 10104] getaddrinfo failed What is going on and what should I do? I am running Django Version 1.0.2-final and Python 2.6 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Trouble Starting Up with runserver
On May 7, 11:23 am, Phil Mocekwrote: > On Thu, May 07, 2009 at 12:49:28PM -0500, Tim Chase wrote: > > > was searching for "interface" or "IP address" but the tutorial > > > says -- incorrectly or colloqially, depending on how you see > > > things -- "So to listen on all public IPs (useful if you want > > > to show off your work on other computers), use:". There's no > > > such thing as a "public IP". > > > I suspect the intent is "external IP" compared to an internal IP > > (localhost/127.0.0.1). > > I agree. > > What makes the tutorial technically incorrect, and what prevents > someone who seeks information about using the 0.0.0.0 IP address > from finding that passage using reasonable search terms, is its > omission of the word "address". The subject at hand is an > address, not a protocol, yet what was written is "public IP" not > "public IP address". This is fine for casual conversation, but -- > for reasons including that which was discovered in this discussion > -- not for a technical tutorial whose target audience is software > developers. > > -- > Phil Mocek Sorry for the confusion. I have definitely tried it listening only to localhost (i.e. running python manage.py runserver without additional arguments) My question is mainly about reasons why the very basic python manage.py runserver doesn't work and creates the error 10104 getaddrinfo failed I only mentioned 0.0.0.0:8000 because this was suggested on a separate thread as a solution (and it worked for the guy asking). It does not work for me. It is something wrong with my computer (and I really don't think I have any Firewall active - not entirely certain, but pretty sure). I just did the same setup on a different computer and it is working, but I need it to work on my own. Any ideas? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Trouble Starting Up with runserver
I am new to Django. When I try to execute: python manage.py runserver, I get the following error Error: [Errno 10104] getaddrinfo failed What is going on and what should I do? I have tried with 0.0.0.0:8000. I am running Django Version 1.0.2-final and Python 2.6 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
'getaddrinfo failed', new to Django
I'm starting out with Django. When I attempt to execute runserver, this error happens: Error: (10104, 'getaddrinfo failed') What is the reason for this and how can I fix it? I am not too computer-savvy, so complete explanations would be appreciated. thanks a bunch --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---