Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

Close

virtualenvwrapper.django

virtualenvwrapper.django is a template plugin for virtualenvwrapper to create new Django projects automatically. When used with mkproject, it installs Django into the new virtualenv then runs django-admin.py to create a new project skeleton.

Installation

$ pip install virtualenvwrapper.django

Usage

$ mkproject -t django my_fancy_new_site
site_filename is /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.pyc
New python executable in my_fancy_new_site/bin/python
Installing distribute...done.

... virtualenv and project directories are created ...

Applying template django
Downloading/unpacking django
  Downloading Django-1.2.4.tar.gz (6.4Mb): 6.4Mb downloaded
  Running setup.py egg_info for package django

Installing collected packages: django
  Running setup.py install for django
    changing mode of build/scripts-2.7/django-admin.py from 644 to 755

    changing mode of /Users/dhellmann/.virtualenvs/my_fancy_new_site/bin/django-admin.py to 755
Successfully installed django
Cleaning up...

virtualenvwrapper.django Running "django-admin.py startprojects my_fancy_new_site"

(my_fancy_new_site)$ find .
.
./my_fancy_new_site
./my_fancy_new_site/__init__.py
./my_fancy_new_site/manage.py
./my_fancy_new_site/settings.py
./my_fancy_new_site/urls.py

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.