Yep that. The $ sign indicates "this is the end of the url".
(actually, it's a generic regex that means "this is the end of the
search string" in the same way that ^ indicates "this is the start of
the search string".)
Cheers
L.
On 3 October 2014 12:50, Collin Anderson wrote:
> (r'^rango/$', i
(r'^rango/$', include('rango.urls')),
remove the dollar sign.
(r'^rango/', include('rango.urls')),
--
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
my tango/urls.py
from django.conf.urls import patterns, include, url
from django.contrib import admin
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'tango.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)),
What's in your tango urls.py?
Cheers
L.
On 3 October 2014 08:32, ashley kenney wrote:
> hello sweets!!!
>
> I'm trying to display about page under rango app in my tango project. I'm
> getting error below when I go to http://127.0.0.1:8000/rango/about. Not
> sure what is wrong with (r'^abou
cool thats useful but more advice form other people would be great I
will try that thank you
On 30 May 2008, at 15:37, Jack M. wrote:
>
> Forgive me if this is a little off but, to have the argument passed
> into the view, you'd want to use some different regexp:
> (r'^shows/(\w+)','ubermicro.s
Forgive me if this is a little off but, to have the argument passed
into the view, you'd want to use some different regexp:
(r'^shows/(\w+)','ubermicro.shows.views.show_page'),
is what I would suggest. This will put the show requested as a
string, into the view:
def show_page(request, show):
So t
no that didn't work its still the same rss feed here is my models:
from django.db import models
class show(models.Model):
"""gets the show_rss feed"""
show_title = models.CharField(blank=True, maxlength=100)
show_feed = models.URLField(blank=True, verify_exists=True)
class Admin
show/.*
On 5/30/08, sebey <[EMAIL PROTECTED]> wrote:
>
>
> ok I so I want to make a url pattern that for every rss feed in my
> database I want all of them to be like
>
> show/1
> show/2
> show/forever
>
> so how can I do this?
>
> something with regular expressions?
>
> thanks
> >
>
--~--~--
8 matches
Mail list logo