Re: [openwisp] Create organisation with fixed seceret key during start of openwisp

2020-08-19 Thread pni...@gmail.com
Maybe it's too late, but I've done a script for this.

Yoy can call if after executing *python manage.py migrate --no-input*


El viernes, 4 de octubre de 2019 a las 12:05:34 UTC+2, Amit escribió:

> Thanks Federico 
>
> But I am very new to Django framework and could not create command 
> for OrganizationConfigSettings
> It would be very helpful if someone can provide complete command 
> for OrganizationConfigSettings in model.py. 
>
>
> On Thursday, October 3, 2019 at 7:35:59 PM UTC+5:30, Federico Capoano 
> wrote:
>
>> You have to use this model:  
>> https://github.com/openwisp/openwisp-controller/blob/master/openwisp_controller/config/models.py#L229
>>  
>>
>> Fed 
>>
>> On Thu, Oct 3, 2019 at 8:03 AM Amit Goyal  wrote:
>>
> Hi Noumbissi 
>>>
>>> I am able to create organnization but my final goal was to create 
>>> shared_secret with organization .
>>> Actually there are two 
>>> tables openwisp_users_organization, config_organizationconfigsettings where 
>>> shared_secret get created in config_organizationconfigsettings table with 
>>> mapping of organization id from openwisp_users_organization table . 
>>>
>>> Do you have idea how can we create entry in 
>>> config_organizationconfigsettings once get created in 
>>> openwisp_users_organization ?
>>>
>>> Thanks in Advance!
>>>
>>> Regards
>>> Amit
>>>
>>> On Thursday, October 3, 2019 at 12:23:21 PM UTC+5:30, Noumbissi Valere 
>>> wrote:

 If you wish to use that method, then we have to access the 
 `openwisp_users.models`. therefore, your script will look something like 
 this;
 *from openwisp_users.models import Organization; 
 Organization.objects.create(name='name_of_organization', 
 description='org_description', email='organization_email', 
 url='organization_url')" | python3 /home/openwisp/manage.py shell*

 only the name field is required. so you can leave out the other fields. 
 But i think its good you put them.  


 On Thu, Oct 3, 2019 at 8:42 AM Amit Goyal  wrote:

> Sorry I could not see any ! 
>
> Is there way to create custom organization like create super user with 
> below script 
>
> *from django.contrib.auth import get_user_model; User = 
> get_user_model(); User.objects.create_superuser('admin', 
> 'ad...@test.com', 
> 'admin')" | python3 /home/openwisp/manage.py shell*
>
> On Thursday, October 3, 2019 at 12:09:00 PM UTC+5:30, Noumbissi Valere 
> wrote:
>>
>> Check the *organization* table. You should see a default organization 
>> there
>>
>> On Thu, Oct 3, 2019, 6:42 AM Amit Goyal  wrote:
>>
>>> Hi Noumbissi
>>>
>>> Thanks for replying !
>>>
>>> Where it is created ? I cannot see any default organisation in table 
>>> openwisp_users_organization.
>>> We want to fixed the secret key for that organisation! 
>>>
>>> On Thursday, October 3, 2019 at 11:06:00 AM UTC+5:30, Noumbissi 
>>> Valere wrote:

 Hello Amit,

 A *default* organization is created at start up which you can use. 
 Don't know if that will solve your problem?

 On Thu, Oct 3, 2019, 6:12 AM Amit Goyal  wrote:

> Hi 
>
> We want to create organisation with fixed secret key during 
> openwisp start up as we can create superuser during startup .
> Is it possible to do ? Please let me know details .
>
> Thanks 
> Amit
>
> -- 
> You received this message because you are subscribed to the Google 
> Groups "OpenWISP" group.
> To unsubscribe from this group and stop receiving emails from it, 
> send an email to open...@googlegroups.com.
> To view this discussion on the web, visit 
> https://groups.google.com/d/msgid/openwisp/feb00a8c-03db-4784-a951-e43d81cd0150%40googlegroups.com
>  
> 
> .
>
 -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "OpenWISP" group.
>>> To unsubscribe from this group and stop receiving emails from it, 
>>> send an email to open...@googlegroups.com.
>>> To view this discussion on the web, visit 
>>> https://groups.google.com/d/msgid/openwisp/cb4ed944-aebc-4464-8d37-2596c269ca50%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>> -- 
> You received this message because you are subscribed to the Google 
> Groups "OpenWISP" group.
> To unsubscribe from this group and stop receiving emails from it, send 
> an email to open...@googlegroups.com.
> To view this discussion on the web, visit 
> https://

Re: [openwisp] Create organisation with fixed seceret key during start of openwisp

2019-10-04 Thread Amit Goyal
Thanks Federico 

But I am very new to Django framework and could not create command 
for OrganizationConfigSettings
It would be very helpful if someone can provide complete command 
for OrganizationConfigSettings in model.py. 

On Thursday, October 3, 2019 at 7:35:59 PM UTC+5:30, Federico Capoano wrote:
>
> You have to use this model:  
> https://github.com/openwisp/openwisp-controller/blob/master/openwisp_controller/config/models.py#L229
>  
>
> Fed 
>
> On Thu, Oct 3, 2019 at 8:03 AM Amit Goyal  > wrote:
>
>> Hi Noumbissi 
>>
>> I am able to create organnization but my final goal was to create 
>> shared_secret with organization .
>> Actually there are two 
>> tables openwisp_users_organization, config_organizationconfigsettings where 
>> shared_secret get created in config_organizationconfigsettings table with 
>> mapping of organization id from openwisp_users_organization table . 
>>
>> Do you have idea how can we create entry in 
>> config_organizationconfigsettings once get created in 
>> openwisp_users_organization ?
>>
>> Thanks in Advance!
>>
>> Regards
>> Amit
>>
>> On Thursday, October 3, 2019 at 12:23:21 PM UTC+5:30, Noumbissi Valere 
>> wrote:
>>>
>>> If you wish to use that method, then we have to access the 
>>> `openwisp_users.models`. therefore, your script will look something like 
>>> this;
>>> *from openwisp_users.models import Organization; 
>>> Organization.objects.create(name='name_of_organization', 
>>> description='org_description', email='organization_email', 
>>> url='organization_url')" | python3 /home/openwisp/manage.py shell*
>>>
>>> only the name field is required. so you can leave out the other fields. 
>>> But i think its good you put them.  
>>>
>>>
>>> On Thu, Oct 3, 2019 at 8:42 AM Amit Goyal  wrote:
>>>
 Sorry I could not see any ! 

 Is there way to create custom organization like create super user with 
 below script 

 *from django.contrib.auth import get_user_model; User = 
 get_user_model(); User.objects.create_superuser('admin', 'ad...@test.com', 
 'admin')" | python3 /home/openwisp/manage.py shell*

 On Thursday, October 3, 2019 at 12:09:00 PM UTC+5:30, Noumbissi Valere 
 wrote:
>
> Check the *organization* table. You should see a default organization 
> there
>
> On Thu, Oct 3, 2019, 6:42 AM Amit Goyal  wrote:
>
>> Hi Noumbissi
>>
>> Thanks for replying !
>>
>> Where it is created ? I cannot see any default organisation in table 
>> openwisp_users_organization.
>> We want to fixed the secret key for that organisation! 
>>
>> On Thursday, October 3, 2019 at 11:06:00 AM UTC+5:30, Noumbissi 
>> Valere wrote:
>>>
>>> Hello Amit,
>>>
>>> A *default* organization is created at start up which you can use. 
>>> Don't know if that will solve your problem?
>>>
>>> On Thu, Oct 3, 2019, 6:12 AM Amit Goyal  wrote:
>>>
 Hi 

 We want to create organisation with fixed secret key during 
 openwisp start up as we can create superuser during startup .
 Is it possible to do ? Please let me know details .

 Thanks 
 Amit

 -- 
 You received this message because you are subscribed to the Google 
 Groups "OpenWISP" group.
 To unsubscribe from this group and stop receiving emails from it, 
 send an email to open...@googlegroups.com.
 To view this discussion on the web, visit 
 https://groups.google.com/d/msgid/openwisp/feb00a8c-03db-4784-a951-e43d81cd0150%40googlegroups.com
  
 
 .

>>> -- 
>> You received this message because you are subscribed to the Google 
>> Groups "OpenWISP" group.
>> To unsubscribe from this group and stop receiving emails from it, 
>> send an email to open...@googlegroups.com.
>> To view this discussion on the web, visit 
>> https://groups.google.com/d/msgid/openwisp/cb4ed944-aebc-4464-8d37-2596c269ca50%40googlegroups.com
>>  
>> 
>> .
>>
> -- 
 You received this message because you are subscribed to the Google 
 Groups "OpenWISP" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to open...@googlegroups.com.
 To view this discussion on the web, visit 
 https://groups.google.com/d/msgid/openwisp/5ba5e7f4-ed0e-4047-a004-21f9e00b09b8%40googlegroups.com
  
 
 .

>>>
>>>
>>> -- 
>>> Noumbissi Valere
>>>
>> -- 
>> You received this message because 

Re: [openwisp] Create organisation with fixed seceret key during start of openwisp

2019-10-03 Thread Federico Capoano
You have to use this model:
https://github.com/openwisp/openwisp-controller/blob/master/openwisp_controller/config/models.py#L229


Fed

On Thu, Oct 3, 2019 at 8:03 AM Amit Goyal  wrote:

> Hi Noumbissi
>
> I am able to create organnization but my final goal was to create
> shared_secret with organization .
> Actually there are two
> tables openwisp_users_organization, config_organizationconfigsettings where
> shared_secret get created in config_organizationconfigsettings table with
> mapping of organization id from openwisp_users_organization table .
>
> Do you have idea how can we create entry in
> config_organizationconfigsettings once get created in
> openwisp_users_organization ?
>
> Thanks in Advance!
>
> Regards
> Amit
>
> On Thursday, October 3, 2019 at 12:23:21 PM UTC+5:30, Noumbissi Valere
> wrote:
>>
>> If you wish to use that method, then we have to access the
>> `openwisp_users.models`. therefore, your script will look something like
>> this;
>> *from openwisp_users.models import Organization;
>> Organization.objects.create(name='name_of_organization',
>> description='org_description', email='organization_email',
>> url='organization_url')" | python3 /home/openwisp/manage.py shell*
>>
>> only the name field is required. so you can leave out the other fields.
>> But i think its good you put them.
>>
>>
>> On Thu, Oct 3, 2019 at 8:42 AM Amit Goyal  wrote:
>>
>>> Sorry I could not see any !
>>>
>>> Is there way to create custom organization like create super user with
>>> below script
>>>
>>> *from django.contrib.auth import get_user_model; User =
>>> get_user_model(); User.objects.create_superuser('admin', 'ad...@test.com',
>>> 'admin')" | python3 /home/openwisp/manage.py shell*
>>>
>>> On Thursday, October 3, 2019 at 12:09:00 PM UTC+5:30, Noumbissi Valere
>>> wrote:

 Check the *organization* table. You should see a default organization
 there

 On Thu, Oct 3, 2019, 6:42 AM Amit Goyal  wrote:

> Hi Noumbissi
>
> Thanks for replying !
>
> Where it is created ? I cannot see any default organisation in table
> openwisp_users_organization.
> We want to fixed the secret key for that organisation!
>
> On Thursday, October 3, 2019 at 11:06:00 AM UTC+5:30, Noumbissi Valere
> wrote:
>>
>> Hello Amit,
>>
>> A *default* organization is created at start up which you can use.
>> Don't know if that will solve your problem?
>>
>> On Thu, Oct 3, 2019, 6:12 AM Amit Goyal  wrote:
>>
>>> Hi
>>>
>>> We want to create organisation with fixed secret key during openwisp
>>> start up as we can create superuser during startup .
>>> Is it possible to do ? Please let me know details .
>>>
>>> Thanks
>>> Amit
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "OpenWISP" group.
>>> To unsubscribe from this group and stop receiving emails from it,
>>> send an email to open...@googlegroups.com.
>>> To view this discussion on the web, visit
>>> https://groups.google.com/d/msgid/openwisp/feb00a8c-03db-4784-a951-e43d81cd0150%40googlegroups.com
>>> 
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google
> Groups "OpenWISP" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to open...@googlegroups.com.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/openwisp/cb4ed944-aebc-4464-8d37-2596c269ca50%40googlegroups.com
> 
> .
>
 --
>>> You received this message because you are subscribed to the Google
>>> Groups "OpenWISP" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to open...@googlegroups.com.
>>> To view this discussion on the web, visit
>>> https://groups.google.com/d/msgid/openwisp/5ba5e7f4-ed0e-4047-a004-21f9e00b09b8%40googlegroups.com
>>> 
>>> .
>>>
>>
>>
>> --
>> Noumbissi Valere
>>
> --
> You received this message because you are subscribed to the Google Groups
> "OpenWISP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to openwisp+unsubscr...@googlegroups.com.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/openwisp/dfa02ac0-b20a-4335-8c58-2fec3fbaff69%40googlegroups.com
> 
> .
>

-- 
You received this message because y

Re: [openwisp] Create organisation with fixed seceret key during start of openwisp

2019-10-03 Thread Amit Goyal
Hi Noumbissi 

I am able to create organnization but my final goal was to create 
shared_secret with organization .
Actually there are two 
tables openwisp_users_organization, config_organizationconfigsettings where 
shared_secret get created in config_organizationconfigsettings table with 
mapping of organization id from openwisp_users_organization table . 

Do you have idea how can we create entry in 
config_organizationconfigsettings once get created in 
openwisp_users_organization ?

Thanks in Advance!

Regards
Amit

On Thursday, October 3, 2019 at 12:23:21 PM UTC+5:30, Noumbissi Valere 
wrote:
>
> If you wish to use that method, then we have to access the 
> `openwisp_users.models`. therefore, your script will look something like 
> this;
> *from openwisp_users.models import Organization; 
> Organization.objects.create(name='name_of_organization', 
> description='org_description', email='organization_email', 
> url='organization_url')" | python3 /home/openwisp/manage.py shell*
>
> only the name field is required. so you can leave out the other fields. 
> But i think its good you put them.  
>
>
> On Thu, Oct 3, 2019 at 8:42 AM Amit Goyal  > wrote:
>
>> Sorry I could not see any ! 
>>
>> Is there way to create custom organization like create super user with 
>> below script 
>>
>> *from django.contrib.auth import get_user_model; User = get_user_model(); 
>> User.objects.create_superuser('admin', 'ad...@test.com ', 
>> 'admin')" | python3 /home/openwisp/manage.py shell*
>>
>> On Thursday, October 3, 2019 at 12:09:00 PM UTC+5:30, Noumbissi Valere 
>> wrote:
>>>
>>> Check the *organization* table. You should see a default organization 
>>> there
>>>
>>> On Thu, Oct 3, 2019, 6:42 AM Amit Goyal  wrote:
>>>
 Hi Noumbissi

 Thanks for replying !

 Where it is created ? I cannot see any default organisation in table 
 openwisp_users_organization.
 We want to fixed the secret key for that organisation! 

 On Thursday, October 3, 2019 at 11:06:00 AM UTC+5:30, Noumbissi Valere 
 wrote:
>
> Hello Amit,
>
> A *default* organization is created at start up which you can use. 
> Don't know if that will solve your problem?
>
> On Thu, Oct 3, 2019, 6:12 AM Amit Goyal  wrote:
>
>> Hi 
>>
>> We want to create organisation with fixed secret key during openwisp 
>> start up as we can create superuser during startup .
>> Is it possible to do ? Please let me know details .
>>
>> Thanks 
>> Amit
>>
>> -- 
>> You received this message because you are subscribed to the Google 
>> Groups "OpenWISP" group.
>> To unsubscribe from this group and stop receiving emails from it, 
>> send an email to open...@googlegroups.com.
>> To view this discussion on the web, visit 
>> https://groups.google.com/d/msgid/openwisp/feb00a8c-03db-4784-a951-e43d81cd0150%40googlegroups.com
>>  
>> 
>> .
>>
> -- 
 You received this message because you are subscribed to the Google 
 Groups "OpenWISP" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to open...@googlegroups.com.
 To view this discussion on the web, visit 
 https://groups.google.com/d/msgid/openwisp/cb4ed944-aebc-4464-8d37-2596c269ca50%40googlegroups.com
  
 
 .

>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "OpenWISP" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to open...@googlegroups.com .
>> To view this discussion on the web, visit 
>> https://groups.google.com/d/msgid/openwisp/5ba5e7f4-ed0e-4047-a004-21f9e00b09b8%40googlegroups.com
>>  
>> 
>> .
>>
>
>
> -- 
> Noumbissi Valere
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to openwisp+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/openwisp/dfa02ac0-b20a-4335-8c58-2fec3fbaff69%40googlegroups.com.


Re: [openwisp] Create organisation with fixed seceret key during start of openwisp

2019-10-03 Thread Oliver Kraitschy

Hello Amit,

you can create an organisation with a concrete shared secret with the 
common django methods for providing initial data:


https://docs.djangoproject.com/en/2.2/howto/initial-data/

Greetings,
Oliver

Am 03.10.19 um 07:12 schrieb Amit Goyal:

Hi

We want to create organisation with fixed secret key during openwisp 
start up as we can create superuser during startup .

Is it possible to do ? Please let me know details .

Thanks
Amit

--
You received this message because you are subscribed to the Google 
Groups "OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to openwisp+unsubscr...@googlegroups.com 
.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/openwisp/feb00a8c-03db-4784-a951-e43d81cd0150%40googlegroups.com 
.


--
You received this message because you are subscribed to the Google Groups 
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to openwisp+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/openwisp/732f55bc-ecb1-0d62-d35a-a3bd612a4615%40okraits.de.


Re: [openwisp] Create organisation with fixed seceret key during start of openwisp

2019-10-03 Thread Amit Goyal
Yes , I want to use this method only ! thanks 
Can we provide key also with name , description in this method ? 

On Thursday, October 3, 2019 at 12:23:21 PM UTC+5:30, Noumbissi Valere 
wrote:
>
> If you wish to use that method, then we have to access the 
> `openwisp_users.models`. therefore, your script will look something like 
> this;
> *from openwisp_users.models import Organization; 
> Organization.objects.create(name='name_of_organization', 
> description='org_description', email='organization_email', 
> url='organization_url')" | python3 /home/openwisp/manage.py shell*
>
> only the name field is required. so you can leave out the other fields. 
> But i think its good you put them.  
>
>
> On Thu, Oct 3, 2019 at 8:42 AM Amit Goyal  > wrote:
>
>> Sorry I could not see any ! 
>>
>> Is there way to create custom organization like create super user with 
>> below script 
>>
>> *from django.contrib.auth import get_user_model; User = get_user_model(); 
>> User.objects.create_superuser('admin', 'ad...@test.com ', 
>> 'admin')" | python3 /home/openwisp/manage.py shell*
>>
>> On Thursday, October 3, 2019 at 12:09:00 PM UTC+5:30, Noumbissi Valere 
>> wrote:
>>>
>>> Check the *organization* table. You should see a default organization 
>>> there
>>>
>>> On Thu, Oct 3, 2019, 6:42 AM Amit Goyal  wrote:
>>>
 Hi Noumbissi

 Thanks for replying !

 Where it is created ? I cannot see any default organisation in table 
 openwisp_users_organization.
 We want to fixed the secret key for that organisation! 

 On Thursday, October 3, 2019 at 11:06:00 AM UTC+5:30, Noumbissi Valere 
 wrote:
>
> Hello Amit,
>
> A *default* organization is created at start up which you can use. 
> Don't know if that will solve your problem?
>
> On Thu, Oct 3, 2019, 6:12 AM Amit Goyal  wrote:
>
>> Hi 
>>
>> We want to create organisation with fixed secret key during openwisp 
>> start up as we can create superuser during startup .
>> Is it possible to do ? Please let me know details .
>>
>> Thanks 
>> Amit
>>
>> -- 
>> You received this message because you are subscribed to the Google 
>> Groups "OpenWISP" group.
>> To unsubscribe from this group and stop receiving emails from it, 
>> send an email to open...@googlegroups.com.
>> To view this discussion on the web, visit 
>> https://groups.google.com/d/msgid/openwisp/feb00a8c-03db-4784-a951-e43d81cd0150%40googlegroups.com
>>  
>> 
>> .
>>
> -- 
 You received this message because you are subscribed to the Google 
 Groups "OpenWISP" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to open...@googlegroups.com.
 To view this discussion on the web, visit 
 https://groups.google.com/d/msgid/openwisp/cb4ed944-aebc-4464-8d37-2596c269ca50%40googlegroups.com
  
 
 .

>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "OpenWISP" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to open...@googlegroups.com .
>> To view this discussion on the web, visit 
>> https://groups.google.com/d/msgid/openwisp/5ba5e7f4-ed0e-4047-a004-21f9e00b09b8%40googlegroups.com
>>  
>> 
>> .
>>
>
>
> -- 
> Noumbissi Valere
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to openwisp+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/openwisp/ea83ff6f-cd3a-46d6-9762-dfd23892427b%40googlegroups.com.


Re: [openwisp] Create organisation with fixed seceret key during start of openwisp

2019-10-02 Thread Noumbissi Valere
If you wish to use that method, then we have to access the
`openwisp_users.models`. therefore, your script will look something like
this;
*from openwisp_users.models import Organization;
Organization.objects.create(name='name_of_organization',
description='org_description', email='organization_email',
url='organization_url')" | python3 /home/openwisp/manage.py shell*

only the name field is required. so you can leave out the other fields. But
i think its good you put them.


On Thu, Oct 3, 2019 at 8:42 AM Amit Goyal  wrote:

> Sorry I could not see any !
>
> Is there way to create custom organization like create super user with
> below script
>
> *from django.contrib.auth import get_user_model; User = get_user_model();
> User.objects.create_superuser('admin', 'ad...@test.com ',
> 'admin')" | python3 /home/openwisp/manage.py shell*
>
> On Thursday, October 3, 2019 at 12:09:00 PM UTC+5:30, Noumbissi Valere
> wrote:
>>
>> Check the *organization* table. You should see a default organization
>> there
>>
>> On Thu, Oct 3, 2019, 6:42 AM Amit Goyal  wrote:
>>
>>> Hi Noumbissi
>>>
>>> Thanks for replying !
>>>
>>> Where it is created ? I cannot see any default organisation in table
>>> openwisp_users_organization.
>>> We want to fixed the secret key for that organisation!
>>>
>>> On Thursday, October 3, 2019 at 11:06:00 AM UTC+5:30, Noumbissi Valere
>>> wrote:

 Hello Amit,

 A *default* organization is created at start up which you can use.
 Don't know if that will solve your problem?

 On Thu, Oct 3, 2019, 6:12 AM Amit Goyal  wrote:

> Hi
>
> We want to create organisation with fixed secret key during openwisp
> start up as we can create superuser during startup .
> Is it possible to do ? Please let me know details .
>
> Thanks
> Amit
>
> --
> You received this message because you are subscribed to the Google
> Groups "OpenWISP" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to open...@googlegroups.com.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/openwisp/feb00a8c-03db-4784-a951-e43d81cd0150%40googlegroups.com
> 
> .
>
 --
>>> You received this message because you are subscribed to the Google
>>> Groups "OpenWISP" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to open...@googlegroups.com.
>>> To view this discussion on the web, visit
>>> https://groups.google.com/d/msgid/openwisp/cb4ed944-aebc-4464-8d37-2596c269ca50%40googlegroups.com
>>> 
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "OpenWISP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to openwisp+unsubscr...@googlegroups.com.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/openwisp/5ba5e7f4-ed0e-4047-a004-21f9e00b09b8%40googlegroups.com
> 
> .
>


-- 
Noumbissi Valere

-- 
You received this message because you are subscribed to the Google Groups 
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to openwisp+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/openwisp/CAOwnGe4AU9_jQTq4tXcq8GOZ8me26rfQRYHaZqUGKPFey8WwWQ%40mail.gmail.com.


Re: [openwisp] Create organisation with fixed seceret key during start of openwisp

2019-10-02 Thread Amit Goyal
Sorry I could not see any ! 

Is there way to create custom organization like create super user with 
below script 

*from django.contrib.auth import get_user_model; User = get_user_model(); 
User.objects.create_superuser('admin', 'ad...@test.com', 'admin')" | 
python3 /home/openwisp/manage.py shell*

On Thursday, October 3, 2019 at 12:09:00 PM UTC+5:30, Noumbissi Valere 
wrote:
>
> Check the *organization* table. You should see a default organization there
>
> On Thu, Oct 3, 2019, 6:42 AM Amit Goyal > 
> wrote:
>
>> Hi Noumbissi
>>
>> Thanks for replying !
>>
>> Where it is created ? I cannot see any default organisation in table 
>> openwisp_users_organization.
>> We want to fixed the secret key for that organisation! 
>>
>> On Thursday, October 3, 2019 at 11:06:00 AM UTC+5:30, Noumbissi Valere 
>> wrote:
>>>
>>> Hello Amit,
>>>
>>> A *default* organization is created at start up which you can use. Don't 
>>> know if that will solve your problem?
>>>
>>> On Thu, Oct 3, 2019, 6:12 AM Amit Goyal  wrote:
>>>
 Hi 

 We want to create organisation with fixed secret key during openwisp 
 start up as we can create superuser during startup .
 Is it possible to do ? Please let me know details .

 Thanks 
 Amit

 -- 
 You received this message because you are subscribed to the Google 
 Groups "OpenWISP" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to open...@googlegroups.com.
 To view this discussion on the web, visit 
 https://groups.google.com/d/msgid/openwisp/feb00a8c-03db-4784-a951-e43d81cd0150%40googlegroups.com
  
 
 .

>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "OpenWISP" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to open...@googlegroups.com .
>> To view this discussion on the web, visit 
>> https://groups.google.com/d/msgid/openwisp/cb4ed944-aebc-4464-8d37-2596c269ca50%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to openwisp+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/openwisp/5ba5e7f4-ed0e-4047-a004-21f9e00b09b8%40googlegroups.com.


Re: [openwisp] Create organisation with fixed seceret key during start of openwisp

2019-10-02 Thread Noumbissi Valere
Check the *organization* table. You should see a default organization there

On Thu, Oct 3, 2019, 6:42 AM Amit Goyal  wrote:

> Hi Noumbissi
>
> Thanks for replying !
>
> Where it is created ? I cannot see any default organisation in table
> openwisp_users_organization.
> We want to fixed the secret key for that organisation!
>
> On Thursday, October 3, 2019 at 11:06:00 AM UTC+5:30, Noumbissi Valere
> wrote:
>>
>> Hello Amit,
>>
>> A *default* organization is created at start up which you can use. Don't
>> know if that will solve your problem?
>>
>> On Thu, Oct 3, 2019, 6:12 AM Amit Goyal  wrote:
>>
>>> Hi
>>>
>>> We want to create organisation with fixed secret key during openwisp
>>> start up as we can create superuser during startup .
>>> Is it possible to do ? Please let me know details .
>>>
>>> Thanks
>>> Amit
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "OpenWISP" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to open...@googlegroups.com.
>>> To view this discussion on the web, visit
>>> https://groups.google.com/d/msgid/openwisp/feb00a8c-03db-4784-a951-e43d81cd0150%40googlegroups.com
>>> 
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "OpenWISP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to openwisp+unsubscr...@googlegroups.com.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/openwisp/cb4ed944-aebc-4464-8d37-2596c269ca50%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to openwisp+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/openwisp/CAOwnGe7ZWJuT2DHgbsaxUOBf5L3VWibS9a%2B7O5wLBXezq_izLg%40mail.gmail.com.


Re: [openwisp] Create organisation with fixed seceret key during start of openwisp

2019-10-02 Thread Amit Goyal
Hi Noumbissi

Thanks for replying !

Where it is created ? I cannot see any default organisation in table 
openwisp_users_organization.
We want to fixed the secret key for that organisation! 

On Thursday, October 3, 2019 at 11:06:00 AM UTC+5:30, Noumbissi Valere 
wrote:
>
> Hello Amit,
>
> A *default* organization is created at start up which you can use. Don't 
> know if that will solve your problem?
>
> On Thu, Oct 3, 2019, 6:12 AM Amit Goyal > 
> wrote:
>
>> Hi 
>>
>> We want to create organisation with fixed secret key during openwisp 
>> start up as we can create superuser during startup .
>> Is it possible to do ? Please let me know details .
>>
>> Thanks 
>> Amit
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "OpenWISP" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to open...@googlegroups.com .
>> To view this discussion on the web, visit 
>> https://groups.google.com/d/msgid/openwisp/feb00a8c-03db-4784-a951-e43d81cd0150%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to openwisp+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/openwisp/cb4ed944-aebc-4464-8d37-2596c269ca50%40googlegroups.com.


Re: [openwisp] Create organisation with fixed seceret key during start of openwisp

2019-10-02 Thread Noumbissi Valere
Hello Amit,

A *default* organization is created at start up which you can use. Don't
know if that will solve your problem?

On Thu, Oct 3, 2019, 6:12 AM Amit Goyal  wrote:

> Hi
>
> We want to create organisation with fixed secret key during openwisp start
> up as we can create superuser during startup .
> Is it possible to do ? Please let me know details .
>
> Thanks
> Amit
>
> --
> You received this message because you are subscribed to the Google Groups
> "OpenWISP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to openwisp+unsubscr...@googlegroups.com.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/openwisp/feb00a8c-03db-4784-a951-e43d81cd0150%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to openwisp+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/openwisp/CAOwnGe5h6i_ZdMfZQS%2BqaQ86pZ9pAb3PO8skvSZrtH4p96joVg%40mail.gmail.com.