Re: django 1.11 run error

2017-11-24 Thread ngn

Thanks Jason, That solved the problem.

I am grateful


On 11/23/2017 02:43 PM, Jason wrote:
If this is a new environment with existing source code, did you 
install all the requirements?  eg, is there a requirements.txt file in 
the project root, and did you execute pip install -r requirements.txt 
when the virtual env was activated?


If so, try running pip install python-dotenv

Your error message says it can't find that module, so I suspect the 
python-dotenv package hasn't been installed to your virtualenv

--
You received this message because you are subscribed to a topic in the 
Google Groups "Django users" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/django-users/wxSoCYhwDfg/unsubscribe.
To unsubscribe from this group and all its topics, 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/189476e6-22b6-4caa-9f74-beb24999c3c2%40googlegroups.com 
.

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 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/0f3a9a43-db75-712f-59d8-6f6373fb7c9f%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: django 1.11 run error

2017-11-23 Thread Jason
If this is a new environment with existing source code, did you install all 
the requirements?  eg, is there a requirements.txt file in the project 
root, and did you execute pip install -r requirements.txt when the virtual 
env was activated?

If so, try running pip install python-dotenv

Your error message says it can't find that module, so I suspect the 
python-dotenv package hasn't been installed to your virtualenv

-- 
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/189476e6-22b6-4caa-9f74-beb24999c3c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django 1.11 run error

2017-11-22 Thread ngn zone
Thanks k2527806 , Actually my virtualenv is activated and all the commands 
"python manage.py migrate " is run  while it is activated. So I still 
wonder what might be wrong. Is it the django installation or the virtualenv 
installation? I  wonder

On Wednesday, November 22, 2017 at 10:51:09 PM UTC+1, k2527806 wrote:
>
> If you use virtualenv, first of all activate the virtualenv
>
> On Nov 22, 2017 8:12 PM, "ngn zone"  
> wrote:
>
> Hello all,
>
>   I am new to Django. I am trying to run a project and when I run "python 
> manage.py makemigrations " I get the following error message. 
> What am I doing wrong?
>
>
> python manage.py makemigrations
> Traceback (most recent call last):
>   File "manage.py", line 9, in 
> dotenv.read_dotenv()
> AttributeError: 'module' object has no attribute 'read_dotenv'
>
> -- 
> 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...@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/7b296ad6-ef80-4186-a82b-a49345448bee%40googlegroups.com
>  
> 
> .
> 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 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/33a4b45e-37c9-4696-a0df-7a4408fd55f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django 1.11 run error

2017-11-22 Thread nerdfiles
pyenv also allows for a .local file to autoload the environment

On Wednesday, November 22, 2017 at 3:51:09 PM UTC-6, k2527806 wrote:
>
> If you use virtualenv, first of all activate the virtualenv
>
> On Nov 22, 2017 8:12 PM, "ngn zone"  
> wrote:
>
> Hello all,
>
>   I am new to Django. I am trying to run a project and when I run "python 
> manage.py makemigrations " I get the following error message. 
> What am I doing wrong?
>
>
> python manage.py makemigrations
> Traceback (most recent call last):
>   File "manage.py", line 9, in 
> dotenv.read_dotenv()
> AttributeError: 'module' object has no attribute 'read_dotenv'
>
> -- 
> 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...@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/7b296ad6-ef80-4186-a82b-a49345448bee%40googlegroups.com
>  
> 
> .
> 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 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/d9ba221d-e3fd-4a74-903b-cf16e7f4b357%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django 1.11 run error

2017-11-22 Thread mohammad k
If you use virtualenv, first of all activate the virtualenv

On Nov 22, 2017 8:12 PM, "ngn zone"  wrote:

Hello all,

  I am new to Django. I am trying to run a project and when I run "python
manage.py makemigrations " I get the following error message.
What am I doing wrong?


python manage.py makemigrations
Traceback (most recent call last):
  File "manage.py", line 9, in 
dotenv.read_dotenv()
AttributeError: 'module' object has no attribute 'read_dotenv'

-- 
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/7b296ad6-ef80-4186-a82b-a49345448bee%40googlegroups.com

.
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 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/CACOk0TzPjfdSNyhUGwZoX5Kp2JEoWSP3Ar%3Dgjpn%3DmsRsCYSMqA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


django 1.11 run error

2017-11-22 Thread ngn zone
Hello all,

  I am new to Django. I am trying to run a project and when I run "python 
manage.py makemigrations " I get the following error message. 
What am I doing wrong?


python manage.py makemigrations
Traceback (most recent call last):
  File "manage.py", line 9, in 
dotenv.read_dotenv()
AttributeError: 'module' object has no attribute 'read_dotenv'

-- 
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/7b296ad6-ef80-4186-a82b-a49345448bee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.