muccg / rdrf

The Rare Disease Registry Framework (RDRF) is an open source tool for the creation of web-based patient registries.
GNU Affero General Public License v3.0
15 stars 8 forks source link

CIC_DEV role is not allowing proms patterns to be registered in urls.py #1121

Closed id2359 closed 4 years ago

id2359 commented 4 years ago

this is the existing code ( /rdrf/rdrf/urls.py )

if settings.SYSTEM_ROLE == SystemRoles.CIC_PROMS:
    urlpatterns = proms_patterns
else:
    urlpatterns = normalpatterns

Should be:

if settings.SYSTEM_ROLE in [SystemRoles.CIC_PROMS, SystemRoles.CIC_DEV]:
    urlpatterns = proms_patterns
else:
    urlpatterns = normalpatterns
id2359 commented 4 years ago

You will need to change the SYSTEM_ROLE env var in docker-compose.yml

like this:

runserver:
    extends:
      file: docker-compose-common.yml
      service: runserver
    environment:
      - DJANGO_FIXTURES=dev
      - DESIGN_MODE=1
      - SYSTEM_ROLE=CIC_DEV
id2359 commented 4 years ago

Looks ok actually - worked when I set up Jith's local env