First Django Patch: django.contrib.auth 'Specifying a namespace in include() without providing an app_name '

44 views
Skip to first unread message

jazu...@gmail.com

unread,
Apr 14, 2018, 12:29:01 PM4/14/18
to Django users
Hi, I've recently sprung a bug that seems to be easily fixable. I would like to create my first patch on django with it. I am using Django 2.0.4.

Error code:

 File "/Users/User/PycharmProjects/django 0-1 login test/auth0login/urls.py", line 18, in <module>

    path('', include('django.contrib.auth.urls', 'auth')),

  File "/Users/User/Projects/django-master/django/urls/conf.py", line 39, in include
    'Specifying a namespace in include() without providing an app_name '

The fix is simple. Adding the app_name variable in django.contrib.auth.urls fixes this problem. I was wondering if I'm overlooking something before making a ticket and patching django.

Auto Generated Inline Image 1

Tim Graham

unread,
Apr 15, 2018, 4:49:49 PM4/15/18
to Django users
It can't be changed due to backwards compatibility. See https://github.com/django/django/pull/9527.

tribhuvan kishor

unread,
Apr 16, 2018, 7:38:57 AM4/16/18
to django...@googlegroups.com
i am new on django ... can any one please guide where should i start .
and any good source for learning ?
thanks 

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2c3065ba-b342-45bc-8ce4-4c8218cc9ac0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
regards 
Tribhuvan Kishor Bhaskar
Reply all
Reply to author
Forward
0 new messages