Created
May 10, 2011 08:29
-
-
Save mbrochh/964100 to your computer and use it in GitHub Desktop.
Setting up django-shop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkvirtualenv -p python2.7 --no-site-packages django-shop-adventures | |
workon django-shop-adventures | |
pip install django==1.3 | |
pip install south | |
pip install django-shop | |
# this folder structure is not a must | |
# it helps if you want to host your app at webfaction.com | |
mkdir $HOME/Projects/django-shop-adventures/src/webapps/django | |
mkdir $HOME/Projects/django-shop-adventures/src/webapps/static | |
cd $HOME/Projects/django-shop-adventures/src | |
# create .gitignore and add *.pyc | |
cd webapps/django | |
django-admin startproject project | |
cd project | |
django-admin startapp myshop | |
# follow getting started documentation | |
# edit DATABASES in settings.py | |
# edit MIDDLEWARE_CLASSES in settings.py | |
# edit INSTALLED_APPS in settings.py | |
# edit urls.py | |
mkdir -p myshop/templates/myshop | |
python manage.py syncdb --all | |
python manage.py migrate --fake | |
python manage.py runserver |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment