my latest response failed to make it - SO I am trying again (converted some
text to jpg - the contect of dirs() and "ls" in shell)

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.

django_registration project was added to INSTALLED_APPS as instructed.



On:

urlpatterns = [

    url(r'^accounts/',
include('django_registration.backends.activation.urls')),

    url(r'^accounts/', include('django.contrib.auth.urls')),



I had to comment out the first url as backends due to an error:

  File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked

ModuleNotFoundError: No module named 'django_registration.backends'


[image: django registration backends.jpg]

There were suggestions at web to install django_registration using --user
flag of pip install: Tried that: It does not help



On Wed, Jan 2, 2019 at 8:02 PM 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
>
>

-- 

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/CAD16PYTu%2BKLoXN9zz5Uh5Zn3iRujTtX0620Gjrb5gKK7EqdWsA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to