Add makefile option for quick backup

This commit is contained in:
Oliver Walters 2019-05-07 07:46:29 +10:00
parent e0b4a59258
commit a03027ec9b
4 changed files with 7 additions and 2 deletions

View File

@ -61,6 +61,7 @@ urlpatterns = [
url(r'^login/', auth_views.LoginView.as_view(), name='login'),
url(r'^logout/', auth_views.LogoutView.as_view(template_name='registration/logout.html'), name='logout'),
url(r'^admin/', admin.site.urls, name='inventree-admin'),
url(r'^qr_code/', include(qr_code_urls, namespace='qr_code')),

View File

@ -23,7 +23,6 @@ class EditCompanyForm(HelperForm):
'phone',
'email',
'contact',
'image',
'is_customer',
'is_supplier',
'notes'

View File

@ -38,3 +38,6 @@ documentation:
pip install -U -r docs/requirements.txt
cd docs & make html
backup:
python InvenTree/manage.py dbbackup
python InvenTree/manage.py mediabackup

View File

@ -9,4 +9,6 @@ Backup and Restore
InvenTree provides database backup and restore functionality through the `django-dbbackup <https://github.com/django-dbbackup/django-dbbackup>`_ extension.
This extension allows databas models and uploaded media files to be backed up (and restored) via the command line.
This extension allows database models and uploaded media files to be backed up (and restored) via the command line.
In the root InvenTre directory, run ``make backup`` to generate backup files for the database models and media files.