Code Monkey home page Code Monkey logo

2017.djangocon.eu'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")
  • Manifesto page (reverse id "manifesto")

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.

2017.djangocon.eu's People

Contributors

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

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

2017.djangocon.eu's Issues

ImportError: No module named 'pkg_resources.extern'

Can't get it to pip-sync on Ubuntu 16.04.01 LTS

(env) admin@lab-xenial:~/2017.djangocon.eu$ pip-sync
Uninstalling pkg-resources-0.0.0: 
Successfully uninstalled pkg-resources-0.0.0
Collecting aldryn-apphooks-config==0.2.7
Downloading aldryn_apphooks_config-0.2.7-py2.py3-none-any.whl
Collecting aldryn-boilerplates==0.7.4
Downloading aldryn_boilerplates-0.7.4-py2.py3-none-any.whl
Collecting aldryn-common==1.0.4
Downloading aldryn-common-1.0.4.tar.gz
Could not import setuptools which is required to install from a source distribution.
Traceback (most recent call last):
File "/home/admin/2017.djangocon.eu/env/lib/python3.5/site-packages/pip/req/req_install.py", line 387, in setup_py
 import setuptools  # noqa
File "/home/admin/2017.djangocon.eu/env/lib/python3.5/site-packages/setuptools/__init__.py", line 10, in <module> from setuptools.extern.six.moves import filter, filterfalse, map
File "/home/admin/2017.djangocon.eu/env/lib/python3.5/site-packages/setuptools/extern/__init__.py", line 1, in <module> from pkg_resources.extern import VendorImporter
ImportError: No module named 'pkg_resources.extern' 

Note that it is uninstalling pkg_resources first and then complains about a missing module that's part of this package. This doesn't happen on Debian stable as confirmed by moldy from #[email protected]

We troubleshooted this issue collectively on #django today but didn't find a solution.

Not sure if you are aware of it, but here it is for your consideration.

Let me know, please, if you know how to work around or fix this problem on Ubuntu Xenial.

Call for Workshops application

The application should handle form submission for WorkshopSubmission model.

Fields:

  • author
  • title
  • abstract
  • length (using a set of choices)
  • intended audience

Autoclose CfP

The CfP should be disabled at a given date/time. The CMS page can be disabled by using page publish end, but the form should redirect to a page disabling the submit

GET / yields 500, doesn't find reverse

I followed the README, and when I got the server running and tried to access /, I got this error:

Performing system checks...

System check identified no issues (0 silenced).
November 30, 2016 - 22:42:47
Django version 1.8.15, using settings 'djangocon_europe.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
   New revision!!!! RELOAD!
      317c3216-1a49-4ccb-985e-090143a480ad (<class 'str'>)
   -> None (<class 'NoneType'>)
reverse('my_test_app_view'): Reverse for 'my_test_app_view' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []
reverse('my_test_app_view'): Reverse for 'my_test_app_view' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []
[30/Nov/2016 22:42:51] "GET / HTTP/1.1" 500 452747

I dpasted the traceback. (And yes, the "new revision!!!! RELOAD!" appears every time.)

Schedule Application

We need a schedule application to organize the talk schedule.
Design is still to be decided
It must be a django cms apphook application
We only need admin editing, anyway
Fielda still to be decided

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.