Re: Empty Response
You can easily look at the request/response by using firebug. TIP: Notice if there is a redirect. Sometimes depending on the config, for example, if django is set to append a / at the end, meaning it will do a redirect, then your request or response might be getting lost in the redirect (an HTTP 302) http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html When you have django running with apache config might be different. So first step is look in firebug what requests are being made. On Nov 2, 3:13 pm, Reinout van Reeswrote: > On 11/02/2010 09:29 PM, Eric wrote: > > > I am returning a json structure in one of my views after the user > > performs a search when I only run Django's built in server. Following > > the asynchronous GET I get a response with the expected json > > structure which I can then use to populate the page. > > > However, when I have Apache in front, the response is empty. And this > > appears to be only when I make an AJAX request since all of the other > > requests and responses produce the expected results. > > > I don't know how to go about troubleshooting this. > > > Does anybody know what is going on here? Or, how to troubleshoot this? > > Some random tips: > > Take a hard look at what's actually being returned. Empty response, > apparently. But what about the http status code? 200 OK or 500 > AARGH_ERROR? Or something that's just not parsed as valid json? Or > perhaps an invalid mimetype? > > Useful tools: firebug (lets you inspect the headers). Or just "wget" in > a pretty verbose mode. > > Reinout > > -- > Reinout van Rees - rein...@vanrees.org -http://reinout.vanrees.org > Collega's gezocht! > Django/python vacature in Utrecht:http://tinyurl.com/35v34f9 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.
How to display many-to-many field as a list of text input fields?
When I display the ToolBoxEditForm it uses a multiple select field. But what I want is a form that lets the user edit each tool he has in the toolbox as a text field. I cant figure out how to do this with the many-to-many field. class Tool(models.Model): tool_name = models.CharField(unique=True, max_length=200) .. class ToolBox(models.Model): tools = models.ManyToManyField(Tool,max_length=300) class ToolBoxEditForm (ModelForm): tools = ??? class Meta: model = ToolBox exclude = ('user', 'popularity',) I would appreciate any pointers! -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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: Dango-tagging incompatibilities?
Hi, Thanks, I will continue with it then. On Aug 5, 4:40 pm, creecode <creec...@gmail.com> wrote: > Hello Adelein, > > I used a version of django-tagging with Django v1.1 without any > noticeable problems. Which revision it was I can't say off the top of > my head. A look at the django-tagging website may provide the > answers. > > Toodle-looo... > creecode > > On Aug 5, 3:18 pm, adelein <adele...@gmail.com> wrote: > > > > > Has anyone used django-tagging lately with Django 1.1 and above? I am > > starting to use it but saw some comments in stackoverflow about > > incompatibilities. Dont want to go down a dead end. > > > Appreciate your tips! -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.
Dango-tagging incompatibilities?
Has anyone used django-tagging lately with Django 1.1 and above? I am starting to use it but saw some comments in stackoverflow about incompatibilities. Dont want to go down a dead end. Appreciate your tips! Thanks, Adelein -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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: Django admin page hangs in django server - where is web server error log?
Hi Zain, The thing is that I was able to access the main page before I changed the urls.py file, so I think that means that the port isnt being blocked. Something to do with the urls.py file is messed up : ( Thanks On Apr 11, 5:35 pm, Zain Memon <z...@inzain.net> wrote: > Since no messages are shown in the log, the connection is most likely being > blocked somewhere upstream. Check that you've allowed port 8001 through any > firewalls or routers you have set up. > Zain > > On Sat, Apr 11, 2009 at 5:23 PM, adelein <adele...@gmail.com> wrote: > > > This is the server output: > > > [r...@bellatrix djangoblog]# python manage.py runserver > > 93.186.171.54:8001 > > Validating models... > > 0 errors found > > > Django version 1.1 beta 1 SVN-10504, using settings > > 'djangoblog.settings' > > Development server is running athttp://93.186.171.54:8001/ > > Quit the server with CONTROL-C. > > > So no errors. Yet admin page is blank as you can see if you go to > >http://93.186.171.54:8001/admin. > > > On Apr 11, 5:21 pm, adelein <adele...@gmail.com> wrote: > > > Yes, and I see no errors there. Still the admin page does not load at > > > all. I cant find any similar problems through google. > > > > On Apr 11, 5:17 pm, Malcolm Tredinnick <malc...@pointy-stick.com> > > > wrote: > > > > > On Sat, 2009-04-11 at 17:09 -0700, adelein wrote: > > > > > > Hi, > > > > > > Sorry, I meant to say urls.py of course. So, given I did put the code > > > > > in the right file, the problem still remains. > > > > > If you're following the tutorial, then you will be running the > > > > development server. So all "server log" style output will be printed to > > > > the terminal that you used to start the server. > > > > > Regards, > > > > Malcolm --~--~-~--~~~---~--~~ 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: Django admin page hangs in django server - where is web server error log?
This is the server output: [r...@bellatrix djangoblog]# python manage.py runserver 93.186.171.54:8001 Validating models... 0 errors found Django version 1.1 beta 1 SVN-10504, using settings 'djangoblog.settings' Development server is running at http://93.186.171.54:8001/ Quit the server with CONTROL-C. So no errors. Yet admin page is blank as you can see if you go to http://93.186.171.54:8001/admin. On Apr 11, 5:21 pm, adelein <adele...@gmail.com> wrote: > Yes, and I see no errors there. Still the admin page does not load at > all. I cant find any similar problems through google. > > On Apr 11, 5:17 pm, Malcolm Tredinnick <malc...@pointy-stick.com> > wrote: > > > On Sat, 2009-04-11 at 17:09 -0700, adelein wrote: > > > > Hi, > > > > Sorry, I meant to say urls.py of course. So, given I did put the code > > > in the right file, the problem still remains. > > > If you're following the tutorial, then you will be running the > > development server. So all "server log" style output will be printed to > > the terminal that you used to start the server. > > > Regards, > > Malcolm --~--~-~--~~~---~--~~ 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: Django admin page hangs in django server - where is web server error log?
Yes, and I see no errors there. Still the admin page does not load at all. I cant find any similar problems through google. On Apr 11, 5:17 pm, Malcolm Tredinnick <malc...@pointy-stick.com> wrote: > On Sat, 2009-04-11 at 17:09 -0700, adelein wrote: > > > Hi, > > > Sorry, I meant to say urls.py of course. So, given I did put the code > > in the right file, the problem still remains. > > If you're following the tutorial, then you will be running the > development server. So all "server log" style output will be printed to > the terminal that you used to start the server. > > Regards, > Malcolm --~--~-~--~~~---~--~~ 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: Django admin page hangs in django server - where is web server error log?
Hi, Sorry, I meant to say urls.py of course. So, given I did put the code in the right file, the problem still remains. -Adelein On Apr 11, 1:58 pm, Daniel Roseman <roseman.dan...@googlemail.com> wrote: > On Apr 11, 8:42 pm, adelein <adele...@gmail.com> wrote: > > > > > Hi, > > > Myhttp://localhost:8000/adminpageis hanging in the django server > > and I get "Error 320 (net::ERR_INVALID_RESPONSE): Unknown error." > > after a while. > > > I am running on fedora 7. > > > I am following the django tutorial and I am using the latest svn > > django version. > > > After I set this in the settings.py and go to thehttp://localhost:8000/admin > > page it just hangs: > > > from django.conf.urls.defaults import * > > > # Uncomment the next two lines to enable the admin: > > from django.contrib import admin > > admin.autodiscover() > > > urlpatterns = patterns('', > > # Example: > > # (r'^mysite/', include('mysite.foo.urls')), > > > # Uncomment the admin/doc line below and add > > 'django.contrib.admindocs' > > # to INSTALLED_APPS to enable admin documentation: > > # (r'^admin/doc/', include('django.contrib.admindocs.urls')), > > > # Uncomment the next line to enable the admin: > > (r'^admin/', include(admin.site.urls)), > > ) > > > First, I dont know how to access the web server error log? > > > Anyone has any idea? > > > Thanks! > > > -Adelein > > If that's your settings.py, you should go back and read the tutorial > again. That code should go in your urls.py. > > I assume by 'the Django server' you mean the built-in development > server. As the name implies, this is only for development, and doesn't > have an 'error log'. All errors are displayed in the console. > -- > DR. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Django admin page hangs in django server - where is web server error log?
Hi, My http://localhost:8000/admin page is hanging in the django server and I get "Error 320 (net::ERR_INVALID_RESPONSE): Unknown error." after a while. I am running on fedora 7. I am following the django tutorial and I am using the latest svn django version. After I set this in the settings.py and go to the http://localhost:8000/admin page it just hangs: from django.conf.urls.defaults import * # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Example: # (r'^mysite/', include('mysite.foo.urls')), # Uncomment the admin/doc line below and add 'django.contrib.admindocs' # to INSTALLED_APPS to enable admin documentation: # (r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line to enable the admin: (r'^admin/', include(admin.site.urls)), ) First, I dont know how to access the web server error log? Anyone has any idea? Thanks! -Adelein --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---