Hi Christian.

I kind of fixed it already, so no log can be provided for now... Sorry for 
that.


But my point is, I just followed what's written on the manual page, it is 
not actually working?

Quote from 
https://www.reviewboard.org/docs/manual/3.0/extending/extensions/configuration/
:


This file follows the Django URLs 
<http://django.readthedocs.io/en/1.6.x/topics/http/urls.html> format. It 
must provide a urlpatterns variable, which will contain all the URL 
patterns. For example:

from django.conf.urls.defaults import url
from sample_extension.views import my_configure

urlpatterns = [
    url(r'^$', my_configure),]



MZZ


Christian Hammond於 2018年4月15日星期日 UTC+8下午11時34分38秒寫道:
>
> Yeah, the import doesn't work, but our code isn't doing that import. Do 
> you have a full stack trace of the error I can see?
>
> Christian
>
> On Sun, Apr 15, 2018 at 8:32 AM, Meng-Zhe Zhang <mengzh...@gmail.com 
> <javascript:>> wrote:
>
>> Hi Christian
>>
>> I am using the bitnami reviewboard stack 3.0.5, which uses Django version 
>> 1.6.11.
>>
>> If I type in the import command in python prompt, it'll be like:
>>
>> >>> from django.conf.urls.defaults import url
>> Traceback (most recent call last):
>>   File "<stdin>", line 1, in <module>
>> ImportError: No module named defaults
>> >>> from django.conf.urls import url
>> >>> 
>>
>>
>> And I'll give that setting a look. Thank you for answering.
>>
>> MZZ
>>
>> Christian Hammond於 2018年4月15日星期日 UTC+8上午8時11分19秒寫道:
>>>
>>> Hi,
>>>
>>> What version of Django do you have installed? And can you confirm the 
>>> version of Review Board? That error does not seem right.
>>>
>>> The log location can be customized in Logging Settings.
>>>
>>> Christian
>>>
>>>
>>> On Sat, Apr 14, 2018 at 14:51 Meng-Zhe Zhang <mengzh...@gmail.com> 
>>> wrote:
>>>
>>>> Dear all:
>>>>
>>>> Hi. I recently tried to add a configuration page to an old reviewboard 
>>>> extension.
>>>>
>>>> 1. 
>>>> I followed the steps in the extension configuration page:
>>>>
>>>> https://www.reviewboard.org/docs/manual/3.0/extending/extensions/configuration/
>>>>
>>>> and had a "*500 Internal server error*" instantly.
>>>>
>>>> After some debugging, it's caused by incorrect import path. What's on 
>>>> the document is
>>>>
>>>> *from django.conf.urls.defaults import **url*
>>>>
>>>> and it should be 
>>>>
>>>> *from django.conf.urls import **url*
>>>>
>>>> Maybe it's from older version of django?
>>>>
>>>>
>>>>
>>>> 2.
>>>> The debugging flow in (1) was a little bit painstaking, because I don't 
>>>> know where the error logs are.
>>>>
>>>> Sometimes a field set just disappeared, and I don't know which of them 
>>>> went wrong.
>>>>
>>>>
>>>> So, where is the place that reviewboard put its log? 
>>>>
>>>>
>>>>
>>>> Thanks for answering.
>>>>
>>>> MZZ
>>>> 2018/04/15
>>>>
>>>> -- 
>>>> 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.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>> -- 
>>> -- 
>>> Christian Hammond
>>> President/CEO of Beanbag
>>> Makers of Review Board
>>>
>> -- 
>> 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 <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Christian Hammond
> President/CEO of Beanbag <https://www.beanbaginc.com/>
> Makers of Review Board <https://www.reviewboard.org/>
>

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

Reply via email to