Code Monkey home page Code Monkey logo

pyconbalkan's Introduction

pyconbalkan Build Status

Website for PyCon Balkan

Contributing

PyCon Balkan website is an open source project and welcomes contributions.

To get started follow the steps above.

Custom design for PyCon Years

As this custom loader MR introduced if you want to make a custom template changes for a conference year, please use template inheritence by adding {year}_template_name.html it will be loaded in favor of that year, and your changes will be visible.

Get up and running

  1. Clone this repo
  2. Create a virtual environment:
cd pyconbalkan
python -m venv .venv
  1. Activate the virtual environment:
source .venv/bin/activate
  1. Install the requirements:
pip install -r requirements.txt
  1. Create a file named .env

Inside add:

SECRET_KEY={create_and_add_your_own_SECRET_KEY_here_with_no_spaces}
DEBUG=True

NOTE:

For more information on how you can generate a secret key visit here or you can generate a key online at here.

  1. Run migrations:
python manage.py migrate
  1. Run collect static:
python manage.py collectstatic
  1. Get the server up and running:
python manage.py runserver

You did it! If you have any problems doing this let us know by submitting an issue.

Public Trello Board

To contribute to the project, please visit our newest trello board here

Deprecated

Old deprecated public board can be found here.

FAQ

Q1 Git Workflow

A1 Create new feature branch from master, work on feature, when done create pull request

Q2 How do we call appropriate conference in our templates and views?

A2 We have pyconbalkan.conference.middleware.ConferenceSelectionMiddleware class and _get_year_from_domain method to distinguish which conference is current.

Q3 How to enable model filtering for each conference year?

A3 Model needs to inherit pyconbalkan.conference.models.AbstractConference

Q4 Just pulled repository from Git, when I run server and try to open it in the browser I get 'NoneType' object has no attribute 'as_meta' error.

A4 Just create admin user and then make one or more conference entities. Make sure you put year of the conference as part of the URL like this: 2018.localhost:8000

Q5 How to load templates depending on the conference year?

A5 Simply name them like this {year}_{template_name}.html

pyconbalkan's People

Contributors

virogenesis avatar malirobot avatar vishvajitp avatar nadaj avatar ulgens avatar midhatstam avatar thiagorossener avatar shortechs avatar dependabot[bot] avatar bojpav avatar halitguvenilir avatar alefnula avatar jlar0che avatar milovan-minic avatar underyx avatar miroslav-web-labs avatar maroshmka avatar spaceyii avatar jonatoni avatar

Watchers

James Cloos avatar  avatar

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.