Git Product home page Git Product logo

cz.pycon.org-2017's Introduction

⚠ This repository is archived πŸ—„

https://cz.pycon.org/2017/ is now served as a static website. Look for it in the repo for PyCon CZ 2019 (or further years).

PyConCZ 2017

PyCon CZ taking place in Prague for its third edition.

Contributing

PyCon CZ website is using Python 3.5/Django for the backend, NodeJS for bundling frontend assets and Postgresql as a database.

Setup dev environment

Django

Inside pyconcz_2017 directory, run following commands to setup project for local development:

  1. You can either use sqlite database, if you only need to work with static pages and styles, in which case, you don't need to setup anything. Or, if you need to work with dynamic apps, you need to use postgresql.

    Prepare postgresql database: user pyconcz, password empty, database pyconcz

    E.g. on Mac:

    $ createuser --pwprompt pyconcz
    $ createdb -Opyconcz -Eutf8 pyconcz
    
  2. python3 -m venv env

  3. pip install -r requirements-dev.txt

  4. copy pyconcz_2017/settings/local_template_dev.py to pyconcz_2017/settings/local.py

  5. ./manage.py migrate

Static files

You only need this if you work with styles or images.

For styles and images processing to work, you need to have node.js and gulp-cli installed globally (sudo npm install gulp-cli -g)

Inside root directory (the same directory where manage.py is) run npm install

Development

Django

You can run your dev server manually on http://localhost:8000 with:

./manage.py runserver --settings=pyconcz_2017.settings.local

Static files

To start development with static files being processed run gulp. It will also start dev server for you.

Open http://localhost:3000 and you should see development version of website with automatic compiling and reloading.

Everything in /static/css and /static/img is replaced with processed content of /static_src/css and /static_src/img respectively. So don't edit anything inside /static/css and /static/img manually.

Same would go for own JavaScript but we don’t have any.

Building

After each production build, you have to commit newly generated CSS and image files. Old files are automatically replaced.

  1. npm run build
  2. git add pyconcz_2017/static

Deployment

Just use fab production deploy to deploy to production or fab beta deploy to deploy to beta site.

License

This work is licensed under a MIT

cz.pycon.org-2017's People

Contributors

aleszoulek avatar baradrb avatar beatrix-bodo avatar benabraham avatar encukou avatar fk-lx avatar frenzymadness avatar honzajavorek avatar hroncok avatar jachym avatar kokes avatar luminaar avatar starenka avatar tricoder42 avatar underyx avatar waffle-iron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cz.pycon.org-2017's Issues

link to financial aid shows CfP page

in event submenu the financial aid link points to https://cz.pycon.org/2017/proposals/financial-aid (it's the missing slash at the end)

also router seems to be weird (the "good" page seemed to be routed via proposals router):

    url(r'^proposals/financial-aid$',
        TemplateView.as_view(template_name='proposals/talks_about.html'),
        name='financial-aid'),

I think removing this route would solve the issue, but have no time to prove it right now

psycopg required

The installation tutorial says postgre isn't required but then pip install -r requirements-dev.txt fail without it.

caching static files on client

Currently we have expiry for static files for 1 minute.
We should set that to far future.
That would mean adding cache busting system in place.

Change website color

This year, we decided to use the same design as last year and just change the color. We need to decide on new color and change it on the website and in the logo.

Video embeds at talk detail

Last year, we froze the website and somebody requested to add links to videos there. We decided to don't do it (too much work), so I'm opening this ticket before this years website gets frozen.

The videos links should go to:

npm install needs to be done with python 2

Some node dependencies require compilation via node-gyp, but node-gyp doesn't support python3. The site is in python3, that means it's 99% chance a person installing the site locally will have a virtualenv with python3 active and his node-gyp compilation will fail.

The installation tutorial should suggest passing system python (or any kind of python 2) to the npm explicitly:

npm install --python=/usr/bin/python

Triage issues and archive this repository

There are several issues in this repo that might still be relevant.
Go through them, close the ones we won't fix, and migrate the rest to the current PyCon CZ tracker. (Or just comment that someone will do the migration.)

Then, archive this in the same way as 2018 and previous years.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.