On Tuesday, April 7, 2015 at 9:19:17 AM UTC-7, donarb wrote:
>
> I'm having a problem with a generated url using the url template tag,
> currently using Django 1.6.5.
>
> The appname is 'dashboard', here is the main urls.py:
>
> urlpatterns = patterns("",
> (r'^dashboard/', include('dashboard.
hi,
try to user url name instead of using hard coded url link. it may solve
your problem.
On Mon, Oct 8, 2012 at 8:21 PM, Ramiro Morales wrote:
> On Sat, Oct 6, 2012 at 10:25 PM, Rohit Banga
> wrote:
> >
> > So how do I code my url conf / view / template in order to be
> independent of
> > myw
On Sat, Oct 6, 2012 at 10:25 PM, Rohit Banga wrote:
>
> So how do I code my url conf / view / template in order to be independent of
> mywebsite name.
> Is there anything wrong with the way I am wiring up my application.
Take a look at the docs for:
URL reversing:
https://docs.djangoproject.com
i have solved using:
(r'^$', 'prova.test_sito.views.mostro_prima'),
witout the ^ , for every address he show me the mostro_prima view
Thanks
Luca
On 3 Mar, 17:24, Tom Evans wrote:
> On Thu, Mar 3, 2011 at 4:00 PM, luca72 wrote:
> > hello i have define this in the url:
> > (r'^admin/', includ
On Thu, Mar 3, 2011 at 4:00 PM, luca72 wrote:
> hello i have define this in the url:
> (r'^admin/', include(admin.site.urls)),
> (r'^accounts/login/$', 'django.contrib.auth.views.login'),
> (r'^mostro_prima', 'prova.test_sito.views.mostro_prima'),
> (r'$', 'prova.test_sito.views.mostro_pr
On Thursday, March 03, 2011 08:00:45 am luca72 wrote:
> hello i have define this in the url:
> (r'^admin/', include(admin.site.urls)),
> (r'^accounts/login/$', 'django.contrib.auth.views.login'),
> (r'^mostro_prima', 'prova.test_sito.views.mostro_prima'),
> (r'$', 'prova.test_sito.views
Hi Karen,
On Oct 10, 5:58 pm, Karen Tracey wrote:
> On Sat, Oct 10, 2009 at 6:34 PM, Scott SA wrote:
> > I am trying to use a series of generic views with custom filtering via
> > callbacks as per:
> I cannot figure out how this one differs from the next one, nor can I
> recreate first two e
On Sat, Oct 10, 2009 at 6:34 PM, Scott SA wrote:
>
> Hi,
>
> I am trying to use a series of generic views with custom filtering via
> callbacks as per:
>
>
> http://docs.djangoproject.com/en/dev/topics/generic-views/#extending-generic-views
>
> Unfortunately, when I try to name the URL in urls.py
Resolved, if I could say so :)
the problem was that I can't use reverse in forms.py 'cause is to
early for doing that :(
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, se
Almost resolved :)
I tried everything to find the error and finally I did, but I don't
know how to resolve :(
the error is casued by this line in a imported script:
CITY_URL = reverse('get_city_list')
if I remove that line the project works fine, but I need that line :(
Ps. the url get_city_l
This is really boring :(
I've restarted the server, and it doens't work again :/
also I've noticed that no urls in reparations.urls can't be called
with the template tag url...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
What a strangeness!
I edit the template removing the extend tag, and it worked, next I
readded the extend and it still worked :O
this is really strange :/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users
On 22 Dic, 09:24, Malcolm Tredinnick wrote:
> Okay, nothing unexpected there. If I use the same lines with a dummy
> view file, things certainly seem to work.
>
> The confusing thing here is that the url template tag is a relatively
> simple wrapper around reverse(), so there aren't many places f
On Sun, 2008-12-21 at 23:58 -0800, patrick91 wrote:
> On 22 Dic, 02:17, Malcolm Tredinnick wrote:
> > Certainly a bit unexpected. Can you paste the relevant lines from your
> > URL Conf file, please?
> >
> > Regards,
> > Malcolm
>
> Sure :)
> here it is:
> url(r'foglio/(?P[0-9]+)/$', views.show_
On 22 Dic, 02:17, Malcolm Tredinnick wrote:
> Certainly a bit unexpected. Can you paste the relevant lines from your
> URL Conf file, please?
>
> Regards,
> Malcolm
Sure :)
here it is:
url(r'foglio/(?P[0-9]+)/$', views.show_worksheet,
name='show_worksheet'),
Thanks for the reply
--~--~-
On Sun, 2008-12-21 at 11:45 -0800, patrick91 wrote:
> Hi, I've a problem with the url tag, when I call this template:
> Visualizza
> I get this error:
> Caught an exception while rendering: Reverse for
> 'catsnc.show_worksheet' with arguments '(5537,)' and keyword arguments
> '{}' not found.
>
>
Brian Neal wrote:
>
>
> On Sep 19, 12:45 pm, Steve Holden <[EMAIL PROTECTED]> wrote:
>> That's annoying: now *I* have a (named) pattern that won't reverse with
>> the URL tag: specifically, the edit profile URL from the Google code
>> profiles app:
>>
>>url(r'^edit/$',
>>
On Sep 19, 12:45 pm, Steve Holden <[EMAIL PROTECTED]> wrote:
> That's annoying: now *I* have a (named) pattern that won't reverse with
> the URL tag: specifically, the edit profile URL from the Google code
> profiles app:
>
> url(r'^edit/$',
> vi
Brian Neal wrote:
>
> On Sep 16, 4:09 pm, Steve Holden <[EMAIL PROTECTED]> wrote:
>
>> Brian Neal wrote:
>>
>>> I might have found my answer. I was looking at the list of
>>> incompatible changes and found this:
>>>
>>> http://code.djangoproject.com/changeset/8760
>>>
>>> Whi
On Mon, 2008-09-15 at 20:44 -0700, Ross wrote:
> Check out the description of the {% url %} tag in the Django
> documentation:
>
> http://docs.djangoproject.com/en/dev/ref/templates/builtins/#url
>
> It does not expect the project name to be in the URL. Try dropping
> "gpp" and just use "weblin
On Sep 16, 4:09 pm, Steve Holden <[EMAIL PROTECTED]> wrote:
> Brian Neal wrote:
> > I might have found my answer. I was looking at the list of
> > incompatible changes and found this:
>
> >http://code.djangoproject.com/changeset/8760
>
> > Which led me to this:
>
> >http://docs.djangoproject.com
Brian Neal wrote:
> I might have found my answer. I was looking at the list of
> incompatible changes and found this:
>
> http://code.djangoproject.com/changeset/8760
>
> Which led me to this:
>
> http://docs.djangoproject.com/en/dev/topics/http/urls/#reverse
>
> I quote from the docs:
>
> "The re
I might have found my answer. I was looking at the list of
incompatible changes and found this:
http://code.djangoproject.com/changeset/8760
Which led me to this:
http://docs.djangoproject.com/en/dev/topics/http/urls/#reverse
I quote from the docs:
"The reverse() function can reverse a large
hello,
you could try named url patterns.
> I am also seeing strange things if I change the order of the URLs in
> my URL patterns list.
please define "strange things" :) in general, the order of urls
matters because django starts rverse lookup from the top of the list
and stops at the first mat
On Sep 15, 10:44 pm, Ross <[EMAIL PROTECTED]> wrote:
> Check out the description of the {% url %} tag in the Django
> documentation:
>
> http://docs.djangoproject.com/en/dev/ref/templates/builtins/#url
>
> It does not expect the project name to be in the URL. Try dropping
> "gpp" and just use "web
Check out the description of the {% url %} tag in the Django
documentation:
http://docs.djangoproject.com/en/dev/ref/templates/builtins/#url
It does not expect the project name to be in the URL. Try dropping
"gpp" and just use "weblinks.views.view_links".
On Sep 15, 9:19 pm, Brian Neal <[EMAIL
Terrific; thank you. The book was right, I got got carried away with
some copy and pasting.
On Jan 19, 8:30 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Jan 19, 2008 9:37 PM, Lee Hinde <[EMAIL PROTECTED]> wrote:
>
>
>
> > [snipped]
>
> > > from django.conf.urls.defaults import *
> > > # fro
On Jan 19, 2008 9:37 PM, Lee Hinde <[EMAIL PROTECTED]> wrote:
>
> [snipped]
>
> > from django.conf.urls.defaults import *
> > # from winesite.winecomp import views
> >
> > urlpatterns = patterns('',
> > # Example:
> > # (r'^winesite/', include('winesite.foo.urls')),
> >
> > # Uncomment this for ad
On Jan 19, 6:25 pm, Lee Hinde <[EMAIL PROTECTED]> wrote:
> On Jan 19, 6:06 pm, Lee Hinde <[EMAIL PROTECTED]> wrote:
> >
>
> > Hi;
>
> > I have the admin site working, now I'm trying to add my first
> > standalone form.
>
> > Working from the 'simple' example from Chapter 7 of the book. I've
> >
On Jan 19, 6:06 pm, Lee Hinde <[EMAIL PROTECTED]> wrote:
> Hi;
>
> I have the admin site working, now I'm trying to add my first
> standalone form.
>
> Working from the 'simple' example from Chapter 7 of the book. I've
> adapted it to my practice project.
>
> After modifying the urls.py file I get
On Jun 27, 9:42 pm, robo <[EMAIL PROTECTED]> wrote:
> Yes, Alberto is right.
>
> Also, I ran into this problem a few days ago. Basically, after you
> write your view processing like Alberto suggested, you need to do a
> response redirect or HttpResponseRedirect and pass it "." (which is to
> the
Yes, Alberto is right.
Also, I ran into this problem a few days ago. Basically, after you
write your view processing like Alberto suggested, you need to do a
response redirect or HttpResponseRedirect and pass it "." (which is to
the same page the user was on). After I did that on my form, the use
Hello,
On Jun 27, 10:55 am, AnaReis <[EMAIL PROTECTED]> wrote:
> Hi,
> I'm having a problem here and I don't really know how to solve it.
> I have a form on a page, the add user page:
> (r'^manager/operations/nlsciadc/users/adduser/$', add_user), #The
> template is add_user.html
>
> When the use
33 matches
Mail list logo