DJANGO: Re-ordering APPS in admin-site
The custom template tag contains some integration and modification to admin site interface. This doesn't modify the core source code of django but instead it overrides some functionalities in Django app. I will add more functionalities when i have time. Enjoy!
Steps on applying this into your site. ( Same as applying normal custom templatetags)
Step 1: Copy and paste this `templatetags` directory inside your app ( any app ). It should be recognized by Django or else it will raise an error 'invalid templatetag'
Step 2: Override your admin/index.html. If you don't know how to override the admin( customize ), You can search the net. It's pretty simple though, just add an admin directory to your templates directory and copy&paste the admin templates to that folder. In this case just copy the index.html
Step 3: Load the templatetag. {% load custom_admin %} <-- add this above. or this {% load i18n %} to this {% load i18n custom_admin %}. (you'll know what i mean lol)
Step 4: Add ADMIN_APP_ORDER in settings.py and add the apps(the way you want it to be order).
ex. ADMIN_APP_ORDER = ('app1','app2','app3')
Step 5: No step 5. run it and check if it works. If not I'm sorry bro i failed you.
* Note: The current tag will only re-order the apps in index.html but not the models inside the app but I will updated it with cooler stuff when i have time. You can edit it though. thanks!
File Link: https://www.dropbox.com/s/diq2r0p9nl7lk6k/templatetags.tar.gz
# This code is written by: Earvin Gemenez (Tomomoi)














