Sunday, November 24, 2019

Re: I can't import views

Where is the views.py file located?

On Sun, Nov 24, 2019 at 10:23 AM Shrikanth M <shrikanthmalli9@gmail.com> wrote:
can i get solution for this?

On Saturday, August 5, 2017 at 4:43:42 AM UTC+5:30, Body Abdo wrote:
I'm trying to import view in my url in base project but i can't


File "/var/www/project/venvs/lib64/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 978, in _gcd_import
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load
  File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
  File "/var/www/project/tapelss/movies/movies/urls.py", line 4, in <module>
    from .import views
ImportError: cannot import name 'views'

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/04037b07-4883-4360-8c15-9bd8ef6cdce6%40googlegroups.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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANfN%3DK9mcbjzzo5rpK0DEhk5FXGpPBQbUdkv09frWTL5g4zsQw%40mail.gmail.com.

No comments:

Post a Comment