Details
-
Type: Improvement
-
Status: Closed (View Workflow)
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:
-
Story Points:0.5
-
Epic Link:
-
Sprint:Spring 2019 Sprint 4
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.
Please review the code changes.
https://bitbucket.org/narendravankayala/appstore-narendra/src/IGBF-1628/