Re: Django 1.5 and url tag ( {% url 'django.contrib.auth.views.login' %})

2013-03-13 Thread Alexey Kinyov
; /// >> >> On Wed, Mar 13, 2013 at 10:14 PM, VVilku wrote: >> > No, I dont't. :) >> > The attachment in the first post it is my attempt to isolate the >> > problem. >> > (assumption "blog"=="atest") >> > >> >

Re: Django 1.5 and url tag ( {% url 'django.contrib.auth.views.login' %})

2013-03-13 Thread VVilku
gt; Django phpBB? > > I've used phpBB before, and am curious about importing a phpBB forum > into Django. > > I am curious what that site is, but when I go there I get nothing :( > > > VVilku wrote: > > Hello, > > I have problem with: > > > &g

Re: Django 1.5 and url tag ( {% url 'django.contrib.auth.views.login' %})

2013-03-13 Thread VVilku
e the > problem. > > (assumption "blog"=="atest") > > > > > > > > W dniu środa, 13 marca 2013 14:33:42 UTC+1 użytkownik VVilku napisał: > >> > >> Hello, > >> I have problem with: > >> > >>

Re: Django 1.5 and url tag ( {% url 'django.contrib.auth.views.login' %})

2013-03-13 Thread Mike Doroshenko II
Django phpBB? I've used phpBB before, and am curious about importing a phpBB forum into Django. I am curious what that site is, but when I go there I get nothing :( VVilku wrote: Hello, I have problem with: Reverse for 'django.contrib.auth.views.login' with arguments &#

Re: Django 1.5 and url tag ( {% url 'django.contrib.auth.views.login' %})

2013-03-13 Thread Alexey Kinyov
umption "blog"=="atest") > > > > W dniu środa, 13 marca 2013 14:33:42 UTC+1 użytkownik VVilku napisał: >> >> Hello, >> I have problem with: >> >> Reverse for 'django.contrib.auth.views.login' with arguments '()' and >&

Re: Django 1.5 and url tag ( {% url 'django.contrib.auth.views.login' %})

2013-03-13 Thread VVilku
No, I dont't. :) The attachment in the first post it is my attempt to isolate the problem. (assumption "blog"=="atest") W dniu środa, 13 marca 2013 14:33:42 UTC+1 użytkownik VVilku napisał: > > Hello, > I have problem with: > > Reverse for 'dj

Re: Django 1.5 and url tag ( {% url 'django.contrib.auth.views.login' %})

2013-03-13 Thread Tom Evans
On Wed, Mar 13, 2013 at 1:33 PM, VVilku wrote: > Hello, > > I have problem with: > > Reverse for 'django.contrib.auth.views.login' with arguments '()' and > keyword arguments '{}' not found. > > > Request Method: GET > Request

Django 1.5 and url tag ( {% url 'django.contrib.auth.views.login' %})

2013-03-13 Thread VVilku
Hello, I have problem with: Reverse for 'django.contrib.auth.views.login' with arguments '()' and keyword arguments '{}' not found. Request Method: GET Request URL: http://www.django-phpbb.pl:8000/blog/accounts/login/ Django Version: 1.5 Exception Type

django.contrib.auth.views.login no response

2012-03-28 Thread jondbaker
I'm trying to build a login form by following the instructions on this page https://docs.djangoproject.com/en/dev/topics/auth/#django.contrib.auth.views.login. The form is rendered in the template with a username and password field, but the hidden "next" field has no value, th

Re: Json and django.contrib.auth.views.login

2011-07-19 Thread Andre Terra
r'^json/sendcommand/','rchip.views.json_send_command'), > > i get this message > Caught ViewDoesNotExist while rendering: Tried json_command in module > rchip.views. Error was: 'module' object has no attribute > 'json_command' > > this is my login URL: > ur

Re: Json and django.contrib.auth.views.login

2011-07-19 Thread Kevin Anthony
gt;> Caught ViewDoesNotExist while rendering: Tried json_command in module >> rchip.views. Error was: 'module' object has no attribute >> 'json_command' >> >> this is my login URL: >> url(r'^accounts/login/$','django.contrib.auth.views

Re: Json and django.contrib.auth.views.login

2011-07-19 Thread Andre Terra
.views. Error was: 'module' object has no attribute > 'json_command' > > this is my login URL: > url(r'^accounts/login/$','django.contrib.auth.views.login', > {'template_name': 'main/login.html', }), > > -- > Tha

Json and django.contrib.auth.views.login

2011-07-19 Thread Kevin Anthony
rror was: 'module' object has no attribute 'json_command' this is my login URL: url(r'^accounts/login/$','django.contrib.auth.views.login', {'template_name': 'main/login.html', }), -- Thanks Kevin Anthony www.NoSideRacing.com -- You

Re: django.contrib.auth.views.login customization

2011-02-16 Thread Dean Chester
cks into > django.contrib.auth.views.login? > I need to check some fields from UserProfile to login > > -- > 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@googl

django.contrib.auth.views.login customization

2011-02-16 Thread galago
Is it possible, to add some extra validation checks into django.contrib.auth.views.login? I need to check some fields from UserProfile to login -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: django.contrib.auth.views.login

2010-08-30 Thread Karen Tracey
On Mon, Aug 30, 2010 at 2:34 AM, ashy wrote: > > I am using django.contrib.auth.views.login for the login view. The > code for 'registration/login.html' is as below: > > > >User Login > > >User Login >{% if form.has_errors %} It loo

django.contrib.auth.views.login

2010-08-30 Thread ashy
Hi All, I am using django.contrib.auth.views.login for the login view. The code for 'registration/login.html' is as below: User Login User Login {% if form.has_errors %} Your username and password didn't match. Please try agai

reverse('django.contrib.auth.views.login') in auth tests returns /login/ rather then value set in LOGIN_URL

2010-05-19 Thread Filip Gruszczyński
In my settings I have set: LOGIN_URL = '/accounts/login/' Now if I run ./manage shell and type: In [3]: reverse('django.contrib.auth.views.login') Out[3]: '/accounts/login/' which is ok. However, when I run one of the tests from

Re: How does django.contrib.auth.views.login work?

2009-01-14 Thread scelerat
On Jan 9, 9:16 am, Brian Neal wrote: > If you use RequestContext and have the settings in your > TEMPLATE_CONTEXT_PROCESSORS, then the user variable will be available > for use in your templates. Check out: > > http://docs.djangoproject.com/en/dev/ref/templates/api/#subclassing-c... I just wan

Re: How does django.contrib.auth.views.login work?

2009-01-09 Thread Brian Neal
gt; Boo. > {% endif %] > > In an accounts/urls.py, I add a line like this: > > urlpatterns = patterns('', >     (r'^login/$', 'django.contrib.auth.views.login'), >     (r'^logout/$', 'django.contrib.auth.views.logout'), > )

How does django.contrib.auth.views.login work?

2009-01-09 Thread scelerat
terns = patterns('', (r'^login/$', 'django.contrib.auth.views.login'), (r'^logout/$', 'django.contrib.auth.views.logout'), ) I copied the form from the Djangoprojects page on user authentication into a registration/login.html template. When visit

Re: Problems with django.contrib.auth.views.login

2008-10-02 Thread F Pighi
On Oct 1, 9:55 pm, Denis Morozov <[EMAIL PROTECTED]> wrote: > Try >  {% if form.errors %} >                          Your username and password didn't match. >                          Please try again. > {% endif %} This is working, thank you :-) --~--~-~--~~~---~--~-

Re: Problems with django.contrib.auth.views.login

2008-10-02 Thread F Pighi
On Oct 1, 11:21 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > Assuming you are actually using Django 1.0, you'll need to keep in mind that > some things have changed (forms & admin definitions are two biggies) between > what the book is describing and the version you are using.  In cases where >

Re: Problems with django.contrib.auth.views.login

2008-10-01 Thread Karen Tracey
On Wed, Oct 1, 2008 at 3:55 PM, Denis Morozov <[EMAIL PROTECTED]> wrote: > > Try > {% if form.errors %} > Your username and password didn't match. > Please try again. > {% endif %} > Note this is not an error in the book but rather an indication t

Re: Problems with django.contrib.auth.views.login

2008-10-01 Thread Denis Morozov
* > from bookmarks.views import * > > urlpatterns = patterns('', >     (r'^$', main_page), >     (r'^user/(\w+)/$', user_page), >     (r'^login/$', 'django.contrib.auth.views.login'), > ) > > and this is the template

Problems with django.contrib.auth.views.login

2008-10-01 Thread F Pighi
is the url.py file: from django.conf.urls.defaults import * from bookmarks.views import * urlpatterns = patterns('', (r'^$', main_page), (r'^user/(\w+)/$', user_page), (r'^login/$', 'django.contrib.auth.views.login'), ) and this is the template regis

Re: Getting an 'User' object has no attribute 'startswith' when trying to use django.contrib.auth.views.login

2007-09-12 Thread shabda
I found the error, In my instance at the server I had added a line like, from django.contrib.auth.views import login, logout which was conflicting with the import I was expectating, from django.contrib.auth import authenticate, login I had added this after deployment to the server. On Sep 12, 7:

Getting an 'User' object has no attribute 'startswith' when trying to use django.contrib.auth.views.login

2007-09-12 Thread shabda
I am trying to loging a user after they fill a form, using code if request.method == 'POST': data = request.POST.copy() errors = form.get_validation_errors(data) if not errors: new_user = form.save(data) user_profile = UserProfile(user = new_use

Re: django.contrib.auth.views.login failing cookie test

2007-06-09 Thread Mike H
Ahhh! If I had been more explicit in giving you my code, we might have seen the problem sooner! The problem is that my login form is on the sidebar of my base.html - it appears on my homepage. My homepage renders directly to a template. So, the POST from my homepage goes to the login view from

Re: django.contrib.auth.views.login failing cookie test

2007-06-09 Thread Malcolm Tredinnick
Hey Mike, On Sat, 2007-06-09 at 16:53 +0100, Mike H wrote: > Malcolm Tredinnick wrote: > > Assuming you have the SessionMiddleware installed, you will have a > > session created whenever you access a page that Django is responsible > > for. > > > > > > Thanks, exactly what I needed to know :)

Re: django.contrib.auth.views.login failing cookie test

2007-06-09 Thread Mike H
Malcolm Tredinnick wrote: > Assuming you have the SessionMiddleware installed, you will have a > session created whenever you access a page that Django is responsible > for. > > Thanks, exactly what I needed to know :) This is not happening. After the first page view, I have no session. Mike

Re: django.contrib.auth.views.login failing cookie test

2007-06-09 Thread Mike H
Ok, a little progress on this. This is what is currently happening : I have no cookies. I go to the login page. No cookies are set. I submit the page. The test cookie is checked as part of that request. It fails. A session is still started however, and a sessionid cookie is set. set_test_cooki

Re: django.contrib.auth.views.login failing cookie test

2007-06-09 Thread Malcolm Tredinnick
On Sat, 2007-06-09 at 16:33 +0100, Mike H wrote: > Hi Malcolm, > > I'm more than willing to help track down the error (as if I dont get it > fixed, I cant use Django! Asking customers to log in twice wont go down > well...) > > I have a question though : After the first load of the login page,

Re: django.contrib.auth.views.login failing cookie test

2007-06-09 Thread Mike H
Hi Malcolm, I'm more than willing to help track down the error (as if I dont get it fixed, I cant use Django! Asking customers to log in twice wont go down well...) I have a question though : After the first load of the login page, should a session have been started for me? Or does the sessio

Re: django.contrib.auth.views.login failing cookie test

2007-06-09 Thread Malcolm Tredinnick
On Sat, 2007-06-09 at 15:48 +0100, Mike H wrote: > Hi, > > I'm trying to use the provided login view for my new application, > but whenever I use it, the first time i submit the login request, > AuthenticationForm returns the error > "Your Web browser doesn't appear to have cookies enabled. Cooki

django.contrib.auth.views.login failing cookie test

2007-06-09 Thread Mike H
Hi, I'm trying to use the provided login view for my new application, but whenever I use it, the first time i submit the login request, AuthenticationForm returns the error "Your Web browser doesn't appear to have cookies enabled. Cookies are required for logging in." The second time i submit t

Re: Extending django.contrib.auth.views.login ?

2007-02-15 Thread whiteinge
ponse = django.contrib.auth.views.login(request) if request.user.is_authenticated(): do database stuff... return response --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Extending django.contrib.auth.views.login ?

2007-02-13 Thread whiteinge
I'm pretty new to Django, so any advice would really be appreciated, especially if I'm headed in the wrong direction. I'm trying to "extend" django.contrib.auth.views.login in the same fashion as a generic view. I would like to deposit points in a user's account a

Re: is_active isn't honored by django.contrib.auth.views.login()

2006-05-24 Thread Adrian Holovaty
On 5/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I seem to be able to log in as a user with the is_active flag not set > to True. > A validator in django.contrib.auth.forms.AuthenticationForm should test > for that. > > I'd log a bug, but as far as I can tell there's no place in the bug

is_active isn't honored by django.contrib.auth.views.login()

2006-05-20 Thread [EMAIL PROTECTED]
ECTED]" <[EMAIL PROTECTED]> To: "Django users" Subject: is_active isn't honored by django.contrib.auth.views.login() Date: Sat, 20 May 2006 01:23:36 -0700 Message-ID: <[EMAIL PROTECTED]> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mac