GithubHelp home page GithubHelp logo

research-gapfindertools's Introduction

gapfindertools

Research apps for Gapfinder

Deploying to labs instance

  1. Clone this repository to /srv/gapfindertools
  2. Add a really long secret key to /etc/profile, e.g.: echo 'export DJANGO_SECRET_KEY="#)zbti_w!for_jack0xpefbi=&c@tsb2oua4j$e!djyhy&x9g7"'' | sudo tee --append /etc/profile source /etc/profile
  3. Run /srv/gapfindertools/gapfindertools/labs_setup.sh
  4. After each update you may want to collect static files depending on whether you've changed CSS and JS files:
    • cd /srv/gapfindertools
    • sudo venv/bin/python manage.py collectstatic --settings=gapfindertools.settings_prod

Generating CSS for RTL languages

  1. sudo npm install -g rtlcss
  2. For each style sheet, generate a new one for RTL languages like so: rtlcss base.css base_rtl.css
  3. Note to only change non-RTL stylesheets and generate RTL ones from those.

How to create translations

  1. cd sectionalignment
  2. django-admin makemessages -l fr # or some other language code
  3. Edit sectionalignment/locale/fr/LC_MESSAGES/django.po
  4. django-admin compilemessages

How to edit translations

  1. Edit files in sectionalignment/locale/...
  2. cd sectionalignment
  3. django-admin compilemessages

TODO

  1. Auto reload UWSGI after pulling new changes to the production server.

research-gapfindertools's People

Contributors

kodchi avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.