Skip to content

eleyine/pyladies-django-workshop

Repository files navigation

Pyladies Django Workshop Boilerplate

Requirements

  • git - instructions here
  • pip - instructions here
  • virtualenvwrapper - instructions here
  • npm (node package manager) - instructions here

Installation

  1. Get the boilerplate code.

    • If you have a github account, fork this repository and then:
    # in your working directory
    $ git clone git@github.com:<your username>/pyladies-django-workshop.git
    $ cd pyladies-django-workshop
    $ git reset --hard boilerplate
    • If you don't have a github account:
    # in your working directory
    $ git clone https://github.com/eleyine/pyladies-django-workshop.git
    $ cd pyladies-django-workshop
    $ git reset --hard boilerplate
  2. Set up vitualenv.

    # in pyladies-django-workshop
    $ mkvirtualenv pyladies-django
    $ workon pyladies-django
    (pyladies-django) $ pip install -r requirements.txt
  3. Install bower dependencies.

    # in pyladies-django-workshop
    (pyladies-django) $ npm install -g bower
    # you might need to use `sudo npm install -g bower`
    (pyladies-django) $ bower install
  4. Migrate Django app models.

    # in pyladies-django-workshop
    (pyladies-django) $ python manage.py migrate
    (pyladies-django) $ python manage.py runserver
  5. Visit http://localhost:8000/, you should now see a blank page with a functional navbar and sidebar.