Re: URLs question

2008-07-14 Thread EAMiller
Bobby - I've used urllib in a django view for grabbing a json feed. You'll have to figure out how to handle the format you get your response in. I would suggest firing up an interactive prompt and trying it out... it's as simple as: >>> import urllib >>> response = urllib.urlopen('https://etc...'

Re: URLs question

2008-07-14 Thread Bobby Roberts
ok disregard this post. I dropped sending the accept/decline urls and i'm getting a direct post back to my url now. On Jul 14, 12:52 pm, Bobby Roberts <[EMAIL PROTECTED]> wrote: > greetings. > > I'm using the urllib to post data to another site.  In the data, I > have to pass back a url for a

Re: urls question

2008-07-04 Thread [EMAIL PROTECTED]
Look up how to do an or using python regexs. http://docs.python.org/lib/re-syntax.html On Jul 5, 12:46 am, Luis Sanchez <[EMAIL PROTECTED]> wrote: > Hi, > > I want to do this: > > www.domain.com/part1/ > > if part1 is :  someword1 , someword2 or someword3   go to the view: > view1 > if part1 is

Re: urls question django_website

2006-12-18 Thread Rob Slotboom
> I still can't figure out however how the flatfiles are loaded? Or maybe the homepage template from flatfiles is used, without using the content for the flatpage at all. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

Re: urls question django_website

2006-12-18 Thread Rob Slotboom
> The 'homepage' is a flatpage with an address of '/'. Hi Kwe, Great help!!! I still can't figure out however how the flatfiles are loaded? For example: http://code.djangoproject.com/browser/djangoproject.com/django_website/templates/flatfiles/homepage.html --~--~-~--~~

Re: urls question django_website

2006-12-18 Thread kwe
Hi Rob, The 'homepage' is a flatpage with an address of '/'. --~--~-~--~~~---~--~~ 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

Re: urls question

2006-01-18 Thread Julio Nobrega
Oh my God sorry about this, Gmail tricked me, the Archive and Send buttoms are too close. On 1/18/06, Julio Nobrega <[EMAIL PROTECTED]> wrote: <>

Re: urls question

2006-01-18 Thread Julio Nobrega
On 1/18/06, Huy Do <[EMAIL PROTECTED]> wrote: > > Sorry for the non django related question. I figured it out already. > > For anyone whos interested in cleaning up your generic views code, just > use, (note the star) > > urlpatterns = patterns('', >*generic_crud(MyModel) > ) > regards, > > Hu

Re: urls question

2006-01-18 Thread Huy Do
Sorry for the non django related question. I figured it out already. For anyone whos interested in cleaning up your generic views code, just use, (note the star) urlpatterns = patterns('', *generic_crud(MyModel) ) regards, Huy Huy Do wrote: Should it be possible for me to do the following