problem with url

2019-05-02 Thread randmwheeler
new to django. so i have an app that displays an html page. i also have a menu on that page that will load up other html pages. however, when i add the path to urls.py and then the class def in views, it fails. i know it's something simple, what am i missing. As I said, the dashboard.html

Re: Problem: django url Admin/ is autmatically coverted to admin/

2018-08-27 Thread Andréas Kühne
Please remember that url's are not case sensitive - even though python is. So /admin/ and /Admin/ are the same path Regards, Andréas Den lör 25 aug. 2018 kl 20:27 skrev Devender Kumar : > i have separate Admin app and using admin also but when I am accessing > Admin/trips is accessed and

Re: Problem: django url Admin/ is autmatically coverted to admin/

2018-08-25 Thread Jason
if you have your urls file like urlpatterns = [ path('admin/', admin.site.urls),] that sends everything with the url somesite.com/admin to the django admin. either remove the django admin app and replace with your own, or use a different path -- You received this message because you

Problem: django url Admin/ is autmatically coverted to admin/

2018-08-25 Thread Devender Kumar
i have separate Admin app and using admin also but when I am accessing Admin/trips is accessed and Admin is not accessed -- 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

Re: Problem with url template tag and namespaces

2015-04-07 Thread donarb
; > > > I get this url: > > /dashboard/playerssearch > > > Any idea why there is no path separator between 'players' and 'search'? > Just to follow up, I found the problem. The search url pattern had an optional trailing '/', so it was not creating the url co

Problem with url template tag and namespaces

2015-04-07 Thread donarb
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.urls', namespace='dashboard')), ) Here is the dashboard urls.py: #

Re: Problem with URL configuration - cannot use absolute URLs in my case

2012-10-09 Thread Stephen Anto
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 /

Re: Problem with URL configuration - cannot use absolute URLs in my case

2012-10-08 Thread Ramiro Morales
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:

Problem with URL configuration - cannot use absolute URLs in my case

2012-10-06 Thread Rohit Banga
Hi I have a website at example.com/mywebsite. All URL requests directed to this URL are directed to my app. Now I have the following project structure mywebsiteroot/ -- myapp/ -- manage.py -- myapp/ --templates/ --settings.py

Re: problem with url

2011-03-03 Thread luca72
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

Re: problem with url

2011-03-03 Thread Tom Evans
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'$',

Re: problem with url

2011-03-03 Thread Mike Ramirez
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'$',

problem with url

2011-03-03 Thread luca72
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_prima'), (r'^inserisco/',

Re: Problem with URL naming, generic templates and custom filtering wrappers

2009-10-10 Thread Scott SA
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

Re: Problem with URL naming, generic templates and custom filtering wrappers

2009-10-10 Thread Karen Tracey
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

Problem with URL naming, generic templates and custom filtering wrappers

2009-10-10 Thread Scott SA
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, I get various errors depending upon how I try to write the

Re: Weird problem in url resolving after restarting django dev. server

2009-05-27 Thread Steve Howell
On May 27, 8:23 am, Konstantin S wrote: > On May 26, 9:28 pm, Steve Howell wrote: > > [...] > > Perhaps you can try to step through the code in the debugger.  The top- > > level method involved in reversing URLs are not super complicated. > > You can

Re: Weird problem in url resolving after restarting django dev. server

2009-05-27 Thread Konstantin S
On May 26, 9:28 pm, Steve Howell wrote: > > From the docs you might want to take advantage of the name= parameter > in your URLS setup and do something like {% url 'add_media_action' > %}.  Not sure about the quoting, as the docs are vague about quoting > literals. > > ''' >

Re: Weird problem in url resolving after restarting django dev. server

2009-05-26 Thread Steve Howell
On May 26, 6:43 am, Konstantin S wrote: > On May 20, 2:02 pm, Konstantin S wrote: > > > Hello! > > > I have a very strange problem and really don't know where to start in > > hunting it down. My app uses django-registration, all works fine but > > if

Re: Weird problem in url resolving after restarting django dev. server

2009-05-26 Thread Konstantin S
On May 20, 2:02 pm, Konstantin S wrote: > Hello! > > I have a very strange problem and really don't know where to start in > hunting it down. My app uses django-registration, all works fine but > if I been logged in restart django dev. server I immediately get >

Re: Weird problem in url resolving after restarting django dev. server

2009-05-20 Thread Konstantin S
On 20 май, 22:48, Steve Howell wrote: > On May 20, 10:49 am, Konstantin S wrote: > > > > > On 20 май, 19:43, Steve Howell wrote: > > > > To elaborate on Karen's suggestion, one way to see which URLs are > > > among the candidates

Re: Weird problem in url resolving after restarting django dev. server

2009-05-20 Thread Steve Howell
On May 20, 10:49 am, Konstantin S wrote: > On 20 май, 19:43, Steve Howell wrote: > > > > > To elaborate on Karen's suggestion, one way to see which URLs are > > among the candidates for resolving the reverse match is to > > deliberately hit a bad URL

Re: Weird problem in url resolving after restarting django dev. server

2009-05-20 Thread Konstantin S
On 20 май, 19:43, Steve Howell wrote: > > To elaborate on Karen's suggestion, one way to see which URLs are > among the candidates for resolving the reverse match is to > deliberately hit a bad URL like the following: > >

Re: Weird problem in url resolving after restarting django dev. server

2009-05-20 Thread Steve Howell
On May 20, 6:41 am, Karen Tracey wrote: > On Wed, May 20, 2009 at 7:28 AM, Konstantin S wrote: > > > On 20 май, 14:02, Konstantin S wrote: > > > Hello! > > > > I have a very strange problem and really don't know where to start in

Re: Weird problem in url resolving after restarting django dev. server

2009-05-20 Thread Konstantin S
On 20 май, 17:41, Karen Tracey wrote: > There's got to be some difference between your server > environment and the shell environment you are using that is causing that. > All works fine until I restart django dev. http server. If at that moment I was logged in into my site

Re: Weird problem in url resolving after restarting django dev. server

2009-05-20 Thread Karen Tracey
On Wed, May 20, 2009 at 7:28 AM, Konstantin S wrote: > > On 20 май, 14:02, Konstantin S wrote: > > Hello! > > > > I have a very strange problem and really don't know where to start in > > hunting it down. My app uses django-registration, all works

Re: Weird problem in url resolving after restarting django dev. server

2009-05-20 Thread Konstantin S
On 20 май, 14:02, Konstantin S wrote: > Hello! > > I have a very strange problem and really don't know where to start in > hunting it down. My app uses django-registration, all works fine but > if I been logged in restart django dev. server I immediately get >

Re: Problem with url tag

2008-12-27 Thread patrick91
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,

Re: Problem with url tag

2008-12-23 Thread patrick91
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

Re: Problem with url tag

2008-12-22 Thread patrick91
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

Re: Problem with url tag

2008-12-22 Thread patrick91
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

Re: Problem with url tag

2008-12-22 Thread patrick91
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

Re: Problem with url tag

2008-12-22 Thread Malcolm Tredinnick
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: >

Re: Problem with url tag

2008-12-21 Thread patrick91
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

Re: Problem with url tag

2008-12-21 Thread Malcolm Tredinnick
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 &

Problem with url tag

2008-12-21 Thread patrick91
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. But when I call this code from the shell: >>

Re: Problem with url tag (Caught an exception while rendering: Reverse ...)

2008-09-19 Thread Steve Holden
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/$',

Re: Problem with url tag (Caught an exception while rendering: Reverse ...)

2008-09-19 Thread Brian Neal
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/$', >                            

Re: Problem with url tag (Caught an exception while rendering: Reverse ...)

2008-09-19 Thread Steve Holden
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 >>> >>>

Re: Problem with url tag (Caught an exception while rendering: Reverse ...)

2008-09-16 Thread Malcolm Tredinnick
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

Re: Problem with url tag (Caught an exception while rendering: Reverse ...)

2008-09-16 Thread Brian Neal
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: > >

Re: Problem with url tag (Caught an exception while rendering: Reverse ...)

2008-09-16 Thread Steve Holden
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: Problem with url tag (Caught an exception while rendering: Reverse ...)

2008-09-16 Thread Brian Neal
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

Re: Problem with url tag (Caught an exception while rendering: Reverse ...)

2008-09-16 Thread akonsu
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

Re: Problem with url tag (Caught an exception while rendering: Reverse ...)

2008-09-16 Thread Brian Neal
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

Re: Problem with url tag (Caught an exception while rendering: Reverse ...)

2008-09-15 Thread Ross
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

Problem with url tag (Caught an exception while rendering: Reverse ...)

2008-09-15 Thread Brian Neal
This is my urls.py for an app (notice the two that start with ^category/, they both vector to my function view_links): from django.conf.urls.defaults import * urlpatterns = patterns('gpp.weblinks.views', (r'^$', 'link_index'), (r'^add/$', 'add_link'), (r'^category/(?P\d+)/$',

Re: Problem about Url

2008-05-20 Thread Simon Tite
Correction to last message: def intropage: query="some default value" page="1" #(default to page 1) if "query" in request.GET: query=request.GET("query") if "page" in request.GET: page=request.GET("page") #go get the

Re: Problem about Url

2008-05-20 Thread Simon Tite
On May 19, 7:32 pm, "free won" <[EMAIL PROTECTED]> wrote: > i found this Problem  when i decide to use Paginator. > > the str    *(?P\w+/)$*     can express    * ?query=xxx* > > so if i wanna express *?query=xxx=1*,  how can I write the str for > urls.py? The part of the url following (and

Problem about Url

2008-05-19 Thread free won
i found this Problem when i decide to use Paginator. the str*(?P\w+/)$* can express* ?query=xxx* so if i wanna express *?query=xxx=1*, how can I write the str for urls.py? THanks. :D -- Start Dream http://www.freeis.cn/ --~--~-~--~~~---~--~~ You

Re: Problem with url conf from chapter 7 of djangobook

2008-01-19 Thread Lee Hinde
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 * > > > #

Re: Problem with url conf from chapter 7 of djangobook

2008-01-19 Thread Karen Tracey
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

Re: Problem with url conf from chapter 7 of djangobook

2008-01-19 Thread Lee Hinde
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 > >

Re: Problem with url conf from chapter 7 of djangobook

2008-01-19 Thread Lee Hinde
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

Problem with url conf from chapter 7 of djangobook

2008-01-19 Thread Lee Hinde
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 this error when trying to access anything, including admin: Error

Re: Problem with URL

2007-06-28 Thread AnaReis
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 >

Re: Problem with URL

2007-06-27 Thread robo
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

Re: Problem with URL

2007-06-27 Thread Alberto Piai
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

Problem with URL

2007-06-27 Thread AnaReis
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 user presses submit, the action on the form sends the user to: This on my