GithubHelp home page GithubHelp logo

programmer-yar / audio-discrimination-crowdsource Goto Github PK

View Code? Open in Web Editor NEW

This project forked from turian/audio-discrimination-crowdsource

0.0 0.0 0.0 1.28 MB

Web service to crowd-source audio discrimination data

JavaScript 0.43% Python 5.41% CSS 92.37% HTML 1.79%

audio-discrimination-crowdsource's Introduction

audio-discrimination-crowdsource

Web service to crowd-source audio discrimination data

Digital Ocean apps

We deploy on Digital Ocean apps. Please set one up, so you test pushing stuff to production.

Local dev

Based upon https://docs.digitalocean.com/tutorials/app-deploy-django-app/

Getting started

mkdir .venv
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pre-commit install

Running locally

source .venv/bin/activate
export DEVELOPMENT_MODE=True
#python manage.py startapp polls
DEBUG=True python manage.py runserver

Theme App

Theme app is a django app consisting of the main theme of the application. This can be reused in other applications as well.

To use the themeapp in the application, following things need to be done:

In settings.py, make sure static settings is configured

STATIC_URL = "/static/"
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
STATICFILES_DIRS = [
    BASE_DIR / 
    "assets",
]

All assets of the theme needs to keep inside assets folder

Now, for any new html page, we need to do the following:

{% extends 'base.html' %}
{% load static %}

{% block css-block%}
// any extra css here
{% endblock %}

{% block body-block%}
// Main Content of the page here
{% endblock %}

{% block js-block%}
// any extra js here
{% endblock %}

audio-discrimination-crowdsource's People

Contributors

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