Git Product home page Git Product logo

gestione-donatori's Introduction

Gestione Donatori - API Server

Updates Python 3

Initializing project

  • Install requirements or development requirements, based on your preferences.

    pip install -r requirements.txt
    # or
    pip install -r requirements_dev.txt
  • Create settings file, for example starting from development settings

    cp website/settings_dev.py website/settings.py

  • Define a SECRET_KEY in website/settings.py file

Running server

  • Apply all missing database migration

    python manage.py migrate

  • Collecting all static files (for production purposes only, non required in development mode)

    python manage.py collectstatic --noinput

  • Running server

    python manage.py runserver

  • Configure a cron job for flushing expired tokens daily

    python manage.py flushexpiredtokens

Tests

Launch simple tests with python manage.py test, or launch test with coverage results with:

coverage run manage.py test --settings=website.settings_test && coverage report -m && coverage html

## Importing data from JSON created in old dotnet version

python manage.py donatori_import_from_dotnet -d mypath

where mypath is the directory containing

  • sezioni.json

  • statiDonatori.json

  • donatori.json

gestione-donatori's People

Contributors

antonellamarengo avatar davideferre avatar dennybiasiolli avatar dependabot[bot] avatar pyup-bot 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.