Skip to content

allen1124/cathink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cathink_ImageX

Deployment Requirement

  1. Please make sure you have installed the following library packages in your project interpreter, Python 3.6 [Django 2.0.X, Pillow, django-widget-tweaks, django-tagging, djangorestframework]
  2. In images/model.py, you should comment out line 34, 72 which have TagField and uncomment line 33, 71 to use CharField for tag.*
  3. Run 'makemigrations' then 'migrate' in manage.py
  4. Reverse the changes of step 1, comment out line 33, 71 and uncomment line 34, 72 to use TagField for tag in images/model.py.*
  5. Repeat step 2, run 'makemigrations' then 'migrate' in manage.py
  6. Run the command 'createsuperuser' in manage.py as administrator account of imageX.
  7. Ready for use now.

The imageX implements the "tagging" functionality using the library 'Django-Tagging'. The library 'Django-Tagging' must be included in INSTALLED_APPS[] of setting.py. Then, run the 'migrate' command in manage.py to creates the necessary database tables. We cannot directly use its functionalities, e.g. TagField along with the above process in one 'migration' Therefore, you should use CharField for 'tag' and migrate first. Then, modify the images/model.py to reverse the changes to use TagField and migrate.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •