DNS Allocator web application - Django project
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dnsalloc
.gitattributes
.gitignore
.gitmodules
.project
.pydevproject
.travis.yml
COPYING
Dockerfile
README.md
__init__.py
docker-compose.yml
docker-fixture.json
manage.py
requirements.txt

README.md

DNS Allocator

Dependencies

Submodules

Message Broker

All Celery supported AMQP message brokers can be used.

Configuration

In order to use DNS Allocator the Django project needs to have a complete settings.py. The following Django settings are required to run DNS Allocator:

  • BROKER_URL and other required message broker settings
  • DATABASES
  • DEFAULT_FROM_EMAIL
  • SECRET_KEY

All other settings are pre-configured inside settings/base.py, which can be imported using the following line in your settings/{env}.py:

from .base import *

A basic development environment can be launched using the pre-configured settings/dev.py.

Installation

First of all you need to install all the dependencies. It is recommended to perform the installations using the pip command.

The next step is to get all source from github.com and PyPI:

git clone --recursive git://github.com/mback2k/django-dnsalloc.git dnsalloc

cd dnsalloc

pip install -r requirements.txt

After that you need to collect and compress the static files using:

python manage.py collectstatic --noinput
python manage.py compress --force

Now you need to setup your webserver to serve the Django project. Please take a look at the Django documentation for more information.

You can run a development server using the following command:

python manage.py runserver

Executing Tasks

Besides running the webserver, you need to run celery beat and celery worker. You can do this by executing the following commands from your server's shell:

celery -A dnsalloc beat
celery -A dnsalloc worker

License