Sunday, June 26, 2016

Re: install with package manager or pip

I setup my folder this way:
/project/VirtEnv
/project/mysite
File like requirement.txt, readme, licence and .gitignore are in
/project, /project/mysite contain manage.py and all the django file,
/project/VirtEnv is managed by virtualenv and pip. I don't look at the
content of the folder most of the time.

The (VirtEnv) at the start of your prompt tell you that VirtEnv is
activated. That's the way it should be used. Once activated, python
will be the version of python in your virtualenv, with access to all
the library you have installed.

2016-06-26 18:52 GMT+02:00 emetib <chadbrabec@gmail.com>:
>
> On Sunday, June 26, 2016 at 11:13:20 AM UTC-5, ludovic coues wrote:
>>
>> The virtualenv folder should not be your root folder.
>
>
> it's not. VirtEnv is base. VirtEnv/mysite is the virtualenv. this is
> where manage.py is located then VirtEnv/mysite/mysite and .../mysite/polls
> this is what the tutorial says for 'your first project'. trying to use the
> same naming schema so i can follow along better
>
>>
>> You can also use `venv/bin/python manage.py runserver` if you need to
>>
>> run the server from a script.
>
>
> that was the problem i was having. not having the whole/proper dir
> structure being pointed to
> was trying python VirtEnv/mysite/manage.py
> instead of VirtEnv/bin/python VirtEnv/mysite/manage.py
>
> i think that i was/am having a hard time with the idea that it's seperate,
> since sometimes without being in the venv i get the same command options
> that i'm used to at just a standard prompt. have to start thinking like
> it's a virtual server, disconnected from the base system.
>
> i think that i will stay at the (virtualenv)prompt $, until i get more used
> to it. that might help with somethings.
>
> thank you for the pointers, they are very helpful
> em
>
> --
> 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 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/e8eea30c-da36-4f7b-916c-2733a09ae91a%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.



--

Cordialement, Coues Ludovic
+336 148 743 42

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

No comments:

Post a Comment