Uploaded image for project: 'IGB'
  1. IGB
  2. IGBF-1628

Remove CyAppStore hard-coding from appstore project

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:

      Description

      Note: Complete Django tutorial parts 1,2, and 3 before starting.

      Observe instances of hard-coding project directory name in current master branch:

      on unix:
      $ find . | grep \.py$ | xargs grep CyApp

      ./settings.py: SITE_DIR ="~/CyAppStore/"
      ./settings.py: SITE_DIR ="~/CyAppStore/"
      ./settings.py:# Django settings for CyAppStore project.
      ./settings.py:ROOT_URLCONF = 'CyAppStore.urls'
      ./settings.py: 'CyAppStore', # this must be included to find root templates
      ./dbmigration/screenshots.py: con = mdb.connect('localhost', 'root', '', 'CyAppStore')
      ./dbmigration/releases.py: con = mdb.connect('localhost', 'root', '', 'CyAppStore')
      ./dbmigration/ipaddr.py: con = mdb.connect('localhost', 'root', '', 'CyAppStore')
      ./urls.py: # url(r'^$', 'CyAppStore.views.home', name='home'),
      ./urls.py: # url(r'^CyAppStore/', include('CyAppStore.foo.urls')),
      ./conf/dbs-template.py: 'NAME': 'CyAppStore', # sql database name
      ./conf/paths-template.py:# should be the absolute path to the CyAppStore directory on the filesystem
      ./apps/management/commands/add_plugins.py:from CyAppStore.util.id_util import fullname_to_name
      ./apps/management/commands/add_plugins.py:from CyAppStore.apps.views import _parse_iso_date

      Recommend changing "CyAppStore" to "appstore" consistent with new project name.

      Test after each edit to ensure can still hit URLs for each Django App in project.

      Note: Complete Django tutorial parts 1,2, and 3 before starting.

        Attachments

          Issue Links

            Activity

            Show
            Narendra Narendra Kumar Vankayala (Inactive) added a comment - Please review the code changes. https://bitbucket.org/narendravankayala/appstore-narendra/src/IGBF-1628/

              People

              • Assignee:
                Narendra Narendra Kumar Vankayala (Inactive)
                Reporter:
                ann.loraine Ann Loraine
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: