-
Notifications
You must be signed in to change notification settings - Fork 28
Django Commands
See all the sources used here: http://schoolido.lu/about/
Command line arguments available in almost all import scripts:
-
local
Use local files instead of dowloading web pages (for development only) -
redownload
Will download the images (or details pages such as idols descriptions), even when they already have been downloaded and set in the database -
noimages
Do not download the images
All import commands when they succeed also update the raw information
python manage.py importcards
Will call some of the commands below: importcards_stats, import_jp_events, import_en_events, import_idols and import_songs
Extra command line arguments:
-
delete
Delete all cards, idols, songs and events
python manage.py importcardstats
- Will import cards with their ids, rarity, attribute, is_promo, promo_item, is_special, hp, all statistics (smile, pure, cool for minimum, non-idolized maximum (set to 0 for N and promos) and idolized maximum), skill, skill_details (special cards only), center_skill, idol, event
- Will create events objects if they don't exist, with just the English + Japanese name
- Will create idols objects if they don't exist, with just the name of the idol
-
Local file:
decaf.html
python manage.py import_jp_events
- Will import events with their beginning, end, t1 points + rank, t2 points + rank, note, Japanese image
-
Local file:
events.html
python manage.py import_en_events
- Will set cards as worldwide available if they appear in the list of cards
- Will import English events with their beginning, end, t1 points + rank, t2 points + rank
- Note: English banners currently can't be imported from any known website and are uploaded manually in production
- Note: English and Japanese events info are stored in the same event object
-
Local file:
eventsEN.html
python manage.py import_idols
- Will update the idols objects with the raw information specified in
raw_information
inapi/raw.py
- Will import idols trivia info (see full object in
api/models.py
) - Will save translated collection in cards for each idol.
- Local file: None. Will not import idols trivia and translated collection when specified.
python manage.py import_songs
- Will create objects for each songs with all their info (see full object in
api/models.py
) - Will save the event in the same order than the beginning of each event, skipping medleys and score matches
- Will call the iTunes API to find a preview of the song (set to 0 when not found,
redownload
to retry) - Will import song images
-
Local file:
songs.html
python manage.py import_video_stories
- Will insert the YouTube links for JP/EN videos from this document
-
Local file:
videos.csv
python manage.py import_wikia
- Will import the skill details and the card images from Wikia list of cards
-
Local file:
wikia.html
python manage.py importcards_japanese
- Will import the Japanese translations of the skill name, skill detail and the collection.
-
Local file:
jpcards.html
To show locations on the map at /map/
(http://schoolido.lu/map/)
python manage.py latlong
Extra command line arguments:
-
reload
will force reload all the locations in the database, even the ones already in. This is not recommended since OpenStreetMap has service restrictions.
Will delete a user, their accounts, the owned cards of their accounts, their activities, their event participations, and everything else associated with that user.
python manage.py deleteuser
python manage.py update_cached_objects
- Update total number of cards owner and people who have the card in their wishlist inside each card object
- Update ranking positions of each card compared to each others (best of each attribute)
python manage.py generate_settings
- Total donators, current contests, ages of users, cards statistics
python manage.py update_cached_objects && python manage.py generate_settings
python manage.py getusername deby@schoolido.lu
python manage.py add_permission db0 VERIFICATION_1
python manage.py revoke_permission db0 VERIFICATION_1
python manage.py changepassword db0
Will check if a transfer code is stored for that user and will not allow you to change it if there's at least one.
If you still wish to change the password, add a force
argument after the username. The transfer codes saved will be deleted.
python manage.py generate_release_dates
Promo cards don't have a release date in the wiki, so this script fills the missing release date by assuming it's the same than the previous card that has a release date.
If what you plan to do with the website doesn't require working with images, you can tell your instance to use the URLs from the production website. This way, you can have a good looking testing environment without having to download all the images (which takes hours).
To do so, create a local settings file and add IMAGES_HOSTING_PATH = 'http://i.schoolido.lu/'
, then run this script to tell your database that you have the images:
python manage.py quickupdate
- How to add an account to your profile?
- What's the difference between the deck, the album and the present box?
- How to add cards?
- How to edit a card?
- How to delete a card?
- Why my cards are not automatically imported?
- What if I play multiple versions of the game?
- How to add your location on the map?
- How to recover your password or username?
- How to delete an account?
- How to recover your comments on your profile page when you changed your username?
- How to change your avatar?
- How to check that you entered all your cards?
- How to get a verified account?
- Can someone steal my game account using the information on my profile page?
- I saved my transfer code on School Idol Tomodachi but I can't find it anymore?
- Can I delete my entire profile?
- What should I do if I see an activity that I don't like?
- How to post an activity?
- How to add a picture to your activity?
- Markdown
- How to recover my lost account?
- How to get promo cards?
- How to generate a transfer code?
- How to enter a transfer code?
- How to take screenshots?
- How to install Japanese apps?
- How to contact KLab?
- Do you speak another language? Translate the website
- Are you a graphic designer or an artist? Submit your artwork
- Extra time to spare? Join the staff team! (Community Managers, Moderators, Verifications, Japanese speakers, Database maintainers, and more)
- Want to help us pay for the servers that host the site? Donate