Section for adding and removing apps.

People know how to add, but tend not to migrate to zero when removing leading to integrity errors.
This commit is contained in:
Adarnof 2018-04-21 19:49:46 -04:00
parent 5d5cf92a19
commit cd38200506

View File

@ -86,3 +86,12 @@ urlpatterns = [
url(r'', include(allianceauth.urls)), url(r'', include(allianceauth.urls)),
] ]
``` ```
## Adding and Removing Apps
Your auth project is just a regular Django project - you can add in [other Django apps](https://djangopackages.org/) as desired. Most come with dedicated setup guides, but in general:
- add `'appname',` to your `INSTALLED_APPS` setting
- run `python manage.py migrate`
- run `python manage.py collectstatic`
If you ever want to remove an app, you should first clear it from the database to avoid dangling foreign keys: `python manage.py migrate appname zero`. Then you can remove it from your auth project's `INSTALLED_APPS` list.