This repo is not maintained any longer, please check out djangobase-cookiecutter instead
As the name suggests, this is a basic Django project. The idea of this base project is mainly to bootstrap the web application development process through setting up such a Django Base Project which already provides a couple of Django apps providing quite generic functionalities needed for building web application bound to the Digital Humanities Domain.
- clone the repo
git clone
https://github.com/acdh-oeaw/djangobaseproject.git {project-name}` - cd into into {project-name}:
cd {project-name}
- remove existing git-repo:
rm -rf .git
- [optional]
- create a virtual env, e.g.
virtualenv myenv
- activate virtual env, e.g.
source myenv/bin/activate
(Windows:myenv\Scripts\activate
)
- create a virtual env, e.g.
- install needed packages
pip install -r requirements.txt
- make migrations
python manage.py makemigrations --settings=djangobaseproject.settings.dev
- apply migrations
python manage.py migrate --settings=djangobaseproject.settings.dev
- start dev-server
python manage.py runserver --settings=djangobaseproject.settings.dev
- open http://127.0.0.1:8000/
Django-App providing some useful things to create browsing views
Curate controlled vocabularies as SKOS
A django package providing models and views for Geoname Places
- populate vocabs with geoname-feature codes
python manage.py import_ftc --lang=en--settings=djangobaseproject.settings.dev
- populate db with geoname-places of a given country:
python manage.py import_places ..--country_code=YU--settings=djangobaseproject.settings.dev