DEBUG = True and Bad Request (400)

2015-09-08 Thread MoonWalker
I am using RB 2.0.19 and  Django 1.6.11.1 

.


1) In settings_local.py I set DEBUG = False2) Restart apache 3) try to 
access my RB page on my browser, but it shows Bad Request (400)
If I put back DEBUG = True everything seems okay. I do not have a clue why 
is doing that

-- 
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 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: DEBUG = True and Bad Request (400)

2015-09-08 Thread Christian Hammond
Hi,

It's possible that Django is blocking the request for security reasons, due
to ALLOWED_HOSTS in conf/settings_local.py not containing the proper list
of valid hostnames for Review Board. It should look something like:

ALLOWED_HOSTS = ['reviews.mycompany.com', 'reviews2.mycompany.com']

See if setting that and restarting Apache takes care of the problem.

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - https://www.reviewboard.org
Beanbag, Inc. - https://www.beanbaginc.com

On Tue, Sep 8, 2015 at 6:02 PM, MoonWalker 
wrote:

> I am using RB 2.0.19 and  Django 1.6.11.1
> 
> .
>
>
> 1) In settings_local.py I set DEBUG = False2) Restart apache 3) try to
> access my RB page on my browser, but it shows Bad Request (400)
> If I put back DEBUG = True everything seems okay. I do not have a clue why
> is doing that
>
> --
> 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
> "reviewboard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to reviewboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: DEBUG = True and Bad Request (400)

2015-09-08 Thread MoonWalker
Christian,

Super! that did the trick. Thank you :-)

On Wednesday, September 9, 2015 at 11:05:03 AM UTC+10, Christian Hammond 
wrote:
>
> Hi,
>
> It's possible that Django is blocking the request for security reasons, 
> due to ALLOWED_HOSTS in conf/settings_local.py not containing the proper 
> list of valid hostnames for Review Board. It should look something like:
>
> ALLOWED_HOSTS = ['reviews.mycompany.com', 'reviews2.mycompany.com']
>
> See if setting that and restarting Apache takes care of the problem.
>
> Christian
>
> -- 
> Christian Hammond - chi...@chipx86.com 
> Review Board - https://www.reviewboard.org
> Beanbag, Inc. - https://www.beanbaginc.com
>
> On Tue, Sep 8, 2015 at 6:02 PM, MoonWalker  > wrote:
>
>> I am using RB 2.0.19 and  Django 1.6.11.1 
>> 
>> .
>>
>>
>> 1) In settings_local.py I set DEBUG = False2) Restart apache 3) try to 
>> access my RB page on my browser, but it shows Bad Request (400)
>> If I put back DEBUG = True everything seems okay. I do not have a clue 
>> why is doing that
>>
>> -- 
>> 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 
>> "reviewboard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to reviewboard...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: DEBUG = True and Bad Request (400)

2016-07-26 Thread Jonathan Haimez
Hi,

how can i use the 0.0.0.0 ip adresse for the ALLOWED_HOSTS?

I want to have fdqn (my.review.compagny) and ip of my server (dynamic).
I can't do that ALLOWED_HOSTS = ['reviews.mycompany.com', 'localhost', 
'22.02.02.02' ]


Le mercredi 9 septembre 2015 03:05:03 UTC+2, Christian Hammond a écrit :
>
> Hi,
>
> It's possible that Django is blocking the request for security reasons, 
> due to ALLOWED_HOSTS in conf/settings_local.py not containing the proper 
> list of valid hostnames for Review Board. It should look something like:
>
> ALLOWED_HOSTS = ['reviews.mycompany.com', 'reviews2.mycompany.com']
>
> See if setting that and restarting Apache takes care of the problem.
>
> Christian
>
> -- 
> Christian Hammond - chi...@chipx86.com 
> Review Board - https://www.reviewboard.org
> Beanbag, Inc. - https://www.beanbaginc.com
>
> On Tue, Sep 8, 2015 at 6:02 PM, MoonWalker  > wrote:
>
>> I am using RB 2.0.19 and  Django 1.6.11.1 
>> 
>> .
>>
>>
>> 1) In settings_local.py I set DEBUG = False2) Restart apache 3) try to 
>> access my RB page on my browser, but it shows Bad Request (400)
>> If I put back DEBUG = True everything seems okay. I do not have a clue 
>> why is doing that
>>
>> -- 
>> 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 
>> "reviewboard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to reviewboard...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.