Remove hard-coded URLs from views.py