How to Change your django Project name


It's possible to rename a project in django. you just have to replace your existing project name in the following places with the new one.

Your django project structure

ProjectName/
         manage.py 
         ProjectName/ 
                 __init__.py 
                 settings.py 
                 urls.py 
                 wsgi.py

Rename your project directory (ProjectName) and the following inside your project directory.

settings.py

ROOT_URLCONF = 'NewProjectName.urls'
WSGI_APPLICATION = 'NewProjectName.wsgi.application'

wsgi.py

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "NewProjectName.settings")

manage.py

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "NewProjectName.settings")


There is no need to make any changes to any of your apps.

Comments

Popular posts from this blog

Install latest Node.js version in ubuntu 16.04

Use Bluetooth Headphone or Speaker on Ubuntu 16.04 [Solved]

Set Permissions to add files to /var/www folder in ubuntu linux