Bro,
do it like this:
from *your_app_name* import views

On Mon, Feb 5, 2018 at 6:54 PM, sarvit sarvit <[email protected]>
wrote:

> Hello
> I importing error
> Please help me
> from django.shortcuts import render
> from django.conf.urls import url
> from django.contrib import admin
> from django.urls import path
> from . import views
>
>
> Traceback (most recent call last):
>   File "c:\Users\saeid\Desktop\sade\env\Post\Post\urls.py", line 20, 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 [email protected].
> To post to this group, send email to [email protected].
> 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/2ff76016-b9a4-47dc-a4c1-87a828e86c0f%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/2ff76016-b9a4-47dc-a4c1-87a828e86c0f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/CAGGVXBMUEiy7jmE-pHqqgk680wnixNkxV-q1fH5vL4Z%2BQHhjow%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to