0

I have a django directory named application.

I want to change it's name to something else. However all the code references to the application namespace:

from application.xxx import *

What is the proper way to change the application name without breaking all the references?

Chris
  • 13,100
  • 23
  • 79
  • 162
  • A popular search engine suggests this SO post: https://stackoverflow.com/questions/8408046/how-to-change-the-name-of-a-django-app – creimers Apr 03 '17 at 12:45
  • 2
    Possible duplicate of [How to change the name of a Django app?](http://stackoverflow.com/questions/8408046/how-to-change-the-name-of-a-django-app) – creimers Apr 03 '17 at 12:45
  • Somewhat unrelated but you should NEVER use star imports ("from xxx import *") in modules code - it makes it very difficult to track dependencies (where does each name comes from) and can easily lead to names being overwritten. – bruno desthuilliers Apr 03 '17 at 13:02
  • To answer the question: http://stackoverflow.com/questions/8408046/how-to-change-the-name-of-a-django-app mostly sum it up. You will OF COURSE have to find and replace all references to your app name throughout the whole project. – bruno desthuilliers Apr 03 '17 at 13:03

0 Answers0