Skip to content

doveStep/Django-Workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#Setup

Packages

  • python-virtualenv

Clone the git repository

git clone git clone git@github.com:folz/Django-Workshop.git && cd Django-Workshop.git

Set up Virtualenv

Create a Virtualenv:

$ virtualenv venv --distribute

New python executable in venv/bin/python................................. ................................................

Installing setuptools............done.

Before running pip (or the application), you’ll need to source the Virtualenv environment:

$ source venv/bin/activate

This will change your prompt to include the project name. (You must source the virtualenv environment for each terminal session where you wish to run your app.)

Install dependencies with pip:

$ pip install -r requirements.txt

Downloading/unpacking psycopg2==2.4.2 (from -r requirements.txt (line 2))

Downloading psycopg2-2.4.2.tar.gz (667Kb): 667Kb downloaded

Running setup.py egg_info for package psycopg2

no previously-included directories found matching 'doc/src/_build'

Downloading/unpacking Django==1.3 (from -r requirements.txt (line 1))

Downloading Django-1.3.tar.gz (6.5Mb): 6.5Mb downloaded

Running setup.py egg_info for package Django

Installing collected packages: Django, psycopg2

...

Successfully installed Django psycopg2

Cleaning up...

Create the database for the first time:

$ python djitter/manage.py syncdb

Creating tables ...

Installing custom SQL ...

Installing indexes ...

No fixtures found.

Now the Django app should be runnable. Test to make sure the application runs:

$ python djitter/manage.py syncdb

Validating models...

0 errors found

Django version 1.3, using settings 'djitter.settings'

Development server is running at http://127.0.0.1:8000/

Quit the server with CONTROL-C.

Ctrl-C to exit the server.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published