Hi Pradeep,

You'll need to follow the guide on writing, packaging, and loading
extensions. This will have to be written as a packaged, loadable extension,
which will be enabled through Review Board. It won't work as a standalone
script, since it won't be running within the context of Review Board.

Christian


On Tue, Dec 20, 2016 at 07:17 pradeep kumar <[email protected]> wrote:

> Hello There,
>
> As
> https://www.reviewboard.org/docs/manual/2.5/extending/extensions/hooks/admin-widget-hook/,
> I was trying to add a widget to my reviewboard admin dashboard.
>
> Review Board 2.5.7
> Python Version 2.7.5
> django Version (1, 6, 12, 'alpha', 0)
> OS Version :
> Linux centos72_base 3.10.0-327.10.1.el7.x86_64 #1 SMP Tue Feb 16 17:03:50
> UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
>
>
> When I try to run above example code, I got the following output :
>
> >>> import os
> >>> os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'reviewboard.settings')
> 'reviewboard.settings'
> >>> from django.utils.translation import ugettext_lazy as _
> >>> from reviewboard.admin.widgets import Widget
> Unable to import settings_local.py: No module named settings_local
>
> Please see https://www.reviewboard.org/docs/manual/dev/admin/
> for help setting up Review Board.
>
>
> Could anyone please help me here and please provide detailed step-by-step
> process (1. Where I need to keep my python script, 2. Where I need to run
> my python script, 3. How to verify my widget is working or not, 4. Do I
> need to restart reviewboard server etc.,) to create a new custom widget on
> my reviewboard admin dashboard page? Sorry I am new to django framework.
> Appreciate your timely response.
>
>
> Thanks & Regards
> Pradeep Kumar
>
>
>
>
>
>
>
>
>
>
> --
>
>
> 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 [email protected].
>
>
> 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to