Skip to content

pybay/pybay_old

 
 

Repository files navigation

pybay

This website has been moved.

Build Status

The website for PyBay prior to 2024 - the Bay Area Python Conference.

To work on this you'll need Python 3.6. Then:

  1. Fork the repo to your own personal github.

    • also clone the symposion repository, take note of the path to symposion/
  2. Clone the repo to your local environment; Try:

    $ python3.6 -m pip install --user pipenv
    $ git clone git@github.com:pybay/symposion
    $ git clone git@github.com:YOURUSERNAME/pybay
    $ cd pybay
  1. Install all required packages in a local virtual environment with pipenv install. Try: $ python3.6 -m pipenv install OR try: $ python3.6 -m pipenv install --dev OR: $ pipenv install

  2. Enter the environment shell and start the management server:

    $ pipenv shell
    

    OR:

    $ python3.6 -m pipenv shell
    (ENV)$ python ./manage.py migrate
    (ENV)$ python ./manage.py loaddata fixtures/*     # doesn't work on Windows, see "Windows instructions" below
    (ENV)$ python ./manage.py runserver
    

The default admin user is test and password is test

You may need to update your copy of symposion from time to time.

Windows Instructions

For some reason, running manage.py loaddata fixtures/* gives a No fixture named '*' found error on Windows. You'll have to load each fixture file individually:

    (ENV)$ python manage.py loaddata fixtures/auth.json
    (ENV)$ python manage.py loaddata fixtures/conference.json
    (ENV)$ python manage.py loaddata fixtures/proposal_base.json
    (ENV)$ python manage.py loaddata fixtures/sites.json
    (ENV)$ python manage.py loaddata fixtures/sponsor_benefits.json
    (ENV)$ python manage.py loaddata fixtures/sponsor_levels.json

(You can ignore the "invalid foreign keys" warnings you get. The foreign keys will become valid once you've loaded all the fixture files.)

Deploying

Deploying to pybay requires:

  1. fabric
  2. your public key on the pybay server (contact admin) 2.1 you can create a keypair with: $ ssh-keygen -t rsa 2.2 after an admin adds your public key to the server, you should be able to ssh in:
    $ ssh -i <path to your pub key> pybay@pyconsf.com
    
  3. your code on pybay's github (contact admin) 3.1 use master branch for official site
    $ git push origin master
    
    3.2 use stanging branch for staging.pybay.com
    $ git push origin <your_branch>:staging
    

Install fabric. Then use the fab command to run the deploy task. You'll need your public key password for this.

$ pip install fabric3
$ fab deploy:staging
[pyconsf.com] Executing task 'deploy'
Start with a git checkout.
[pyconsf.com] Passphrase for private key:
... much output...
Successfully completed

By default the deploy task deploys to staging.pyconsf.com using pybay's staging branch. To deploy master branch to production (same server but virtualhost pyconsf.com) run it with the prod target as an argument.

$ fab deploy:prod
[pyconsf.com] Executing task 'deploy'
... much output...
Successfully completed

About

Website for PyBay prior to 2024 - PyBay.com --> PyBay.org

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Less 64.4%
  • HTML 17.7%
  • Python 8.8%
  • JavaScript 4.6%
  • CSS 3.0%
  • SCSS 1.4%
  • Makefile 0.1%