Re: url issues

2018-01-28 Thread sum abiut
Thanks heaps manage to fix it. On Fri, Jan 26, 2018 at 6:34 PM, wrote: > def login(request): > return render(request,'login.html') > > On Friday, January 26, 2018 at 6:33:07 AM UTC+5:30, suabiut wrote: >> >> Hi, >> i am having some issues with my url pattern. i

Re: url issues

2018-01-26 Thread rajendran . p
def login(request): return render(request,'login.html') On Friday, January 26, 2018 at 6:33:07 AM UTC+5:30, suabiut wrote: > > Hi, > i am having some issues with my url pattern. i can't seem to figure out > the problem. i am running django 1.11. > > i have an app name userprofile which

Re: url issues

2018-01-25 Thread Omar Abou Mrad
On Fri, Jan 26, 2018 at 3:01 AM, sum abiut wrote: > Hi, > i am having some issues with my url pattern. i can't seem to figure out > the problem. i am running django 1.11. > > <.. snip..> > urls.py > from django.conf.urls import url > from django.contrib import admin > > from .

Re: Django url issues, append slash and case insensitvity

2014-12-26 Thread Collin Anderson
Hi, waitlist/add_account/ redirecting to waitlistadd_account/ is quite odd to me. Could it simply be a bad cached 301? What does curl -i http://yourdomain/wailtlist/add_account/ say? Not sure about the case insensitivity. I've never tried it, but can't think of any side effects. Collin On

Django url issues, append slash and case insensitvity

2014-12-23 Thread pythonista
I am having some issues with trailing slashes. The application is working fine from my local machine whether I add a trailing slash or not. It is not working as expected on the servers. The link is being redirected to localhost for some reason. I thought that SLASH_APPEND= True was on by

Re: Generic views and url issues

2013-01-24 Thread amy . cerrito
Updating my template code to use namespace:url_name did it! list url: List of all ad calls detail url: Thanks again for everyone's feedback! On Thursday, January 24, 2013 10:07:14 AM UTC-5, Tom Christie wrote: > > Hi Amy, > > I'd suggest you check the following... > > * Your >

Re: Generic views and url issues

2013-01-24 Thread Tom Christie
Hi Amy, I'd suggest you check the following... * Your ROOT_URLCONFsetting is correct. * If the `urls.py` module you're referring to here is a project URL conf and not the root URL conf, make sure that it is being included by

Re: Generic views and url issues

2013-01-24 Thread Bill Freeman
Have you tried it without the quotes around 'detail' in the url template tag invocation? If I'm remembering correctly, the need for the quotes depends on django version and options. Bill On Thu, Jan 24, 2013 at 9:01 AM, Amy Cerrito wrote: > Thanks for your

Re: Generic views and url issues

2013-01-24 Thread Amy Cerrito
Thanks for your response! Unfortunately, your suggestion did not eliminate the NoReverseMatch error. NoReverseMatch at /testadcall/ Reverse for 'detail' with arguments '()' and keyword arguments '{'object_id': 1}' not found. I have another example where I request the list view, which does not

Re: Generic views and url issues

2013-01-23 Thread mgc_django-users
On 24/01/2013 10:39 AM, amy.cerr...@cbsinteractive.com wrote: I've been trying to understand how to use generic views. I've followed some tutorials, and read through Django docs, but I can't get the url function to work in my templates. I get the error NoReverseMatch at /testadcall/ Reverse

Re: Generic views and url issues

2013-01-23 Thread Sanjay Bhangar
(reply inline) On Thu, Jan 24, 2013 at 5:09 AM, wrote: > I've been trying to understand how to use generic views. I've followed some > tutorials, and read through Django docs, but I can't get the url function to > work in my templates. > > I get the error >

Re: Generic views and url issues

2013-01-23 Thread Sergiy Khohlov
try to check testaddcall/1/ please Many thanks, Serge +380 636150445 skype: skhohlov 2013/1/24 : > I've been trying to understand how to use generic views. I've followed some > tutorials, and read through Django docs, but I can't get the url function to >

Generic views and url issues

2013-01-23 Thread amy . cerrito
I've been trying to understand how to use generic views. I've followed some tutorials, and read through Django docs, but I can't get the url function to work in my templates. I get the error NoReverseMatch at /testadcall/ Reverse for 'detail' with arguments '(1,)' and keyword arguments '{}'

Re: Media and Admin Media URL Issues

2006-07-27 Thread Nebojša Đorđević
On 26 Jul 2006, at 09:37, Tyson Tate wrote: In my project's root, I have my regular media in "media/" and the admin media in "media/admin/". For some reason, I can't access anything under "media/". My server just gives me a 404. Everything under "media/" has 777 permissions. .htaccess:

Re: Media and Admin Media URL Issues

2006-07-26 Thread SmileyChris
http://www.djangoproject.com/documentation/static_files/ says: Using this method is inefficient and insecure. Do not use this in a production setting. Use this only for development. I'd guess that you just needed to symlink the media and admin media directories to your site root.

Re: Media and Admin Media URL Issues

2006-07-26 Thread Tyson Tate
Adding that to urls.py and removing the media/ rewrite rule from my .htaccess file seemed to do the trick. Thanks! -Tyson On Jul 26, 2006, at 1:22 AM, Aidas Bendoraitis wrote: > Do you have something like: > (r'^media/(?P.*)$', 'django.views.static.serve', > {'document_root': >

Re: Media and Admin Media URL Issues

2006-07-26 Thread Aidas Bendoraitis
Do you have something like: (r'^media/(?P.*)$', 'django.views.static.serve', {'document_root': '/home/ohgoditb/django_projects/fallingbullets/media/'}), in your urls.py? Regards, Aidas Bendoraitis [aka Archatas] On 7/26/06, Tyson Tate <[EMAIL PROTECTED]> wrote: > > I'm having some rather

Media and Admin Media URL Issues

2006-07-26 Thread Tyson Tate
I'm having some rather befuddling problems with getting my media URLs working for . In my project's root, I have my regular media in "media/" and the admin media in "media/admin/". For some reason, I can't access anything under "media/". My server just gives