didn't return an HttpResponse object

2011-08-12 Thread Harrison
I'm going through the tutorial, about views right now. I have this code: def index(request): latest_poll_list = Poll.objects.all().order_by('-pub_date')[:5] t = loader.get_template('polls/index.html') c = Context({ 'latest_poll_list': latest_poll_list }) HttpResponse(t.

Re: didn't return an HttpResponse object

2011-08-12 Thread Harrison Morgan
Thanks, I just noticed that. I overlook the simplest things sometimes. =/ On Fri, Aug 12, 2011 at 10:07 PM, Karen Tracey wrote: > On Fri, Aug 12, 2011 at 10:04 PM, Harrison wrote: > >> I'm going through the tutorial, about views right now. I have this >> code:

Allauth will not save additonal fields

2015-07-12 Thread Harrison Mead
Hello, I have posted everything on stack overflow so if you just follow this link that would be great, thanks! http://stackoverflow.com/questions/31366278/allauth-will-not-save-additional-fields -- You received this message because you are subscribed to the Google Groups "Django users" group.

Getting Outlook Calendar In Django web page

2018-01-17 Thread Harrison Latimer
I have tried taking an available bootstrap calendar and feeding calendar items via JSON file but I'd rather find a way to export a static outlook calendar to my django web page. Is this possible? -Harrison -- You received this message because you are subscribed to the Google Groups &q

Re: Getting Outlook Calendar In Django web page

2018-01-24 Thread Harrison Latimer
9 PM UTC-8, Matthew Pava wrote: > > You might want to look into this 3rd-party package that will give you > access to the Exchange API. > > https://github.com/ecederstrand/exchangelib > > > > > > *From:* django...@googlegroups.com [mailto: > django...@goog

installing django and deploying it in a shared hosting

2017-04-05 Thread harrison wachira
I was unable to deploy django in a shared hosting -- 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+unsubscr...@googlegroups.com. To post to this grou

query with field name only known at runtime

2009-10-27 Thread James Harrison Fisher
Hi, I've recently come across something that's stumped me. I am creating a 'shortcut' function for easier creation of add/edit views. This function needs to make a query on a model in the simple form: model.objects.get(field_name=value) where the variables "model", "field_name", and "value"

Re: query with field name only known at runtime

2009-10-27 Thread James Harrison Fisher
a-HA. Simple. I had a suspicion this would be a python solution rather than Django-specific solution. Thanks! On Oct 27, 11:14 am, Daniel Roseman wrote: > On Oct 27, 10:48 am, James Harrison Fisher > wrote: > > > > > Hi, > > > I've recently come across

multi-table inheritance: getting instances of parent class which are also instances of child class

2009-10-29 Thread James Harrison Fisher
Hi, I'm having some trouble with what I would have thought would be a simple query. Working with the multi-table inheritance examples Django gives: class Place(models.Model): name = models.CharField(max_length=50) address = models.CharField(max_length=80) class Restaurant(Place): s