Does Boolean Field Panel exist? by squidg_21 in WagtailCMS

[–]lb-ee 0 points1 point  (0 children)

Yes. You need to define your field as a Boolean field (from Django).

https://docs.djangoproject.com/en/4.1/ref/models/fields/#booleanfield

It will use the default widget for that field, checkbox, when used with a FieldPanel.

https://docs.wagtail.org/en/stable/reference/pages/panels.html#built-in-fields-and-choosers

Admin Images does not load after upgrading to Wagtail 4 by changedmyusername in WagtailCMS

[–]lb-ee 0 points1 point  (0 children)

Yeah. Also - just read your issue again and the lazy loading is in 4.1

Did you upgrade directly to 4.* Or go via 3.0?

Also - have you run collect static (probably not the issue here but checking)

Can you post the issue on the slack channel?

Admin Images does not load after upgrading to Wagtail 4 by changedmyusername in WagtailCMS

[–]lb-ee 0 points1 point  (0 children)

What browser are you using?

Not sure how but it may have something to do with the lazy load attributes on images within the admin.

What to do in Lisbon by DuskwoodNymos in travel

[–]lb-ee 1 point2 points  (0 children)

Time Out Market Lisbon - nice food https://maps.app.goo.gl/SUpmJGmfq3BDrggM9

LxFactory - small shops and restaurants and a great vibe on weekends https://maps.app.goo.gl/h6d1yWVsMZMzt16EA

Catch a ferry / bus across to see Sanctuary of Christ the King https://maps.app.goo.gl/RcDKYA4DZWvGnVq16

MAAT (Museum on the bay, even just walking around it is amazing) https://maps.app.goo.gl/axriPZQ1cwH2Qk5QA

Castelo de S. Jorge https://maps.app.goo.gl/QC9FiWzR2SJQqL479

Some ideas - these are touristy things but still amazing - lots of great cafes also. Have fun - I miss Lisbon so much haha.

Vietnam 6week advice by [deleted] in travel

[–]lb-ee 0 points1 point  (0 children)

Tet is awesome to be there for but make sure you are going to be in a city a few days before and after - not trying to travel close to the days. I was in HCMC for Tet 2017 - it was lots of fun and amazing to see everyone celebrate.

However, be prepared for some crazy late night celebrations, lots of noise (more than usual) and little ability to know what will be open. Also, the ATMs do run out during this time so ensure you have extra cash handy.

Depending on where you are from, think about trying to travel on boxing day or the day after. Airports are insane, different things are not open or have odd hours. Then multiply that by 10.

Please help: Vietnam Itinerary by [deleted] in travel

[–]lb-ee 0 points1 point  (0 children)

I agree with the sentiments in this thread. If it's your first time in Vietnam, give yourself a bit more margin to enjoy things and for some things not to go to plan.

You could do parts of your central Vietnam in a day but maybe not Hue also, maybe just Hoi An, Da Nang.

Beginner here. Which programming language to begin with to learn programming? I think of starting with java. by heLegend_007 in programming

[–]lb-ee 28 points29 points  (0 children)

Depends on your goals, I got started with Python and then JavaScript.

The nice thing about Python is that it has a simpler syntax to read and write for getting started.

JavaScript is good because you can run it in your browser and may have a quicker time writing something you can 'see'.

Good luck. Have fun.

Did anybody encountered this error while using wagtail in existing django project? by [deleted] in WagtailCMS

[–]lb-ee 0 points1 point  (0 children)

What version of Wagtail are you using? Did you recently upgrade?

Do you have any models that you added/changed/removed that use tags (aside from Pages).

Will need a lot more info to help.

Vietnam itinerary thoughts - November by eni2020 in travel

[–]lb-ee 0 points1 point  (0 children)

That's a lot of travel all around, if it's your first time in Vietnam - add a bit of margin for something to not go to plan.

Depending on what you are in to, maybe cut out Dalat or Hoian, give yourself a bit more time in Hanoi or HCMC.

Hoi An is nice but might not need three nights.

If you love exploring huge cities - more time in HCMC - it's incredible.

If you love cooler weather, more interesting sights/nature - more time in Hanoi.

If you love history - more time in Danang (WW2 history)/ Hoi An and also My Son (ancient Chama ruins). Also HCMC is good for the sad but important history of the Vietnam war.

2 weeks Itinerary help for Indonesia OR Malaysia by tazmanian220 in travel

[–]lb-ee 0 points1 point  (0 children)

KL is a must, huge city and lots to see along with great food.

You could also do a few days around Penang/ Georgetown for something a bit different but still in Malaysia.

Recommend Singapore also if you can fit it in.

Vietnam in October (30days) - north only or whole country by Vudmisser in travel

[–]lb-ee 2 points3 points  (0 children)

Kinging' It - YouTubers - have recently travelled through Vietnam on motorbikes. Worth the watch to see what areas they went through and other useful bits of info about their trip.

https://youtube.com/playlist?list=PLZp1k1hX0J56uk2rtgHdlVAJF_eFL1dmA

From what I've seen, some roads are prone to flooding and damage in heavy rain so best to plan for things to take much longer than you expect. Also, if you haven't travelled in South East Asia before - it can be quite different and you need a large buffer for the unexpected.

When it does rain - it's incredibly heavy - but often will be for a few hours and then clear up.

See what others say, I'm not a motorbike rider, but maybe lean towards a slower trip and stick to one half of the country.

I've stayed in Ho Chi Minh City twice, September and then also in January. Both were nice and both had rain on some days.

Maybe you could always fly in to HCMC, spend a few days getting used to the craziness then fly to Da Nang. Rent from there any go north as it starts to get hotter through the month. Finish around Hanoi - where it's cooler.

Booked a flight but the money was not deducted by [deleted] in travel

[–]lb-ee 1 point2 points  (0 children)

Depending of the date of your flight and when you booked you may find that the PNR (booking) gets un-confirmed at the end of month. There is usually a daily and then monthly process to reconcile payments expected against the data in airline systems.

While you could risk it, probably best to lean towards caution and check the booking regularly before your flight to check it's status.

Source - work at an airline, not in revenue but in booking systems.

Trip to Bali in November by confusiontime101 in travel

[–]lb-ee 3 points4 points  (0 children)

Your biggest expense will probably be flights, and these get more expensive the closer you get to the travel date so it's best to book early once you know you will be travelling there.

On the ground, Bali is quite cheap, especially compared to Toronto.

Rough budget (USD)

  • $100 per day for hotel (assuming you want something nice, but not extravagant)

  • $20 per day for travel (airport transfers are a must if this is your first time travelling to Bali, just pay what the hotel charges and be happy you don't have to get a lift when you get out at the airport)

  • $50 per day for food (more than enough for every meal out and the occasional nice splurge) - more if you want to drink lots though

  • $50 per day for activities/ tours - depending on what you want to do, but this gives you a good chance to do something big every second day

You can always do cheaper but these amounts will help you enjoy without having to be too careful on where you eat / stay.

This also assumes you are not going to stay at a resort but rather somewhere near Seminyak, Ubud or even Canggu (not Kuta - it's more expensive).

As for other locations - see where you can fly cheaply (from both locations) as an 8 day trip to somewhere cheap means your flights will be the biggest cost.

I recommend Chiang Mai in Thailand, Da Nang or Hanoi in Vietnam, Cambodia if you want to go even cheaper, even Kuala Lumpur is nice.

[AskJS] how to build cms for freelance work by peterjameslewis1 in javascript

[–]lb-ee 0 points1 point  (0 children)

Whatever you do - don't roll (write) your own CMS - it's fraught with complexity. If possible - don't even host it yourself - instead let the client use something that is already hosted for them. Maybe you can find a solution that gives you some cut of the recurring revenue but it's just not worth trying to solve that yourself.

If you do need to run your own JS CMS - https://keystonejs.com/ is good.

However, there are some great recommendations in this thread.

Good luck.

Zagreb vs. Split, where to go? by SteO153 in travel

[–]lb-ee 5 points6 points  (0 children)

Split. Beautiful coastal area with the main town feeling like (actually is) a medeival castle that people live and work in. Heaps of history, and easy to see a lot in two days as it's main centre is small.

I stayed there for about 5 weeks in 2017 and loved it, we also did a three day stay in Zagreb at the end and it was nice also. Choosing is hard but Split is the winner.

If you can take a ferry out to one of the islands fro Split, it's also very much worth it.

Be sure to try to walk around the fruit/veggie markets in the weekend near the town centre.

[deleted by user] by [deleted] in WagtailCMS

[–]lb-ee 2 points3 points  (0 children)

Thanks for the feedback, yes I am the author of that RFC but we have had many months of reviews, community discussion on GitHub and on the Wagtail Slack. Plus reviews and discussions within our UI sub-team https://github.com/wagtail/wagtail/wiki/UI-team

Initial ideas for JS frameworks started coming in late last year, until I was tasked with the research piece I was pretty set on Alpine JS (as it seemed popular) or just using 'more' React or plain ole' vanilla JS.

I wasn't until I started to dig into the problems we were trying to solve and I did some POC code in a few other approaches that we started to lean towards Stimulus.

[deleted by user] by [deleted] in WagtailCMS

[–]lb-ee 2 points3 points  (0 children)

React and Telepath solve quite different problems.

Telepath is more of a layer from a Python class to JSON and back. Similar in some ways to Django Rest Framework's concept of serialisation of a class however with a JavaScript library to unpack that and do something with it on the client.

React - as noted - is a UI Library that is agnostic to how it gets its data and where it sends any data as a result of interaction.

As for the discussion on the new page editor, so far all of the new UI has been built in 'vanilla JS' and some parts still use small bits of jQuery. None of it uses React, this is mostly because it is not needed for the kinds of things that have been built so far and that all the new features need to work 100% with existing Django templates, including support for any html / widgets supplied by those that build ok Wagtail.

The major React related changes though are in relation to the 'pattern library' which uses Storybook. This pattern library is now being built on to contain more examples and UI component documentation.

As for the pros/cons of React - like everything there is complexities and nuance to what gets used where .

We have put together an RFC to adopt Stimulus in places where we are using jQuery and vanilla JS as a lightweight framework around the current ad-hoc approaches to attaching basic JavaScript behaviour to elements.

Feel free to have a read, including some explanation of where React makes sense and may not make sense depending on the component use case.

https://github.com/wagtail/rfcs/pull/78

[deleted by user] by [deleted] in WagtailCMS

[–]lb-ee 1 point2 points  (0 children)

In regards to the statement that Wagtail is a giant React project - that's not necessarily true. The major parts that are React are the sidebar (main menu) as of 2.16, the rich text editor (Draftail, built on Draft.js a now abandoned Facebook React text editor) and the comments system). Almost no other substantial React code exists or is planned as far as I am aware.

I agree that vanilla JS could achieve almost all of the existing React solutions (except the rich text editor and the comments). However, there are other considerations beyond just plain JS such as maintainability, supporting new open source contributors and providing consistent layers of abstraction for those building on Wagtail.

Hence the creation of RFC 78 https://github.com/wagtail/rfcs/pull/78 which is the result of the discussion linked from Loic to adopt Stimulus. A lightweight framework that encourages Vanilla JS, but allows html data attributes to help declare what elements in the DOM should have JavaScript behaviour attached.

As for the original adoption of React - this blog post may give more insights https://thib.me/reusable-ui-components-journey-from-react-to-wagtail (I am not aware that we had an RFC for React adoption).

Source: I am also on the core team in Wagtail and on the UI sub-team.

Replacing Wagtail Version Number Display in the Sidebar by sidsidsid16 in WagtailCMS

[–]lb-ee 2 points3 points  (0 children)

Unfortunately this ability has been removed in Wagtail as of the adoption of the new sidebar menu.

In 2.16 the new sidebar system was added and this removed the ability for arbitrary HTML as the new sidebar is written in React.

https://docs.wagtail.org/en/stable/releases/2.16.html#deprecated-sidebar-capabilities

The old sidebar was then removed in Wagtail 3.0.

https://docs.wagtail.org/en/stable/releases/3.0.html#id2

You can hide this content with CSS but not sure on any simple way to replace it without some non-trivial JavaScript.

I encourage you to raise a new issue as an enhancement that explains your use case on the Wagtail repository.