Roberto,

Disregard my previous email. I started with a fresh VM installation and added 
the new renaming app. I must have had an installation where the initial setup 
was not executed properly because now I see the local.py file in the settings 
directory. I added the new app and migrated. I now see the new sequences item 
in the admin view.

Rachael
> On Jan 7, 2016, at 9:52 AM, Rachael Sewell <[email protected]> wrote:
> 
> Roberto,
> 
> I had added this to the mayan/settings/base.py file:
>> INSTALLED_APPS += (
>>     'document_renaming',
>> )
> 
> and this is the output I got when I ran ./manage.py migrate document_renaming 
> —list
> 
> /mayan-edms-repository/venv/local/lib/python2.7/site-packages/django/contrib/comments/__init__.py:13:
>  RemovedInDjango18Warning: django.contrib.comments is deprecated and will be 
> removed before Django 1.8.
>   warnings.warn("django.contrib.comments is deprecated and will be removed 
> before Django 1.8.", RemovedInDjango18Warning)
> 
> common.apps <534> [DEBUG] "ready() App mimetype doesn't have URLs defined."
> common.apps <534> [DEBUG] "ready() App navigation doesn't have URLs defined."
> smart_settings.classes <534> [DEBUG] "initialize() App appearance has no 
> settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() App suit has no 
> settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() App django.contrib.admin 
> has no settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() App 
> django.contrib.admindocs has no settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() App django.contrib.auth 
> has no settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() App 
> django.contrib.comments has no settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() App 
> django.contrib.contenttypes has no settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() App 
> django.contrib.messages has no settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() App 
> django.contrib.sessions has no settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() App django.contrib.sites 
> has no settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() App 
> django.contrib.staticfiles has no settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() Imported settings.py file 
> for app actstream"
> smart_settings.classes <534> [DEBUG] "initialize() Imported settings.py file 
> for app autoadmin"
> smart_settings.classes <534> [DEBUG] "initialize() App colorful has no 
> settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() App compressor has no 
> settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() App corsheaders has no 
> settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() App djcelery has no 
> settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() App filetransfers has no 
> settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() Imported settings.py file 
> for app mptt"
> smart_settings.classes <534> [DEBUG] "initialize() App pure_pagination has no 
> settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() Imported settings.py file 
> for app rest_framework"
> smart_settings.classes <534> [DEBUG] "initialize() App 
> rest_framework.authtoken has no settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() Imported settings.py file 
> for app solo"
> smart_settings.classes <534> [DEBUG] "initialize() App widget_tweaks has no 
> settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() App acls has no 
> settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() Imported settings.py file 
> for app authentication"
> smart_settings.classes <534> [DEBUG] "initialize() Imported settings.py file 
> for app common"
> smart_settings.classes <534> [DEBUG] "initialize() Imported settings.py file 
> for app converter"
> smart_settings.classes <534> [DEBUG] "initialize() Imported settings.py file 
> for app django_gpg"
> smart_settings.classes <534> [DEBUG] "initialize() Imported settings.py file 
> for app dynamic_search"
> smart_settings.classes <534> [DEBUG] "initialize() Imported settings.py file 
> for app lock_manager"
> smart_settings.classes <534> [DEBUG] "initialize() App mimetype has no 
> settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() App navigation has no 
> settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() App permissions has no 
> settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() App smart_settings has no 
> settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() App user_management has no 
> settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() App checkouts has no 
> settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() App document_comments has 
> no settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() App document_indexing has 
> no settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() App document_renaming has 
> no settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() Imported settings.py file 
> for app document_signatures"
> smart_settings.classes <534> [DEBUG] "initialize() App document_states has no 
> settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() Imported settings.py file 
> for app documents"
> smart_settings.classes <534> [DEBUG] "initialize() App events has no 
> settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() App folders has no 
> settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() App installation has no 
> settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() App linking has no 
> settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() Imported settings.py file 
> for app mailer"
> smart_settings.classes <534> [DEBUG] "initialize() Imported settings.py file 
> for app metadata"
> smart_settings.classes <534> [DEBUG] "initialize() Imported settings.py file 
> for app mirroring"
> smart_settings.classes <534> [DEBUG] "initialize() Imported settings.py file 
> for app ocr"
> smart_settings.classes <534> [DEBUG] "initialize() App rest_api has no 
> settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() App sources has no 
> settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() App statistics has no 
> settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() Imported settings.py file 
> for app storage"
> smart_settings.classes <534> [DEBUG] "initialize() App tags has no 
> settings.py file"
> smart_settings.classes <534> [DEBUG] "initialize() App rest_framework_swagger 
> has no settings.py file"
> document_renaming
>  [X] 0001_initial
>  [X] 0002_sequence_increment
>  [X] 0003_auto_20151220_0717
>  [X] 0004_auto_20151220_0751
>  [X] 0005_auto_20151221_0402
>  [X] 0006_auto_20151221_0402
> 
> 
> I just want to confirm whether I add the installed app to 
> mayan/settings/base.py, mayan/settings/development.py, or in 
> /venv/lib/python2.7/site-packages/mayan/settings/local.py.
> 
> 
> Thanks for the help,
> Rachael
> 
> 
> 
> 
> 
> 
> 
>> On Jan 7, 2016, at 2:04 AM, Roberto Rosario 
>> <[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>> Hi,
>> 
>> run the command:
>> 
>> ./manage.py migrate document_renaming  --list
>> 
>> it should show:
>> 
>> document_renaming
>>  [X] 0001_initial
>>  [X] 0002_sequence_increment
>>  [X] 0003_auto_20151220_0717
>>  [X] 0004_auto_20151220_0751
>>  [X] 0005_auto_20151221_0402
>>  [X] 0006_auto_20151221_0402
>> 
>> If the output is as shown above the app was enabled and migrate, any other 
>> output means the app is not being recognized. Be sure to add the lines:
>> 
>> INSTALLED_APPS += (
>>     'document_renaming',
>> )
>> 
>> At the end of the settings/local.py.
>> 
>> 
>> On Tuesday, January 5, 2016 at 6:31:23 PM UTC-4, Rachael Sewell wrote:
>> Hi Roberto,
>> 
>> I cloned the repository outside of my mayan-edms repo and created a symbolic 
>> link to the directory in my mayan/apps directory. The directions in the 
>> gitlab account specify:
>> 
>> In your settings/local.py file add document_renaming to your INSTALLED_APPS 
>> list:
>> 
>> INSTALLED_APPS += (
>>     'document_renaming',
>> )
>> Should that actually read mayan/settings/base.py?
>> 
>> I have added the application to the base.py file and run migrations. 
>> However, I still don't see this application added in the admin dashboard.
>> Rachael
>> 
>> On Sunday, December 20, 2015 at 8:22:51 PM UTC-8, Roberto Rosario wrote:
>> Proper UI integration added with views, links and permissions. Only locking 
>> issue remains to solve.
>> 
>> On Sunday, December 20, 2015 at 4:02:15 AM UTC-4, Roberto Rosario wrote:
>> Hello,
>> 
>> I've pushed initial code to implement this as a separate app here: 
>> https://gitlab.com/mayan-edms/document_renaming 
>> <https://gitlab.com/mayan-edms/document_renaming>. Separate sequences can be 
>> created with different increments. Renaming templates are then created which 
>> reference existing sequences. A renaming template is associated with a 
>> document type. Everytime a new document is uploaded the renaming template is 
>> rendered and the result is applied a the label for the new documents.  Still 
>> missing: Locking to avoid repeated sequence numbers and proper setup views. 
>> If you can provide a GitLab account I will add developer permissions for it 
>> for the repository.
>> 
>> 
>> 
>> 
>> 
>>  
>> <https://lh3.googleusercontent.com/-rxu4Ts6Dswo/VnZfgyTBn6I/AAAAAAAAliY/Ct4vhF6I984/s1600/Screenshot%2Bfrom%2B2015-12-20%2B03-49-46.png>
>>  
>> <https://lh3.googleusercontent.com/-N4h8-mMDiqc/VnZfVtt_sJI/AAAAAAAAliI/lupqR_o8Fxs/s1600/Screenshot%2Bfrom%2B2015-12-20%2B03-48-37.png>
>>  
>> <https://lh3.googleusercontent.com/-dODDG_fmVVQ/VnZfa9L5lPI/AAAAAAAAliQ/f50Z8vlzYSk/s1600/Screenshot%2Bfrom%2B2015-12-20%2B03-48-52.png>
>> 
>> 
>> 
>> On Friday, December 18, 2015 at 2:34:13 PM UTC-4, Rachael Sewell wrote:
>> Hello,
>> 
>> I'd like to know if there is already a way to add an automatically created 
>> document number to a document. For example I would like to start with a 
>> initial document number of AN00001 and increment (AN00002, AN00003) for each 
>> additional doc. Does this functionality already exist? If not could it be 
>> added to the core or would it need to be a custom application? Any pointers 
>> on how to get started on this would be helpful as well. 
>> 
>> Thanks,
>> Rachael
>> 
>> -- 
>> 
>> --- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Mayan EDMS" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/mayan-edms/HRy_us-jp10/unsubscribe 
>> <https://groups.google.com/d/topic/mayan-edms/HRy_us-jp10/unsubscribe>.
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected] 
>> <mailto:[email protected]>.
>> For more options, visit https://groups.google.com/d/optout 
>> <https://groups.google.com/d/optout>.
> 

-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to