0

Hi I am working on a class project where I handle medical information. So I thought of using the INDIVO server for that. I am trying to install the indivo_ui_server. I am getting an error, I have installed the patterns package also. The package holds three files and a init.py. I am trying to install in windows.

enter image description here

The below code is urls.py:

from django.conf.urls import patterns
from django.conf.urls.defaults import include

urlpatterns = patterns('',
    # HARDCODED APP PATHS!! (keep in alpha order)
    (r'^apps/allergies/',       include('apps.allergies.urls')),
    (r'^apps/labs/',            include('apps.labs.urls')),
    (r'^apps/medications/',     include('apps.medications.urls')),
    (r'^apps/problems/',        include('apps.problems.urls')),
    (r'^', include('ui.urls'))  # Everything else to indivo
)

The below code is __init__.py (from patterns package):

def patterns(func):
    empty_argspec = inspect.ArgSpec(args=[], varargs=None, keywords=None, defaults=None)
    assert inspect.getargspec(func) == empty_argspec, 'Pattern function should not have arguments'

    # TODO: make it not as weird and dirty
    func.__globals__['Mismatch'] = Mismatch

    tree = get_ast(func)
    transform_function(tree.body[0])
    return compile_func(func, tree)

Can anyone explain me why I am getting this error.

I have also tried suggestions from link 1 and link 2

Traceback:

enter image description here

Community
  • 1
  • 1
Tony Roczz
  • 2,366
  • 6
  • 32
  • 59

1 Answers1

0

The import problem was solved by just importing everything from urls.py

from django.conf.urls import *
Tony Roczz
  • 2,366
  • 6
  • 32
  • 59