Django for Designers: Difference between revisions

Content added Content deleted
imported>Aldeka
No edit summary
imported>Aldeka
Line 36: Line 36:
The first step is to open your terminal window, navigate to the folder where you plan to store your app code (where you set up your virtualenv for this tutorial earlier) and activate your env:
The first step is to open your terminal window, navigate to the folder where you plan to store your app code (where you set up your virtualenv for this tutorial earlier) and activate your env:


<source>$ source env/bin/activate</source>
<source lang="bash">$ source env/bin/activate</source>


You'll know it worked because afterwards, you'll see <source>(env)</source> at the front of all your terminal lines in that terminal window!
You'll know it worked because afterwards, you'll see <source>(env)</source> at the front of all your terminal lines in that terminal window!
Line 44: Line 44:
If you're following this tutorial at PyCon, in your terminal, run:
If you're following this tutorial at PyCon, in your terminal, run:


<source>$ git clone git://github.com/aldeka/pycon-django-tutorial.git</source>
<source lang="bash">$ git clone git://github.com/aldeka/pycon-django-tutorial.git</source>


This will download a few files that we'll be using in this tutorial.
This will download a few files that we'll be using in this tutorial.
Line 56: Line 56:
To make your first branch, first enter the pycon-django-tutorial directory:
To make your first branch, first enter the pycon-django-tutorial directory:


<source>$ cd pycon-django-tutorial</source>
<source lang="bash">$ cd pycon-django-tutorial</source>


Then enter:
Then enter:


<source>$ git branch my-branch-1</source>
<source lang="bash">$ git branch my-branch-1</source>


Congratulations! You're now in a branch named my-branch-1!
Congratulations! You're now in a branch named my-branch-1!
Line 66: Line 66:
You can see what branch you are in (and what branches are in your repository) at any time by typing:
You can see what branch you are in (and what branches are in your repository) at any time by typing:


<source>$ git branch</source>
<source lang="bash">$ git branch</source>


====Set up your settings and database====
====Set up your settings and database====