Giter Club home page Giter Club logo

2016.djangocon.us's Introduction

DjangoCon US 2016

DjangoCon US 2016 is built on top of Pinax Symposion and PinaxCon. With our changes, your mileage may vary.

Code of Conduct

As a contributor, you can help us keep the Django community open and inclusive. Please read and follow our Code of Conduct.

Getting Started

Make sure you are using a virtual environment of some sort (e.g. virtualenv or pyenv).

Create a database (defaults to Postgres):

$ createdb djangocon2016

Install requirements:

$ pip install -r requirements.txt

Create a local settings file and set your DJANGO_SETTINGS_MODULE to use it:

$ cp djangocon/settings/local.py.example djangocon/settings/local.py

$ export DJANGO_SETTINGS_MODULE=djangocon.settings.local

Sync models to database:

$ ./manage.py migrate

Load default fixtures into database:

$ ./manage.py loaddata fixtures/*

Create a superuser account to access the admin:

$ ./manage.py createsuperuser

Start the web server:

$ ./manage.py runserver

Static files

The static file compilation is done with Node dependencies. On a Mac install node via Homebrew:

$ brew install node

Install all node dev dependencies:

$ npm install

To compile all static files simply run:

$ make all

Static files during development

You can watch for changes of CSS and JS files and have them re-compiled on-the-fly. Run each command in a separate shell.

$ make js watch=1
$ make css watch=1

How static files are treated

  • All client/browser related files are stored in client/.
  • Static files which don't need processing are in client/assets.
  • CSS and JS are compiled into the build/ folder using a make command.
  • Django's collectstatic takes everything from the build/ folder plus the "classic" application static files and puts them in <venv>/var/static/. This is also the folder we serve with the webserver.

For CSS we use a factory of: Node-Sass for CSS compilation + autoprefixer.

For JS we use browserify to collect all dependencies, from client/js as well as from the node_modules into one file. We transform that with Babel from ES6 to ES5 for compatibility reasons. We compress that with uglify.

Contributors

Thanks goes to these wonderful people (emoji key) (semi-ordered by contribution date):

Contributor Contributions
Mark Wirblich
Mark Wirblich
๐ŸŽจ๐Ÿ’ป๐Ÿ“–
Jeff Triplett
Jeff Triplett
๐Ÿ’ป๐Ÿ“–
Katherine Michel
Katherine Michel
๐Ÿ“–โ“
Peter Baumgartner
Peter Baumgartner
๐Ÿ’ป๐Ÿ“–
Patrick Altman
Patrick Altman
๐Ÿ’ป๐Ÿ“–
Anna Ossowski
Anna Ossowski
๐Ÿ“–
Lacey Williams Henschel
Lacey Williams Henschel
๐Ÿ“–โ“
Sara D Gore
Sara D Gore
๐Ÿ“–โ“
Andrew Pinkham
Andrew Pinkham
๐Ÿ“–โ“
Brian Rosner
Brian Rosner
๐Ÿ’ป
Kojo Idrissa
Kojo Idrissa
โ“
Timothy Allen
Timothy Allen
โ“
Kenneth Love
Kenneth Love
โ“

Emoji key

Emoji Represents Links to
๐Ÿ’ป Code https://github.com/${ownerName}/${repoName}/commits?author=${username}
๐Ÿ“– Documentation https://github.com/${ownerName}/${repoName}/commits?author=${username}, Wiki, or other source of documentation
โ“ Answering Questions (in Issues, Stack Overflow, Gitter, Slack, etc.)
๐ŸŽจ Design the logo/iconography/visual design/etc.
๐Ÿ‘€ Reviewed Pull Requests

License

BSD License

2016.djangocon.us's People

Contributors

brosner avatar ipmb avatar jefftriplett avatar katherinemichel avatar mightym avatar

Watchers

 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.