Django for Designers/Laptop setup/OSX virtualenv: Difference between revisions

Content added Content deleted
imported>Paulproteus
(Created page with "== Test if you have the required tools == In this step, we test if you have the ''virtualenv'' tool. Take this moment to open up a command prompt. Enter the command: <pre> ...")
 
No edit summary
Line 38: Line 38:
A virtualenv is a limited Python environment that permits you to install whatever Python code you like without impacting other Python programs.
A virtualenv is a limited Python environment that permits you to install whatever Python code you like without impacting other Python programs.


First, we will have to create the virtualenv. In your command prompt, type:
First, we will have to create the virtualenv. In your command prompt, type this command. The '''.''' at the end does matter, so be sure to type it!


<pre>
<pre>
virtualenv env
virtualenv .
</pre>
</pre>


Line 47: Line 47:


<pre>
<pre>
python virtualenv.py env
python virtualenv.py .
</pre>
</pre>


Line 59: Line 59:


<pre>
<pre>
source env/bin/activate
source bin/activate
</pre>
</pre>


You should see your command prompt change to say ''env''; that is how you know you have it activated.
You should see your command prompt change to say ''django-for-designers''; that is how you know you have it activated.


== Install the requirements ==
== Install the requirements ==