Coder Social home page Coder Social logo

legrems / truffe2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arcanitesolutions/truffe2

0.0 1.0 0.0 10.04 MB

L'intranet de l'AGEPoly - V2

License: BSD 2-Clause "Simplified" License

Python 49.00% HTML 11.93% CSS 8.89% JavaScript 29.89% PHP 0.04% ActionScript 0.26%

truffe2's Introduction

Truffe 2

Truffe 2 is the new intranet for AGEPoly - The EPFL's students' association.

License

Truffe 2 is licensed under the BSD license. Check LICENSE.md

Authors

Core developpers

Contributors

  • Cedric Cook (Fixed a typo)
  • Yolan Romailler (Fixed a path)
  • Yann Beaud (Fixed VCARDs)

Development

This is a standard django project. Python requirements are stored in truffe2/data/pip-reqs.txt.

This projects requires ImageMagick which can be obtained using brew install freetype imagemagick

You will need access to tequila (EPFL internal network is enough) to login.

No initial database is provided. To begin, grant yourself admin rights in the database after a first login, and create at least one unit.

South is used for migrations. Be careful, some models are created dynamically!

You will need a truffe2/app/settingsLocal.py file with your local settings (database, etc.). A template is provided in truffe2/app/settingsLocal.py.dist. According to which database driver you choose, install the corresponding python package, e.g. pip install mysql-python for MySQL.

Deployment scripts using fabric are located in the Deployment folder.

Example development environment setup

  1. Create a virtual Python environment: virtualenv --python=/usr/bin/python2 venv
  2. Activate it: . ./venv/bin/activate
  3. Install dependencies: pip install -r ./truffe2/data/pip-reqs.txt
  4. cp ./truffe2/app/settingsLocal.py{.dist,}
  5. Edit ./truffe2/app/settingsLocal.py and set the database engine to django.db.backends.sqlite3 and database name to db.sqlite3
  6. To be apple to see the mails sent from the application, run a maildump instance on port 1025
  7. Go inside the truffe2 directory for the next steps: cd truffe2
  8. Create the database tables not managed by south with python manage.py syncdb
  9. On OSX, if you get ImportError: MagickWand shared library not found., it's probably because Python was not installed using MacPorts, you have to export MAGICK_HOME path. You should try to set the path with export MAGICK_HOME=/opt/local and go back to point 8.
  10. Create the database tables managed by south with python manage.py migrate
  11. Run the development server with python manage.py runserver
  12. Go to http://localhost:8000/ and log in with Tequila
  13. Give your user superuser rights with echo "update users_truffeuser set is_superuser=1 where id=1;" | sqlite3 db.sqlite3

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.