Skip to content

Latest commit

 

History

History
56 lines (43 loc) · 1.67 KB

README.md

File metadata and controls

56 lines (43 loc) · 1.67 KB

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 [email protected]:<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.