Reuse WAVES inside a Django project as a dependency¶
!!! WORK IN PROGRESS !!! Planned to be available with version 1.0
WAVES needs to be installed within a django project, see Django framework documentation if needed.
Install waves package with pip (strongly recommended to do so in a dedicated virtualenv):
pip install waves
Add “waves” to your INSTALLED_APPS settings:
INSTALLED_APPS = [ ... 'waves', ... ]
Include the services urls in your project urls.py:
url('^waves/', include('waves.urls')) Alternativly you can use only urls configuration you need:: url(r'^$', HomePage.as_view(), name='home'), url(r'^accounts/', include('waves.urls.accounts_url')), url(r'^waves/api/', include('waves.urls.api_urls')), url(r'^admin/', include('waves.urls.back_urls')), url(r'^waves/', include('waves.urls.front_urls'))
python manage.py migrateto install database models.
python manage.py wavesto import sample data if you wish
Start the development server,
python manage.py runserver:
http://127.0.0.1:8000/services/to start your services