Problem with my logout template (and admin logout template)
I have a problem with logout admin template and my logout template (from my application). Why 'admin-template' overrides my template("test_app/templates/registration/logged_out.html")? 'Login' template works fine, I have a problem only with 'logout'. Below is working example (in attachment). Clicking on 'logout' applies the template admin. regards, VVilku -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out. django_logout_problem.rar Description: application/rar
Re: Django 1.5 and url tag ( {% url 'django.contrib.auth.views.login' %})
Django and phpBB3: I was just checking possibilities connectivity between Django and phpBB. Maybe *DjangoBB* interest you. Migration & connection: https://github.com/jedie/django-phpBB3 regargs, W dniu środa, 13 marca 2013 20:57:33 UTC+1 użytkownik Mike Doroshenko II napisał: > > 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 '()' 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: NoReverseMatch > > Exception Value: > > > > Reverse for 'django.contrib.auth.views.login' with arguments '()' and > > keyword arguments '{}' not found. > > > > > > blog/urls.py: > > urlpatterns = patterns('', > >url(r'^accounts/login/$', > > 'django.contrib.auth.views.login', name='login1'), > >url(r'^accounts/logout/$', > > 'django.contrib.auth.views.logout'), > > ) > > > > blog/templates/registration/login.html: > > > > > > I try without quotes, but I receive another error (I know, in django > > 1.5 are a some changes in url tag): > > > > 'url' requires a non-empty first argument. The syntax changed in > > Django 1.5, see the docs. > > > > I tried to use only name ("login" -> {% url 'login1' %} and {% url > > 'login1' %} ). Also, it does not work. > > (Reverse for 'login1' with arguments '()' and keyword arguments '{}' > > not found.) > > > > > > Any suggestions? > > > > regards, > > VVilku > > > > -- > > 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...@googlegroups.com . > > To post to this group, send email to > > django...@googlegroups.com. > > > Visit this group at http://groups.google.com/group/django-users?hl=en. > > For more options, visit https://groups.google.com/groups/opt_out. > > -- > Mike Doroshenko, Junior Sys Admin > TecKnoQuest Inc. > mi...@tecknoquest.com > www.tecknoquest.com > > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Django 1.5 and url tag ( {% url 'django.contrib.auth.views.login' %})
Thanks a lot :) You're right.I did not notice it. Working when add 'atest': ** or ** or when *remove this namespace from project/urls.py*. regargs W dniu środa, 13 marca 2013 20:46:41 UTC+1 użytkownik rudyryk napisał: > > Hi VVilku! > > It should work if you remove `namespace='atest'` from > 'auth_project/urls.py'. > > > regards, > Alex > /// > > 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") > > > > > > > > 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 > >> keyword arguments '{}' not found. > >> > >> > >> Request Method: GET > >> Request URL: http://www.django-phpbb.pl:8000/blog/accounts/login/ > >> Django Version: 1.5 > >> Exception Type: NoReverseMatch > >> Exception Value: > >> > >> Reverse for 'django.contrib.auth.views.login' with arguments '()' and > >> keyword arguments '{}' not found. > >> > >> > >> blog/urls.py: > >> urlpatterns = patterns('', > >>url(r'^accounts/login/$', > >> 'django.contrib.auth.views.login', name='login1'), > >>url(r'^accounts/logout/$', > >> 'django.contrib.auth.views.logout'), > >> ) > >> > >> blog/templates/registration/login.html: > >> > >> > >> I try without quotes, but I receive another error (I know, in django > 1.5 > >> are a some changes in url tag): > >> > >> 'url' requires a non-empty first argument. The syntax changed in Django > >> 1.5, see the docs. > >> > >> I tried to use only name ("login" -> {% url 'login1' %} and {% url > >> 'login1' %} ). Also, it does not work. > >> (Reverse for 'login1' with arguments '()' and keyword arguments '{}' > not > >> found.) > >> > >> > >> Any suggestions? > >> > >> regards, > >> VVilku > >> > > -- > > 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...@googlegroups.com . > > To post to this group, send email to > > django...@googlegroups.com. > > > Visit this group at http://groups.google.com/group/django-users?hl=en. > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Django 1.5 and url tag ( {% url 'django.contrib.auth.views.login' %})
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 '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: NoReverseMatch > Exception Value: > > Reverse for 'django.contrib.auth.views.login' with arguments '()' and > keyword arguments '{}' not found. > > > blog/urls.py: > urlpatterns = patterns('', >url(r'^accounts/login/$', > 'django.contrib.auth.views.login', name='login1'), >url(r'^accounts/logout/$', > 'django.contrib.auth.views.logout'), > ) > > blog/templates/registration/login.html: > > > I try without quotes, but I receive another error (I know, in django 1.5 > are a some changes in url tag): > > 'url' requires a non-empty first argument. The syntax changed in Django > 1.5, see the docs. > > I tried to use only name ("login" -> {% url 'login1' %} and {% url > 'login1' %} ). Also, it does not work. > (Reverse for 'login1' with arguments '()' and keyword arguments '{}' not > found.) > > > Any suggestions? > > regards, > VVilku > > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Django 1.5 and url tag ( {% url 'django.contrib.auth.views.login' %})
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: NoReverseMatch Exception Value: Reverse for 'django.contrib.auth.views.login' with arguments '()' and keyword arguments '{}' not found. blog/urls.py: urlpatterns = patterns('', url(r'^accounts/login/$', 'django.contrib.auth.views.login', name='login1'), url(r'^accounts/logout/$', 'django.contrib.auth.views.logout'), ) blog/templates/registration/login.html: I try without quotes, but I receive another error (I know, in django 1.5 are a some changes in url tag): 'url' requires a non-empty first argument. The syntax changed in Django 1.5, see the docs. I tried to use only name ("login" -> {% url 'login1' %} and {% url 'login1' %} ). Also, it does not work. (Reverse for 'login1' with arguments '()' and keyword arguments '{}' not found.) Any suggestions? regards, VVilku -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out. django_auth_problem.rar Description: application/rar
Problem with testing Django sources
Hello, I have problem with testing Django sources from Git. When I use: * PYTHONPATH=.. /python runtests.py --settings=test_sqlite*(in Windows with Git Shell). I receive these errors: == FAIL: test_naturalday_uses_localtime (django.contrib.humanize.tests.HumanizeTests) -- Traceback (most recent call last): File "D:\- Repositories GIT -\django\django\contrib\humanize\tests.py", line 162, in test_naturalday_uses_localtime self.humanize_tester([dt], ['yesterday'], 'naturalday') File "D:\- Repositories GIT -\django\django\contrib\humanize\tests.py", line 48, in humanize_tester msg="%s test failed, produced '%s', should've produced '%s'" % (method, rendered, result)) AssertionError: naturalday test failed, produced 'today', should've produced 'yesterday' == FAIL: test_aware_expiration (requests.tests.RequestsTests) Cookie accepts an aware datetime as expiration time -- Traceback (most recent call last): File "D:\- Repositories GIT -\django\tests\requests\tests.py", line 275, in test_aware_expiration self.assertEqual(datetime_cookie['max-age'], 10) AssertionError: 11 != 10 == FAIL: test_near_expiration (requests.tests.RequestsTests) Cookie will expire when an near expiration time is provided -- Traceback (most recent call last): File "D:\- Repositories GIT -\django\tests\requests\tests.py", line 266, in test_near_expiration self.assertEqual(datetime_cookie['max-age'], 10) AssertionError: 11 != 10 == FAIL: test_feed_last_modified_time (syndication.tests.SyndicationFeedTest) -- Traceback (most recent call last): File "D:\- Repositories GIT -\django\tests\syndication\tests.py", line 265, in test_feed_last_modified_time self.assertEqual(response['Last-Modified'], 'Thu, 03 Jan 2008 19:30:00 GMT') AssertionError: 'Thu, 03 Jan 2008 12:30:00 GMT' != u'Thu, 03 Jan 2008 19:30:00 GMT' ------ Ran 5124 tests in 2268.805s FAILED (failures=4, skipped=217, expected failures=9) Does anyone know what I'm doing wrong? regards, VVilku -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.