Re: [mezzanine-users] displayable_link.js is not generated - development server

2017-01-26 Thread Danny

Hi Lucas,

I've also just noticed that the "Link List" feature is no longer working 
as of Mezzanine 4.2.2 (on either the admin side or the front end) and is 
still broken at HEAD.
It appears to be some ordering error with regards to when 
tinymce_setup.js is executed vs when the scripts in admin/base_site.html 
or editable_loader.html are parsed to set up the window.__link_list_url 
variable.


I've opened this issue: https://github.com/stephenmcd/mezzanine/issues/1728

However, Javascript is not my forte, so debugging this is a little 
beyond me. Hopefully someone else can assist.


[BTW, if you're worried about displayable_links.js not being generated 
properly, just visit admin/displayable_links.js directly - and if it 
returns you a lovely structure of links, then that isn't your issue.]


Best of luck,

Seeya. Danny.

On 25/01/2017 7:32 AM, Lucas Corso wrote:


Hello, I have more or less the same problem that Danny presents at:

--> 
https://groups.google.com/forum/#!searchin/mezzanine-users/displayable_links.js|sort:relevance/mezzanine-users/6ZgJtRF9VWk/6cR6p0cnAwAJ



In my case I'm running mezzanine on a development server, at first I 
thought it was some missing package, but then I realized that the 
problem was that displayable_link.js was not being generated when I 
clicked the link button on the panel Tools to publish.







What has worked so far is what clarifies Danny to delete templates / 
admin / base_site.html and if it works





But some styles are lost in the administration site




Compared to the normal style



What could I do to fix it? Thanks for reading...




--
You received this message because you are subscribed to the Google 
Groups "Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to mezzanine-users+unsubscr...@googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "Mezzanine 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] displayable_link.js is not generated - development server

2017-02-05 Thread Stephen McDonald
Just pushed a fix for this:

https://github.com/stephenmcd/mezzanine/commit/23c15f8b78f440a6a81e686fcd4ef772d44854bd

On Fri, Jan 27, 2017 at 12:08 PM, Danny  wrote:

> Hi Lucas,
>
> I've also just noticed that the "Link List" feature is no longer working
> as of Mezzanine 4.2.2 (on either the admin side or the front end) and is
> still broken at HEAD.
> It appears to be some ordering error with regards to when tinymce_setup.js
> is executed vs when the scripts in admin/base_site.html or
> editable_loader.html are parsed to set up the window.__link_list_url
> variable.
>
> I've opened this issue: https://github.com/stephenmcd/
> mezzanine/issues/1728
>
> However, Javascript is not my forte, so debugging this is a little beyond
> me. Hopefully someone else can assist.
>
> [BTW, if you're worried about displayable_links.js not being generated
> properly, just visit admin/displayable_links.js directly - and if it
> returns you a lovely structure of links, then that isn't your issue.]
>
> Best of luck,
>
> Seeya. Danny.
>
>
> On 25/01/2017 7:32 AM, Lucas Corso wrote:
>
> Hello, I have more or less the same problem that Danny presents at:
>
> --> https://groups.google.com/forum/#!searchin/mezzanine-
> users/displayable_links.js|sort:relevance/mezzanine-
> users/6ZgJtRF9VWk/6cR6p0cnAwAJ
>
>
> In my case I'm running mezzanine on a development server, at first I
> thought it was some missing package, but then I realized that the problem
> was that displayable_link.js was not being generated when I clicked the
> link button on the panel Tools to publish.
>
>
>
>
>
> 
>
> What has worked so far is what clarifies Danny to delete templates / admin
> / base_site.html and if it works
>
>
>
> 
>
> But some styles are lost in the administration site
>
>
>
> 
>
> Compared to the normal style
>
>
> 
>
> What could I do to fix it? Thanks for reading...
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mezzanine-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mezzanine-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Stephen McDonald
http://jupo.org

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] displayable_link.js is not generated - development server

2017-05-29 Thread Lucas Corso
Hi friends, I hope you are well, thanks for your answers.

What I did to make it work was to update the versions of Mezzanine and 
Django:

* Mezzanine 4.2.3
* Django 1.10.6
* Python 2.7.12+
* PostgreSQL 9.6.0
* Linux 4.7.0-1-amd64

So, I'm already generating the displayable_links.js in the development 
environment, but not production, it gives me a 404 error in the url 
http://www-mysite.com/es/admin/displayable_links.js

The production environment is configured with nginx and uwsgi. Could that 
influence something?

As Danny said, if I generate a nice link structure then that is not the 
problem. That was the problem before, but now nothing is generated in 
production.

El domingo, 5 de febrero de 2017, 20:09:41 (UTC-4), Stephen McDonald 
escribió:
>
> Just pushed a fix for this:
>
>
> https://github.com/stephenmcd/mezzanine/commit/23c15f8b78f440a6a81e686fcd4ef772d44854bd
>
> On Fri, Jan 27, 2017 at 12:08 PM, Danny > 
> wrote:
>
>> Hi Lucas,
>>
>> I've also just noticed that the "Link List" feature is no longer working 
>> as of Mezzanine 4.2.2 (on either the admin side or the front end) and is 
>> still broken at HEAD.
>> It appears to be some ordering error with regards to when 
>> tinymce_setup.js is executed vs when the scripts in admin/base_site.html or 
>> editable_loader.html are parsed to set up the window.__link_list_url 
>> variable.
>>
>> I've opened this issue: 
>> https://github.com/stephenmcd/mezzanine/issues/1728
>>
>> However, Javascript is not my forte, so debugging this is a little beyond 
>> me. Hopefully someone else can assist.
>>
>> [BTW, if you're worried about displayable_links.js not being generated 
>> properly, just visit admin/displayable_links.js directly - and if it 
>> returns you a lovely structure of links, then that isn't your issue.]
>>
>> Best of luck,
>>
>> Seeya. Danny.
>>
>>
>> On 25/01/2017 7:32 AM, Lucas Corso wrote:
>>
>> Hello, I have more or less the same problem that Danny presents at:
>>
>> --> 
>> https://groups.google.com/forum/#!searchin/mezzanine-users/displayable_links.js|sort:relevance/mezzanine-users/6ZgJtRF9VWk/6cR6p0cnAwAJ
>>
>>
>> In my case I'm running mezzanine on a development server, at first I 
>> thought it was some missing package, but then I realized that the problem 
>> was that displayable_link.js was not being generated when I clicked the 
>> link button on the panel Tools to publish.
>>
>>
>>
>>
>>
>> 
>>
>> What has worked so far is what clarifies Danny to delete templates / 
>> admin / base_site.html and if it works
>>
>>
>>
>> 
>>
>> But some styles are lost in the administration site
>>
>>
>>
>> 
>>
>> Compared to the normal style
>>
>>
>> 
>>
>> What could I do to fix it? Thanks for reading...
>>
>>
>>
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Mezzanine Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to mezzanine-use...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Mezzanine Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to mezzanine-use...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Stephen McDonald
> http://jupo.org
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] displayable_link.js is not generated - development server

2017-05-30 Thread Lucas Corso
There is an important detail when I raise the project in production with $ 
python manage.py runserver if it works and it generates the 
displayable_links.js but when I lift it with nginx and uwsgi then it fails, 
and it gives 404 in the url. 

Which makes me think that it may not be a source code error if not some 
erroneous or missing configuration.

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] displayable_link.js is not generated - development server

2017-05-30 Thread Stephen McDonald
Generally speaking, all of the content that would appear in
displayable_links.js
is tied to a particular "site" record in the database, and will only be
displayed if the hostname you're accessing the site with in your browser
matches the hostname for the "site" record in the database.

For that to work, you'll need to ensure nginx and uwsgi are correctly
sending the HTTP_HOST header to the Django app, and that the correct host
name is configured in the "sites" section of the admin.

I've never used uwsgi, but you can see where this is configured in the
default nginx config supplied with Mezzanine:

https://github.com/stephenmcd/mezzanine/blob/7bee9d8ca29321ef018a0ea4d5f26c06bb77037f/mezzanine/project_template/deploy/nginx.conf.template#L30


On Tue, May 30, 2017 at 9:54 PM, Lucas Corso 
wrote:

> There is an important detail when I raise the project in production with $
> python manage.py runserver if it works and it generates the
> displayable_links.js but when I lift it with nginx and uwsgi then it fails,
> and it gives 404 in the url.
>
> Which makes me think that it may not be a source code error if not some
> erroneous or missing configuration.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mezzanine-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Stephen McDonald
http://jupo.org

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.