I've tried the four keys below including values for these keys that are 
incorrect just to try and get a different result but is always the same. 
whether I list-siteconfig or try and set 'site_media_url' to '/media/' or 
any other keys, this error below is persistent. Cant seem to get past it.

Interestingly the response says "if set" does that mean I can remove it 
temporarily.



svnadmin@NEO-SVN-SVR:~$ sudo rb-site manage /var/www/reviewboard 
set-siteconfig -- --key=site_media_url --value=/media/
Traceback (most recent call last):
  File "/usr/local/bin/rb-site", line 11, in <module>
    load_entry_point('ReviewBoard==3.0.15', 'console_scripts', 'rb-site')()
  File 
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-3.0.15-py2.7.egg/reviewboard/cmdline/rbsite.py",
 
line 1972, in main
    command.run()
  File 
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-3.0.15-py2.7.egg/reviewboard/cmdline/rbsite.py",
 
line 1881, in run
    initialize()
  File 
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-3.0.15-py2.7.egg/reviewboard/__init__.py",
 
line 114, in initialize
    load_site_config()
  File 
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-3.0.15-py2.7.egg/reviewboard/admin/siteconfig.py",
 
line 294, in load_site_config
    apply_django_settings(siteconfig, settings_map)
  File 
"/usr/local/lib/python2.7/dist-packages/Djblets-1.0.12-py2.7.egg/djblets/siteconfig/django_settings.py",
 
line 326, in apply_django_settings
    setter(settings, setting_key, value)
  File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", 
line 242, in __setattr__
    setattr(self._wrapped, name, value)
  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", 
line 110, in __setattr__
    raise ImproperlyConfigured("If set, %s must end with a slash" % name)
django.core.exceptions.ImproperlyConfigured: If set, MEDIA_URL must end 
with a slash





On Thursday, 11 July 2019 10:36:32 UTC+1, Christian Hammond wrote:
>
> Hi Steve,
>
> You need to set the following using set-siteconfig:
>
> site_media_url=/media/
> site_static_url=/static/
> site_static_root=/var/www/reviewboard/htdocs/static/
> site_media_root=/var/www/reviewboard/htdocs/media/
>
> I think from the example you gave, you're mixing up the site roots and 
> URLs.
>
> Sorry I haven't gotten back to you until now. Our paid support channel 
> takes a lot of my support time these days.
>
> Christian
>
> On Thu, Jul 11, 2019 at 1:56 AM Steve <steve...@gmail.com <javascript:>> 
> wrote:
>
>> Hi Christian,
>>
>> Any thoughts on getting past this error. Can I remove MEDIA_URL and add 
>> it back once I understand the problem.
>>
>>
>>
>> Steve.
>>
>>
>>
>> On Monday, 1 July 2019 10:02:52 UTC+1, Steve wrote:
>>>
>>> Just comes back with the same error message below about " If set, 
>>> MEDIA_URL must end with a slash". Doesn't seem to be able to get past the 
>>> error.
>>>
>>>
>>> Steve.
>>>
>>>
>>>
>>> On Sunday, 30 June 2019 22:53:04 UTC+1, Christian Hammond wrote:
>>>>
>>>> These settings are stored in the database. What’s happening when you 
>>>> run list-siteconfig?
>>>>
>>>> Christian
>>>>
>>>>
>>>> On Sat, Jun 29, 2019 at 01:53 Steve <steve...@gmail.com> wrote:
>>>>
>>>>> The test site I created within 3.0..showed the same as you describe so 
>>>>> I tried /static/ and /media/ but still get the same error message. 
>>>>> Trouble 
>>>>> is I now cant run list-siteconfig on the site i'm upgrading so cant check 
>>>>> other settings for conflicts. What settings should I set that relate to 
>>>>> domain, only I cant see anything in the test site that would give me a 
>>>>> clue. Or are we talking about settings in another file.
>>>>>
>>>>>
>>>>> Steve.
>>>>>
>>>>>
>>>>>  
>>>>>
>>>>> On Saturday, 29 June 2019 05:37:08 UTC+1, Christian Hammond wrote:
>>>>>>
>>>>>> Hi Steve,
>>>>>>
>>>>>> The URL parameters are used to build the URLs to media files. They 
>>>>>> must be a path relative to the domain, or the absolute path to a server 
>>>>>> (CDN) serving the files. You’re going to want to only set the “root” 
>>>>>> equivalents.
>>>>>>
>>>>>> Try setting site_static_url to /static/ and site_media_url to /media/.
>>>>>>
>>>>>> Christian
>>>>>>
>>>>>>
>>>>>> On Thu, Jun 27, 2019 at 05:03 Steve <steve...@gmail.com> wrote:
>>>>>>
>>>>>>> re-set site_media_root and tried again but still the same issue.
>>>>>>>
>>>>>>> re-set site_static_url and then tried site_madia_url but keep 
>>>>>>> getting this back
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>   File 
>>>>>>> "/usr/local/lib/python2.7/dist-packages/Djblets-1.0.12-py2.7.egg/djblets/siteconfig/django_settings.py",
>>>>>>>  
>>>>>>> line 326, in apply_django_settings
>>>>>>>     setter(settings, setting_key, value)
>>>>>>>   File 
>>>>>>> "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", 
>>>>>>> line 
>>>>>>> 242, in __setattr__
>>>>>>>     setattr(self._wrapped, name, value)
>>>>>>>   File 
>>>>>>> "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 
>>>>>>> 110, 
>>>>>>> in __setattr__
>>>>>>>     raise ImproperlyConfigured("If set, %s must end with a slash" % 
>>>>>>> name)
>>>>>>> django.core.exceptions.ImproperlyConfigured: If set, MEDIA_URL must 
>>>>>>> end with a slash
>>>>>>>
>>>>>>>
>>>>>>> svnadmin@NEO-SVN-SVR:/var/www/reviewboard$ sudo rb-site manage 
>>>>>>> /var/www/reviewboard set-siteconfig -- --key=site_media_url 
>>>>>>> --value=/var/www/reviewboard/htdocs/media/
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> can't seem to get a list-siteconfig without the same error.
>>>>>>>
>>>>>>>
>>>>>>> Steve.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Thursday, 27 June 2019 12:17:49 UTC+1, Christian Hammond wrote:
>>>>>>>>
>>>>>>>> You can use the set-siteconfig management command, like so:
>>>>>>>>
>>>>>>>>     rb-site manage $sitedir set-siteconfig -- --key=site_media_root 
>>>>>>>> --value=...
>>>>>>>>
>>>>>>>> Note the -- before the first flag. This is currently necessary for 
>>>>>>>> ensuring the arguments are passed to set-siteconfig and not rb-site.
>>>>>>>>
>>>>>>>> Christian
>>>>>>>>
>>>>>>>>
>>>>>>>> -- 
>>>>>>> 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 revie...@googlegroups.com.
>>>>>>> To view this discussion on the web visit 
>>>>>>> https://groups.google.com/d/msgid/reviewboard/b0436597-3995-4349-ad4a-15b8d28615dd%40googlegroups.com
>>>>>>>  
>>>>>>> <https://groups.google.com/d/msgid/reviewboard/b0436597-3995-4349-ad4a-15b8d28615dd%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>>> .
>>>>>>> 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 revie...@googlegroups.com.
>>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/reviewboard/74f2e570-c63a-49d0-a80f-e39966539536%40googlegroups.com
>>>>>  
>>>>> <https://groups.google.com/d/msgid/reviewboard/74f2e570-c63a-49d0-a80f-e39966539536%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>> 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 revie...@googlegroups.com <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/reviewboard/0de14872-b497-40e8-8b6d-1afb1541fe75%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/reviewboard/0de14872-b497-40e8-8b6d-1afb1541fe75%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/56969485-3e66-42f4-a42b-8ff5d90206b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to