A django site for those running a record label, distro, or for the artists themselves.

Steven Jacobs b52b843df6 fix missing dir on startup 5 months ago
ddistro b52b843df6 fix missing dir on startup 5 months ago
.editorconfig 76e4eb22e1 add editorconfig with preferences 3 years ago
.gitignore c338a6ae49 ignore env3 directory 3 years ago
LICENSE 45581b7019 add BSD 3-clause license 3 years ago
README.md d019f477a1 formatting changes for README 3 years ago
requirements.txt 2fa6b788c7 add django debug toolbar locally 3 years ago

README.md

ddistro

A django backed record distro

Getting Started

Development

Clone the latest from the master branch in the git repository.

$ git clone https://git.stevenja.co/stjacobs/ddistro.git

I am using virtualenv to manage my python environment and pip to manage my dependencies. Django and all the dependencies work with python 2 or 3, but I've chosen to go with 3 for this project.

$ cd ddistro
$ virtualenv -p python3 env
$ source env/bin/activate
$ pip install -r requirements.txt

First time setup will involve a migration and creating a superuser. Then it should be all set up and ready to run the server.

$ cd ddistro
$ python manage.py migrate
$ python manage.py createsuperuser

Assets are managed by webpack, to allow for compilation of SASS and processing of Javascript files. I am using nvm to manage my node environment, and we will install required files from npm.

$ nvm use stable
$ npm install

For the next step we will need to have two terminal windows running. One to run the Django server, and one to watch and compile the webpack sources. I use tmux to run these all in one terminal window.

In terminal 1

$ npm run watch
...

In terminal 2

$ python manage.py runserver
...

TODO

  • Create production config for webpack [blog] [docs]