#!/usr/bin/env python
import os
import sys

if __name__ == "__main__":
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "<%= projectName %>.settings.development")

    from django.core.management import execute_from_command_line

    if 'livereload' in sys.argv:
        from django.core.wsgi import get_wsgi_application
        from livereload import Server
        application = get_wsgi_application()
        server = Server(application)
        server.watch('static/css/*.css')
        server.watch('static/js/*.js')
        server.watch('static/img/*')
        server.watch('static/libs/**/*')
        server.watch('templates/**/*.html')
        server.watch('*/templates/**/*.html*')
        server.serve(port=8000)
    else:
        execute_from_command_line(sys.argv)

#!/usr/bin/env python
import os
import sys

if __name__ == "__main__":
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "<%= projectName %>.settings.development")

    from django.core.management import execute_from_command_line

    if 'livereload' in sys.argv:
        from django.core.wsgi import get_wsgi_application
        from livereload import Server
        application = get_wsgi_application()
        server = Server(application)
        server.watch('static/css/*.css')
        server.watch('static/js/*.js')
        server.watch('static/img/*')
        server.watch('static/libs/**/*')
        server.watch('templates/**/*.html')
        server.watch('*/templates/**/*.html*')
        server.serve(port=8000)
    else:
        execute_from_command_line(sys.argv)

#!/usr/bin/env python