Code Monkey home page Code Monkey logo

djangoconeurope2017's Introduction

DjangoCon Europe 2017

This is the project for the http://2017.djangocon.eu/ website.

Run locally

  • Make sure that you have Python 3.5 installed on your system.

  • Set up your project:

    git clone https://github.com/djangocon/2017.djangocon.eu.git  # Clone the project
    cd 2017.djangocon.eu
    
  • Edit djangocon_europe/.env key according to your environment. See an example below.

  • Set up your virtualenv:

    virtualenv --python=/usr/bin/python3.5 env                    # Start a virtualenv
    . env/bin/activate                                            # Use the virtualenv
    pip install --upgrade pip                                     # Use a current pip version
    pip install pip-tools
    pip-sync                                                      # Install dependencies
    
  • Set up the Django project:

    python manage.py migrate
    python manage.py runserver
    

Example .env file

Configuration uses django-environ. Please refer to its document for the configuration details.

Example:

DATABASE_URL=psql://postgres:@:5432/djangocon_europe
DEBUG=True
ALLOWED_HOSTS=["*"]
SECRET_KEY=my-secret-key
CACHE_URL=rediscache://127.0.0.1:6379:1
EMAIL_HOST=localhost
EMAIL_BACKEND=django.core.mail.backends.console.EmailBackend

How this site works

DjangoCon Europe 2017 website heavily relies on django CMS for most of its features.

As a primer, have a look at:

Expected pages

The template expects that the following pages exits:

  • Home page (with reverse id "home")
  • Code of Conduct page (reverse id "coc")
  • Blog page (reverse id "blog")

Before browsing the site, go to http://localhost:8000/admin/cms/page/ and create the pages / edit the advanced properties of the existing pages to set the reverse id.

Default pages

The initial_pages.json file includes the above pages to help you bootstrapping the website.

To load the pages run:

python manage.py loaddata initial_pages.json

Compile sass files

We use compass to compiles scss files to css:

compass compile

After that collectstatic files:

python manage.py collectstatic -l

License

All the code except file in styles and djangocon_europe/static/img directories are released with BSD-3 clauses

Files in styles and djangocon_europe/static/img are not reusable without prior consent.

djangoconeurope2017's People

Contributors

burhan avatar emadmokhtar avatar joncasdam avatar misterrios avatar rixx avatar simobasso avatar yakky avatar

Watchers

 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.