Re: test_ldap_auth_backend.py in 4.0.10 - DJANGO_SETTINGS_MODULE ?

2022-12-16 Thread Shubha Ramani
I have cloned the 4.x repo.
Then simply from within the repo running python  
 reviewboard\accounts\tests\test_ldap_auth_backend.py
What do you mean set up a development environment ?

Shubha

On Friday, December 16, 2022 at 1:52:45 PM UTC-8 David Trowbridge wrote:

> How are you running the tests? Have you set up a development environment?
>
> David
>
> On Fri, Dec 16, 2022 at 1:22 PM Shubha Ramani  wrote:
>
>> Using Python 3.7 and installed all the dependencies including django 1.11
>> I am trying to run test_ldap_auth_backend.py and keep getting the error:
>> django.core.exceptions.ImproperlyConfigured: Requested setting 
>> DEFAULT_INDEX_TABLESPACE, but settings are not configured. You must either 
>> define the environment variable DJANGO_SETTINGS_MODULE or call 
>> settings.configure() before accessing settings.
>>
>> I have tried 'reviewboard.settings' and 
>> 'test_ldap_auth_backend.settings'. 
>> When I use the latter I get 
>> ImportError: cannot import name 'User' from 'django.contrib.auth.models' 
>> (C:\Users\shramani\PY37_VENV\lib\site-packages\django\contrib\auth\models.py)
>>
>> Thanks,
>>
>> Shubha
>>
>> -- 
>> Supercharge your Review Board with Power Pack: 
>> https://www.reviewboard.org/powerpack/
>> Want us to host Review Board for you? Check out RBCommons: 
>> https://rbcommons.com/
>> Happy user? Let us know! https://www.reviewboard.org/users/
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Review Board Community" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to reviewboard...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/reviewboard/f8e96031-528f-4e84-856c-33340e39f51fn%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/da3b4e10-d985-49d8-9eec-9ea55d6d2771n%40googlegroups.com.


Re: test_ldap_auth_backend.py in 4.0.10 - DJANGO_SETTINGS_MODULE ?

2022-12-16 Thread David Trowbridge
How are you running the tests? Have you set up a development environment?

David

On Fri, Dec 16, 2022 at 1:22 PM Shubha Ramani 
wrote:

> Using Python 3.7 and installed all the dependencies including django 1.11
> I am trying to run test_ldap_auth_backend.py and keep getting the error:
> django.core.exceptions.ImproperlyConfigured: Requested setting
> DEFAULT_INDEX_TABLESPACE, but settings are not configured. You must either
> define the environment variable DJANGO_SETTINGS_MODULE or call
> settings.configure() before accessing settings.
>
> I have tried 'reviewboard.settings' and 'test_ldap_auth_backend.settings'.
> When I use the latter I get
> ImportError: cannot import name 'User' from 'django.contrib.auth.models'
> (C:\Users\shramani\PY37_VENV\lib\site-packages\django\contrib\auth\models.py)
>
> Thanks,
>
> Shubha
>
> --
> Supercharge your Review Board with Power Pack:
> https://www.reviewboard.org/powerpack/
> Want us to host Review Board for you? Check out RBCommons:
> https://rbcommons.com/
> Happy user? Let us know! https://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google Groups
> "Review Board Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to reviewboard+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/reviewboard/f8e96031-528f-4e84-856c-33340e39f51fn%40googlegroups.com
> 
> .
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/CAFS3VNV2L9aQmwKXnApGXu4ysk82hj%3DixkePwC7PjHyw-7c%2BuA%40mail.gmail.com.


test_ldap_auth_backend.py in 4.0.10 - DJANGO_SETTINGS_MODULE ?

2022-12-16 Thread Shubha Ramani
Using Python 3.7 and installed all the dependencies including django 1.11
I am trying to run test_ldap_auth_backend.py and keep getting the error:
django.core.exceptions.ImproperlyConfigured: Requested setting 
DEFAULT_INDEX_TABLESPACE, but settings are not configured. You must either 
define the environment variable DJANGO_SETTINGS_MODULE or call 
settings.configure() before accessing settings.

I have tried 'reviewboard.settings' and 'test_ldap_auth_backend.settings'. 
When I use the latter I get 
ImportError: cannot import name 'User' from 'django.contrib.auth.models' 
(C:\Users\shramani\PY37_VENV\lib\site-packages\django\contrib\auth\models.py)

Thanks,

Shubha

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/f8e96031-528f-4e84-856c-33340e39f51fn%40googlegroups.com.