mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 20:40:17 +02:00
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:
parent
5d5cf92a19
commit
cd38200506
@ -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.
|
Loading…
x
Reference in New Issue
Block a user