[Mayan EDMS: 2600] New to Mayan, trying to change settings, getting manage.py error

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Mayan EDMS: 2600] New to Mayan, trying to change settings, getting manage.py error

Adam Kaney
I just recently installed Mayan doing the advanced install on Ubuntu 18.04.

I'm trying to change the storage locations.

I created a mysettings file per the instructions on the Mayan website:

#!/opt/mayan-edms/bin/python
from mayan.settings.production import *

DOCUMENTS_CACHE_STORAGE_BACKEND_ARGUMENTS='{location: /media/145mayan/document_cache}'

DOCUMENTS_STORAGE_BACKEND_ARGUMENTS='{location: /media/145mayan/document_storage}'

When I run python manage.py runserver --settings=mayan.media.mayan_settings.mysettings

I get the error: python: can't open file 'manage.py': [Errno 2] No such file or directory

I'm still new to this, so hopefully it is just something simple that I'm missing

--

---
You received this message because you are subscribed to the Google Groups "Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

[Mayan EDMS: 2629] Re: New to Mayan, trying to change settings, getting manage.py error

rosarior
Administrator
Try adding an empty __init__.py to mayan.media and to mayan.media.mayan_settings so that mysetting is importable
You can use the touch command:

touch /opt/mayan-edms/mayan/media/__init__.py
touch /opt/mayan-edms/mayan/media/mayan_settings/__init__.py

If you installed version 3.0, the initialsetup command should have created these for you.

On Wednesday, July 25, 2018 at 1:44:35 PM UTC-4, Adam Kaney wrote:
I just recently installed Mayan doing the advanced install on Ubuntu 18.04.

I'm trying to change the storage locations.

I created a mysettings file per the instructions on the Mayan website:

#!/opt/mayan-edms/bin/python
from mayan.settings.production import *

DOCUMENTS_CACHE_STORAGE_BACKEND_ARGUMENTS='{location: /media/145mayan/document_cache}'

DOCUMENTS_STORAGE_BACKEND_ARGUMENTS='{location: /media/145mayan/document_storage}'

When I run python manage.py runserver --settings=mayan.media.mayan_settings.mysettings

I get the error: python: can't open file 'manage.py': [Errno 2] No such file or directory

I'm still new to this, so hopefully it is just something simple that I'm missing

--

---
You received this message because you are subscribed to the Google Groups "Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.