Roberto Rosario
f6afec031d
Allow skipping dependencies install during upgrade
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-08 19:18:04 -04:00
Roberto Rosario
0e6f34d0ee
Add deprecation warning to convertdb
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-06 02:30:48 -04:00
Roberto Rosario
74c97314d7
Code style cleanups
...
Add keyword arguments. Sort arguments and models.
Move literals to their own module. Prepend handler_ to
signal handlers.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-26 03:32:35 -04:00
Roberto Rosario
030ee8efe3
Add dependencies app
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-15 23:45:59 -04:00
Roberto Rosario
0d4ab4f2cf
Move setting to the storage app
...
The setting COMMON_TEMPORARY_DIRECTORY is now
STORAGE_TEMPORARY_DIRECTORY.
Move file related utilities to the storage app.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-12 22:26:43 -04:00
Roberto Rosario
36a51eeb73
Switch to full app paths
...
Instead of inserting the path of the apps into the Python app,
the apps are now referenced by their full import path.
This solves name clashes with external or native Python libraries.
Example: Mayan statistics app vs. Python new statistics library.
Every app reference is now prepended with 'mayan.apps'.
Existing config.yml files need to be updated manually.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-05 02:02:57 -04:00
Roberto Rosario
cf1726505b
Documenation: Fix spelling errors
...
Fix spelling errors in documentation and other program texts.
Update the spelling exceptions list.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-10-31 18:41:20 -04:00
Roberto Rosario
38485b1cf8
Fix text typo in the converdb command.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-09-26 22:30:08 -04:00
Roberto Rosario
9e4ad9a64f
Add support to the convertdb command to operate on specified apps too.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-09-21 00:09:58 -04:00
Roberto Rosario
fdfa4755e9
Don't use a hardcoded database alias for the destination of the database conversion.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-09-19 20:52:31 -04:00
Roberto Rosario
6baa63a989
Restore usage of upstream django-celery package. Purge periodic tasks before dumping the database.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-09-01 03:41:34 -04:00
Roberto Rosario
ac5f53c538
Add COMMON_PROJECT_TITLE as a setting option to customize the title string.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-08-16 03:02:21 -04:00
Roberto Rosario
14bea94030
Update pathlib imports to pathlib2.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-08-06 14:55:14 -04:00
Roberto Rosario
0c1c38917c
Make format explicit JSON
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-08-03 19:25:24 -04:00
Roberto Rosario
fc304394f5
Add convertdb command.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-08-03 18:50:30 -04:00
Roberto Rosario
aa38b1c0e8
PEP8 cleanups.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-06-29 03:10:17 -04:00
Roberto Rosario
df980292cb
Change the media root settings folder name from 'settings' to 'mayan_settings' for clarity.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-06-03 03:00:32 -04:00
Roberto Rosario
e0d8eff711
Add the --no-javascript option to the initial setup to disable download the Javascript libraries.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-05-20 07:51:17 -04:00
Roberto Rosario
ae9a519263
Don't create an __init__.py file in the media folder. Replace error number literals with constant definitions.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-05-04 00:49:42 -04:00
Roberto Rosario
d610f8d5f6
Use the errno library and not the literal error numbers.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-04-30 02:01:06 -04:00
Roberto Rosario
cbad7ee504
Print the exception type on upgrade errors. This is used for celery errors which don't include a text message.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-04-29 23:30:05 -04:00
Eric Riggs
d8941ea810
- Add --force option to initialsetup
...
- Create the entire media structure
Signed-off-by: Eric Riggs <ericriggs42@gmail.com >
2018-04-22 04:14:46 -04:00
Roberto Rosario
3e062a5517
New initialization command. Creates media/system and populates the SECRET_KEY and VERSION files.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-04-13 16:05:40 -04:00
Roberto Rosario
c234a65a7b
Add support to install javascript libraries for just one. Don't truncate version string. Don't download required dependencies by default.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-04-05 07:21:18 -04:00
Roberto Rosario
b7b1a87f23
Add JavaScript manager.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-04-05 03:29:28 -04:00
Roberto Rosario
4d9d91b121
Make sure the local.py created used unicode for strings
...
by default. GitLab issue #424 . Thanks to Gustavo Teixeira
(@gsteixei) for the find.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-09-01 17:04:19 -04:00
Roberto Rosario
2e4cb03f2d
Fix local setting file template indent.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-30 02:20:07 -04:00
Roberto Rosario
da82c7fe51
Use Django's get_random_secret_key instead of own code.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-30 01:46:24 -04:00
Roberto Rosario
5f1544154c
Code cleanups.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-30 01:12:04 -04:00
Roberto Rosario
1d5e793c84
Make the local setting filename created a dynamic one.
...
Move the local setting file template into a separate module.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-29 21:51:05 -04:00
Roberto Rosario
4096b8b882
PEP8 cleanups.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-24 20:30:46 -04:00
Roberto Rosario
60cc0346fe
Make the intialsetup and performupgrade management tasks
...
work with signals to allow customization from 3rd party apps.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-24 16:32:30 -04:00
Roberto Rosario
7d0cd339bf
Improve error output of the performupgrade command.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-06-30 15:03:06 -04:00
Roberto Rosario
0078600e62
Add custom tests runner that replaces the custom "runtests"
...
management command.
2017-02-17 18:12:48 -04:00
Roberto Rosario
86a602aa34
PEP8 cleanups.
2016-12-31 02:25:02 -04:00
Roberto Rosario
31b748a868
Update runtests management command to work with Django 1.10
2016-12-22 03:35:51 -04:00
Roberto Rosario
5662b56714
Update project to work with Django 1.10.x
2016-12-22 02:53:06 -04:00
Roberto Rosario
a335f39e2a
Add support for the --reverse test parameter.
2016-11-14 02:34:56 -04:00
Roberto Rosario
6e3d99670c
Complete conversion of download views to CBV views using django-downloadview.
...
This also removes dependency on the filetransfers library.
2016-10-31 01:00:35 -04:00
Roberto Rosario
883e623a15
User self.setdout instead of print as per documentation: https://docs.djangoproject.com/en/1.8/howto/custom-management-commands/#django.core.management.BaseCommand.style
2016-06-06 04:55:07 -04:00
Roberto Rosario
728121b1bb
Add help message when initialsetup migration phase fails. GitLab issue #296 .
2016-06-06 04:54:05 -04:00
Roberto Rosario
24df09ba71
Fix switch name, fake initial migrations not all.
2016-05-11 00:40:22 -04:00
Roberto Rosario
d934b2ee1e
Now that autoadmin has an initial migration don't error out on existing tables.
2016-05-07 20:28:34 -04:00
Roberto Rosario
9bb3cb4595
Add command to create an initial settings file. Existing local.py don't stop the initialsetup command now.
2015-10-20 04:13:59 -04:00
Roberto Rosario
bfe621ba89
PEP8 updates.
2015-10-19 01:27:26 -04:00
Roberto Rosario
976a86947e
Add management command to run tests from app list built dynamically.
2015-10-10 03:24:57 -04:00
Roberto Rosario
8f14028660
Add post_upgrade signal, use it to re-initialize interval sources.
2015-07-18 02:45:55 -04:00
Roberto Rosario
a5cf80cd86
Add management command to perform steps required after an upgrade.
2015-07-18 02:24:10 -04:00
Roberto Rosario
cb6e80926e
Add management command to purge periodic tasks from the DB.
2015-07-11 01:49:15 -04:00
Roberto Rosario
890ae87e9c
Emit a post initial setup signal
2015-06-16 01:58:59 -04:00