Renaming Django application.

  • Posted July 18, 2014

Hi guys, As default DO creating Django droplet with django project located here : /home/django/djangoproject/ Also main application is named djangoproject: /home/django/djangoproject/djangoproject/

I want to correctly change name of main application to ‘core’. So… my steps was:

  1. mkdir core’ at /home/django/djangoproject/
  2. cp -r ./djangoproject/* ./core’ at /home/django/djangoproject/
  3. then I changed every reference of application ‘djangoproject’ to ‘core’ in files:, etc.

After restarting gunicorn (‘sudo service gunicorn restart’) I got only 502 Errors.

What did I miss? Is there any another settings I need to change? Maybe nginx or gunicorn settings? If ‘yes’ - where these settings are located?

I’ll appreciate any suggestions. Thanks.

P.S. sorry for my English -___-


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Take a look at the Configuration Details section of How To Use the Django One-Click Install Image.