For the suggested link I get the following error message:
"ModuleNotFoundError: No module named 'registration'"
I think registration is the old name used at version 2.3.
 Instead of following the pdf I follow
https://django-registration.readthedocs.io/en/3.0/
(pdf is for an older version 2.3)
specifically
https://django-registration.readthedocs.io/en/3.0/quickstart.html is short
and describes the way to start and the urls to use... but, I am getting the
error message I have described.



On Thu, Jan 3, 2019 at 12:03 PM Rahul Verma <rahulverma....@gmail.com>
wrote:

> Can you try like ths
>   urlpatterns = [
>  # Other URL patterns ...
> url(r'^accounts/', include('registration.backends.activation.urls')),
> # More URL patterns ...
> ]
>  By the way, this is the documentation of Django Registration ,Hopefully
> it may help you.
>
> https://media.readthedocs.org/pdf/django-registration/latest/django-registration.pdf
>
> On Thu, Jan 3, 2019 at 12:33 AM Yuval Bachrach <yuval.bachr...@gmail.com>
> wrote:
>
>>     Installing and using django registration – backends
>>
>> The package is installed (pip) and migration is clean. Next steps at the
>> documents: Adding to urls at urlpatterns but I get error messages (details
>> below). So I am stacked at the very beginning. As a Django beginner, I
>> would be happy to get some help.
>>
>> The issues are with “backaends” that exists on the file system (with the
>> required content) but Django can’t find it
>>
>>
>>
>> *Details:*
>>
>> Ø  The urls added:
>>
>> urlpatterns = [
>>
>>     url(r'^accounts/',
>> include('django_registration.backends.activation.urls')),
>>
>>     url(r'^accounts/', include('django.contrib.auth.urls')),
>>
>> .
>>
>> .
>>
>> ]
>>
>> o   In here there is an error message (from runserver) ended with:
>>
>>   File "<frozen importlib._bootstrap>", line 965, in
>> _find_and_load_unlocked
>>
>> ModuleNotFoundError: No module named 'django_registration.backends'
>>
>>
>>
>> Ø  Commenting out the first url out of the two makes the error go away
>>
>> Ø  Adding (inside url.py prior to urlpattern declaration):
>>
>> from django_registration import backends
>>
>> is resulted with the following error message:
>>
>> ImportError: cannot import name 'backends' from 'django_registration'
>> (C:\Users\yuval\OneDrive\pythonWorkDir\django\tutor1\ybsite\django_registration\__init__.py)
>>
>>     (I did not think this line is to be added but wanted to see the
>> response…). I commented it out.
>>
>>
>>
>> Ø  This is the case both when in settings.py INSTALLED_APPS I have or
>> don’t have the following:
>>
>>      'django_registration',   # <===== This one is OK
>>
>> Ø  Trying to add
>>
>>      'django_registration.backends',
>>
>>  #   <===== This one is NOT OK : error message:
>>
>> oduleNotFoundError: No module named 'django_registration.backends'
>>
>>     (I did not think this line is to be added but wanted to see the
>> response…). I commented it out.
>>
>>
>>
>> So now I don’t have an error message but also not having Django
>> registration ready to use…
>>
>> --
>>
>> Yuval B
>>
>> --
>> 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 https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAD16PYRvn0652HHEXrQJ4J4hy5b4VmonUwBvi5NdxaOs7CoDtQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAD16PYRvn0652HHEXrQJ4J4hy5b4VmonUwBvi5NdxaOs7CoDtQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
> *   donverma*
>
> --
> 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 https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CALedDsJW6Vd0ASOAYMj2xbsH-%3DYghNFa-gyxn7UCMgp0e6fs_A%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CALedDsJW6Vd0ASOAYMj2xbsH-%3DYghNFa-gyxn7UCMgp0e6fs_A%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 

Yuval B

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAD16PYS4Lr7gZkD77n4LD1%3DyJqjJvgjdLk7mUoKM43QcOO-oPg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to