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...'
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
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
> 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
> 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
--~--~-~--~~
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
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:
<>
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
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
9 matches
Mail list logo