On Thu, 2008-11-27 at 13:44 +1100, Malcolm Tredinnick wrote:
[...]
> The second comment is that you might want to consider your URL design a
> bit more. You are really saying that none of the tag names are any more
> special or highly prioritised than any of the others. Although what you
> haven'
On Wed, 2008-11-26 at 17:54 -0800, Dylan Lorimer wrote:
> Hi,
>
> So I'm trying to model my URLs for a blog I'm building on Django using
> the following structure:
>
> http://www.myblog.com/tags/tag1/tag2/tag3/tag4/etc etc
>
> The idea being that after the initial /tags/ you can add on any tag
Hi,
So I'm trying to model my URLs for a blog I'm building on Django using
the following structure:
http://www.myblog.com/tags/tag1/tag2/tag3/tag4/etc etc
The idea being that after the initial /tags/ you can add on any tag
and it would act as a filter against the blog entries. I'm trying to
fol
Hi,
The reason is because of the preceding "/" in your
HttpResponseRedirect.
You could try to redirect to "success/" or to "../success/" based on
which may be applicable to you.
Cheers
On Nov 1, 5:51 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Hi guys,
>
> I installed my app on a subd
Hi guys,
I installed my app on a subdir of another site (just for staging).
www.example.org/djangoapp
Now my urls keep pointing back to the root of the other site, breaking
navigation.
So for example if i POST some form to
www.example.org/djangoapp/subscribe/
and then from there issue an Htt
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
greetings.
I'm using the urllib to post data to another site. In the data, I
have to pass back a url for an "accept" page and url for a "decline"
page.
Now my very limited understanding of https posting is to allow you to
send data to a website and get a response without leaving the url you
are
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
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 : someword6 , someword7 or someword9 go to the view:
view2
How can I do that using urls.py ??
--~--~-~--~~~---~--~~
You receive
> 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
When I look at the urls.py file belonging to django_website I can't
figure out how the website handles the pattern for
www.djangoproject.com/
The only option seems to be the included flatpages.urls but this one
needs a pattern for an url.
Does anybody have a clue?
Here is the code:
urlpatterns
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
Should it be possible for me to do the following in my urls.py
from django.conf.urls.defaults import *
from myproject.myapp.models import MyModel
def generic_crud(model):
return generic_list(model), generic_create(model),
generic_update(model),
def generic_list(model):
info_dict = { 'm
18 matches
Mail list logo