Re: Development Server Ignores IP-address Parameter

2015-07-16 Thread Ted Thomas
Jonathan, anotherdjangonewby, Thanks. I tried both suggestions, but there in no change in behavior. No matter what I do, the development server only takes requests at 127.0.0.1:8000. I am including my settings.py file below ( with altered secret_key): """ > Django settings

Re: Development Server Ignores IP-address Parameter

2015-07-16 Thread anotherdjangonewby
When switching to debug=False I had also problems connecting my debug-server. For me I had to specify the server IP-address in the settings: ALLOWED_HOSTS = ['localhost', '127.0.0.1', '192.168.1.21'] Maybe this helps. Kai Am 16.07.2015 um 20:28 schrieb John : try: python manage.py [::

Re: Development Server Ignores IP-address Parameter

2015-07-16 Thread John 
try: python manage.py [::]:8001 django will accept any requests on that port (localhost:8001, 127.0.0.1:8001, 192.168.0.102:8001) > On Jul 16, 2015, at 3:26 PM, tdthoma...@gmail.com wrote: > > Sadaf, > > Thanks for your reply. To be clear, my objective is to run tests with other > computers

Re: Development Server Ignores IP-address Parameter

2015-07-16 Thread tdthomas93
Sadaf, Thanks for your reply. To be clear, my objective is to run tests with other computers behind my firewall. Hence the 192.168.0.102 address which will only work on my local network. I tried your idea of specifying 0.0.0.0:8000, but that did not work. The development server still runs w

Re: Development Server Ignores IP-address Parameter

2015-07-16 Thread Sadaf Noor
Actually if you run your django at 0.0.0.0:8000 at your server pc which has a ip 192.168.0.102 > ./manage.py runserver 0.0.0.0:8000 then from another pc of the same network (as 192.168.0.102 is a local ip) if you type http://

Re: Development server won't work from a shared web host

2012-09-08 Thread Javier Guerra Giraldez
On Sat, Sep 8, 2012 at 12:55 AM, graeme wrote: > Why Mako? As a personal preference it is fine, but why general advice for > newbies? Many people are happy with Django templates - although I far prefer > Jinja which had the advantages without some of the more annoying > restrictions. after a quic

Re: Development server won't work from a shared web host

2012-09-07 Thread graeme
On Friday, September 7, 2012 8:38:56 AM UTC+5:30, ecs1749 wrote: > > Well, that's almost true :-) > > Granted - it's a lot easier so far but I had to track down several things > (and a whole lot of "here's how" tips) that were taken for granted (like > pip which require easy_install so on a

Re: Development server won't work from a shared web host

2012-09-07 Thread graeme
On Tuesday, September 4, 2012 11:43:53 AM UTC+5:30, Daniel Roseman wrote: > > On Tuesday, 4 September 2012 03:32:08 UTC+1, ecs1749 wrote: >> >> Thanks for the reply. Yes, I saw that message. I am a bit lost where to >> go next if I completely ignore that tutorial regarding doing admin from the

Re: Development server won't work from a shared web host

2012-09-06 Thread ecs1749
Well, that's almost true :-) Granted - it's a lot easier so far but I had to track down several things (and a whole lot of "here's how" tips) that were taken for granted (like pip which require easy_install so on and so forth). In retrospect, I recommend future newbee to take this route:

Re: Development server won't work from a shared web host

2012-09-06 Thread Kurtis Mullins
Hey, All you should need to get through the Django Tutorial is Python and Django. During development you can use SQLite which is built in and doesn't need any third-party libraries. Good luck! On Thu, Sep 6, 2012 at 1:23 PM, ecs1749 wrote: > Thanks. I might as well bite bits of it. It's tough

Re: Development server won't work from a shared web host

2012-09-06 Thread ecs1749
Thanks. I might as well bite bits of it. It's tough going because there are so many dependencies. It's hard to gather all of the right packages just to get through the Django tutorial. On Thursday, September 6, 2012 6:59:02 AM UTC-7, Demian Brecht wrote: > > You *can* install Django on Linux,

Re: Development server won't work from a shared web host

2012-09-06 Thread Demian Brecht
You *can* install Django on Linux, Mac or Windows. Choose the environment that you're most accustomed to if you're just trying to get things done. However, if you want to learn Linux at the same time (at least, bits of it), then I fully endorse going down that path. On Wed, Sep 5, 2012 at 9:19 PM,

Re: Development server won't work from a shared web host

2012-09-05 Thread ecs1749
Ok, ok. I now have a Ubuntu/server with a Ubuntu desktop running using oracle vm virtualbox. I know almost nothing about Linux. I don't even know how to ssh to this beast sitting in front of me. I hope this is a start... On Tuesday, September 4, 2012 9:19:57 AM UTC-7, Marcin wrote: > > Yo

Re: Development server won't work from a shared web host

2012-09-04 Thread Marcin Tustin
You don't have a computer that you can develop on at all? How are you writing this email? Developing over ssh is going to be a huge pain. Now, you *maybe* can use the runserver command - if you do add the --help switch it will tell you how to run it to bind to a particular interface and port. It m

Re: Development server won't work from a shared web host

2012-09-04 Thread ecs1749
I don't have a local machine I can use to learn Django - just a personal acct from a shared host. The question I kept asking was: How do I get into admin and follow the tutorial without the development server because the tutorial doesn't tell me that. Regards, On Monday, September 3, 2012 11

Re: Development server won't work from a shared web host

2012-09-04 Thread ecs1749
To answer my own question, I found the following: http://www.andymboyle.com/django-tutorials/ On Monday, September 3, 2012 7:32:08 PM UTC-7, ecs1749 wrote: > > Thanks for the reply. Yes, I saw that message. I am a bit lost where to > go next if I completely ignore that tutorial regarding doing

Re: Development server won't work from a shared web host

2012-09-03 Thread Daniel Roseman
On Tuesday, 4 September 2012 03:32:08 UTC+1, ecs1749 wrote: > > Thanks for the reply. Yes, I saw that message. I am a bit lost where to > go next if I completely ignore that tutorial regarding doing admin from the > development server (which I don't have). Do I dive into tutorial #3 and > h

Re: Development server won't work from a shared web host

2012-09-03 Thread ecs1749
Thanks for the reply. Yes, I saw that message. I am a bit lost where to go next if I completely ignore that tutorial regarding doing admin from the development server (which I don't have). Do I dive into tutorial #3 and hope that it will pick up the admin stuff later when it gets to talk ab

Re: Development server won't work from a shared web host

2012-09-03 Thread Jonathan Baker
In the 'Running the Development Server' section of this pagein the tutorial it states that: "Although this server is convenient for development, resist the temptation to use it in anything resembling a production environment. The development server can h

Re: Development server: cookies not working

2011-05-12 Thread Frederik Vogelsang
Hi, one quick update: the problem was the Set-Cookie line. I did set SESSION_COOKIE_SECURE = True in my settings.py, this is why it did not work with the localserver. Thanks everyone! Frederik -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Development server: cookies not working

2011-05-12 Thread Frederik Vogelsang
Hi, 2011/5/5 Tom Evans : > If you can see the Set-Cookie header in the responses, but your > browser is not accepting them, verify that the path and domain are > correct in that response. Browsers will ignore cookies for domains > other than the domain serving the page, and for paths other than th

Re: Development server: cookies not working

2011-05-05 Thread Tom Evans
On Thu, May 5, 2011 at 2:02 PM, fsang wrote: > Hi, > > I am running my Django project on a remote host (with Apache) and on > my current machine (localhost, using "runserver"). Cookies and > sessions work fine when the project is served via Apache from the > remote host. But for some reasons all o

Re: Development server exiting after entering login info in admin site

2010-01-06 Thread Karen Tracey
On Wed, Jan 6, 2010 at 6:12 PM, Pascal Vincent wrote: > I'm reposting this question here, since I didn't get any answer the > first time, and I'm struck there. > Where can I find help with this, should I rather post the problem to > another group? > > --- > I'm new to django, and was going through

Re: Development server starting two processes

2009-03-14 Thread Guillermo
> Nope -- two is normal behavior. One's the server itself, and the other > is the process that monitors your code on disk and reloads the server > when you make code changes. I see. There must be some case where the automatic reload doesn't work, then. I created the Powershell script because I ha

Re: Development server starting two processes

2009-03-14 Thread Jacob Kaplan-Moss
On Sat, Mar 14, 2009 at 5:53 AM, Guillermo wrote: > Should I be seeing only one process instead of two when I start the > dev server? Nope -- two is normal behavior. One's the server itself, and the other is the process that monitors your code on disk and reloads the server when you make code ch

Re: Development server crash with no error message

2008-12-11 Thread Tobias Kräntzer
Am Donnerstag, den 11.12.2008, 10:29 +0100 schrieb Graham Dumpleton: > A problem recently highlighted with the geos stuff though is that it > likes to crash if using it on 64 bit Linux architecture. Good to know. While switching from development to production, we also switched from 64 to 32 bit.

Re: Development server crash with no error message

2008-12-11 Thread Graham Dumpleton
On Dec 11, 8:06 pm, Tobias Kräntzer <[EMAIL PROTECTED]> wrote: > Am Donnerstag, den 11.12.2008, 00:05 +0100 schrieb Andrew Fong: > > > I'm using MySQLdb, cmemcache, PIL, and the django.contrib.gis stuff. > > Hi, we had a similar problem. It turns out, that in our case it was a > multithreading i

Re: Development server crash with no error message

2008-12-11 Thread Tobias Kräntzer
Am Donnerstag, den 11.12.2008, 00:05 +0100 schrieb Andrew Fong: > I'm using MySQLdb, cmemcache, PIL, and the django.contrib.gis stuff. Hi, we had a similar problem. It turns out, that in our case it was a multithreading issue with geos/gdal. For instance using apache2 with wsgi and and allowing o

Re: Development server crash with no error message

2008-12-10 Thread Graham Dumpleton
Forgot to ask, what platform? On Dec 11, 10:05 am, Andrew Fong <[EMAIL PROTECTED]> wrote: > I'm using MySQLdb, cmemcache, PIL, and the django.contrib.gis stuff. > > On Dec 8, 2:58 pm, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > On Dec 9, 8:50 am, Andrew Fong <[EMAIL PROTECTED]> wrote: > >

Re: Development server crash with no error message

2008-12-10 Thread Andrew Fong
I'm using MySQLdb, cmemcache, PIL, and the django.contrib.gis stuff. On Dec 8, 2:58 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Dec 9, 8:50 am, Andrew Fong <[EMAIL PROTECTED]> wrote: > > > When I'm poking around in my Django app, my development server > > (manage.py runserver) will somet

Re: Development server crash with no error message

2008-12-09 Thread Ronny Haryanto
On Tue, Dec 9, 2008 at 4:50 AM, Andrew Fong <[EMAIL PROTECTED]> wrote: > > When I'm poking around in my Django app, my development server > (manage.py runserver) will sometimes quit without raising an exception > or leaving any messages. I am not tinkering around with the code or > doing anything

Re: Development server crash with no error message

2008-12-08 Thread Graham Dumpleton
On Dec 9, 8:50 am, Andrew Fong <[EMAIL PROTECTED]> wrote: > When I'm poking around in my Django app, my development server > (manage.py runserver) will sometimes quit without raising an exception > or leaving any messages. I am not tinkering around with the code or > doing anything that would fo

Re: Development server serves media from wrong directory

2008-10-10 Thread Thomas Guettler
Hi, > MEDIA_URL = 'D:/workspace/isiscore/media/ That's not a URL. A URL looks like 'http://myserver/' or '/media/' Thomas -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de --~--~-~--~~~---~--~~ You received this messa

Re: Development server serves media from wrong directory

2008-10-09 Thread Keith Eberle
Maybe an example will clear it up. Its pretty much taken from the documentation. I leave the ADMIN_MEDIA_PREFIX as the default value. # settings.py MEDIA_ROOT = '/home/django/django-projects//media/' MEDIA_URL = '/site_media/' # urls.py from django conf import settings if settings.DEBUG: ur

Re: Development server serves media from wrong directory

2008-10-09 Thread Robert
How is the MEDIA_URL reflected in my settings? If MEDIA_URL is '/ site_media/', should my urls.py then be r'^site_media/$'? I fail to understand the role it plays in all this. Thanks again for your replies. Kind regards, Robert On Oct 9, 3:35 pm, "Keith Eberle" <[EMAIL PROTECTED]> wrote: > C

Re: Development server serves media from wrong directory

2008-10-09 Thread Keith Eberle
Correct, they can't be the same. That's why I put /site_media/ to serve your projects media files in my reply. You can make them whatever you want, but they have to be different. keith On Thu, Oct 9, 2008 at 4:36 PM, Robert <[EMAIL PROTECTED]>wrote: > > Thanks for your reply, Keith. > > I hav

Re: Development server serves media from wrong directory

2008-10-09 Thread Robert
Thanks for your reply, Keith. I have made your suggested changes, but unfortunately I still cannot display images. On a whim, I put an image file in C:\Python25\Lib\site-packages\django/ contrib/admin/media\img02.jpg and used the following code in my template: wrote: > you need to change these

Re: Development server serves media from wrong directory

2008-10-09 Thread Keith Eberle
you need to change these: #from settings.py MEDIA_ROOT = 'D:/workspace/isiscore/media/' MEDIA_URL = '/site_media/' ADMIN_MEDIA_PREFIX = '/media/' #from urls.py from django.conf import settings (r'^media/(?P.*)$', 'django.views.static.serve', { 'document_root': settings.MEDIA_URL, 'show_indexes':

Re: development server and settings.MEDIA_ROOT

2008-01-18 Thread Karen Tracey
On Jan 18, 2008 10:08 AM, sector119 <[EMAIL PROTECTED]> wrote: > > Hi All! > > When I try to get http://127.0.0.1:8000/media/ I got Permission > denied: /home/sector119/devel/django_src/django/contrib/admin/media/ > > But why django use this path but not that was defined at > settings.MEDIA_ROOT?

Re: development server and settings.MEDIA_ROOT

2008-01-18 Thread Grindizer
> But why django use this path but not that was defined at > settings.MEDIA_ROOT? Because ADMIN_MEDIA_PREFIX is set to "/media/" so the url "http:// localhost:8000/media/" makes django point to the admin media directory. To serve your own media juste choose another url for that, may be like thi

Re: development server,wmv

2007-10-11 Thread [EMAIL PROTECTED]
hm avi launches the media player, wmv comes back text On Oct 11, 12:30 pm, aabele <[EMAIL PROTECTED]> wrote: > Incorrect header. Try to change mimetype. > > On Oct 11, 6:46 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > i am at a rudimentary level. i have the development server pr

Re: development server,wmv

2007-10-11 Thread aabele
Incorrect header. Try to change mimetype. On Oct 11, 6:46 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > i am at a rudimentary level. i have the development server properly > serving image files. when i tried to serve a wmv file, i got the text > data back. am i missing a step? --~--~-

Re: Development server

2007-04-26 Thread Malcolm Tredinnick
On Thu, 2007-04-26 at 11:59 -0700, Pythoni wrote: > Is the development server from 0.95 or 0.96 compatible with 0.91 > version? > I use Django 0.91 but have problem with the development server. .Many > times I receive the error > # > > Unhandled exception in thread started by > Er

Re: development server

2007-03-29 Thread Tim Chase
> The terminal being scrambled part of the story is strange. It sounds > like your terminal settings are a bit screwy, but it's always hard to > diagnose that. One thing you could try to debug this is to redirect > stdout and stderr to a file when you start manage.py, then you/we > could have a

Re: development server

2007-03-29 Thread Malcolm Tredinnick
On Thu, 2007-03-29 at 23:01 -0500, Greg Donald wrote: > On 3/29/07, Don Arbow <[EMAIL PROTECTED]> wrote: > > A restart though is trivial: Ctrl-C, up arrow, return and you're back > > in business. > > My restarts go like this.. I hit Ctrl + C, then I press up a couple of > times until I realize ba

Re: development server

2007-03-29 Thread Greg Donald
On 3/29/07, Don Arbow <[EMAIL PROTECTED]> wrote: > A restart though is trivial: Ctrl-C, up arrow, return and you're back > in business. My restarts go like this.. I hit Ctrl + C, then I press up a couple of times until I realize bash is b0rken, then I press down a couple of times to cancel the up

Re: development server

2007-03-29 Thread Malcolm Tredinnick
On Thu, 2007-03-29 at 17:08 -0500, Greg Donald wrote: > On 3/29/07, Rubic <[EMAIL PROTECTED]> wrote: > > Ditto. I don't think I've crashed it but once in three month's > > of development. > > Anytime I have anything wrong in my code and save the file, it tries > to reload the file and immediatel

Re: development server

2007-03-29 Thread Karen Tracey
On 3/29/07, Don Arbow <[EMAIL PROTECTED]> wrote: > A restart though is trivial: Ctrl-C, up arrow, return and you're back > in business. True, it's just a minor nuisance. I mentioned it because it was the closest behavior I have observed to what the original poster describes. Though in my case

Re: development server

2007-03-29 Thread Don Arbow
On Mar 29, 2007, at 4:46 PM, Karen Tracey wrote: > > So actually the server continues to "run" but it is pretty useless > given model validation failed. The annoying thing is that when I > correct the error in my models.py file and re-save, the development > server does not auto-reload the

Re: development server

2007-03-29 Thread G.J. Souverein
2007/3/29, Greg Donald <[EMAIL PROTECTED]>: > > > Is there something more stable for development than this `./manage.py > runserver` nonsense? I can easily crash it and do so quite often as > it turns out. It's such a pain to have to restart it all the time. > And when it crashes it it also break

Re: development server

2007-03-29 Thread G.J. Souverein
2007/3/29, Greg Donald <[EMAIL PROTECTED]>: > > > Is there something more stable for development than this `./manage.py > runserver` nonsense? I can easily crash it and do so quite often as > it turns out. It's such a pain to have to restart it all the time. > And when it crashes it it also break

Re: development server

2007-03-29 Thread Karen Tracey
Not sure if this is what Greg Donald is seeing, but what I have observed is that if I have an error that causes model validation to fail, I get notified of the error when the development server auto-reloads the file, for instance: Validating models... xword.crossword: 'class Meta' got invalid

Re: development server

2007-03-29 Thread Greg Donald
On 3/29/07, Rubic <[EMAIL PROTECTED]> wrote: > Ditto. I don't think I've crashed it but once in three month's > of development. Anytime I have anything wrong in my code and save the file, it tries to reload the file and immediately crashes. It doesn't just crash returning me to a bash prompt, i

Re: development server

2007-03-29 Thread Rubic
On Mar 29, 4:28 pm, "Adrian Holovaty" <[EMAIL PROTECTED]> wrote: > Strange -- I rarely (if ever) have had the runserver crash on me, and > I use it almost every day. Ditto. I don't think I've crashed it but once in three month's of development. -- Jeff Bauer Rubicon, Inc. --~--~-~--~-

Re: development server

2007-03-29 Thread Adrian Holovaty
On 3/29/07, Greg Donald <[EMAIL PROTECTED]> wrote: > Is there something more stable for development than this `./manage.py > runserver` nonsense? I can easily crash it and do so quite often as > it turns out. Strange -- I rarely (if ever) have had the runserver crash on me, and I use it almost e

Re: development server

2007-03-29 Thread Pablos
On Mar 29, 2007, at 1:33 PM, Greg Donald wrote: > Is there something more stable for development than this `./manage.py > runserver` nonsense? I can easily crash it and do so quite often as > it turns out. It's such a pain to have to restart it all the time. > And when it crashes it it also brea