Git Product home page Git Product logo

main_website's Introduction

This is not the live LCO website software

The LCO website now uses Wagtail, a Django-based CMS. The new repo is called LCO_global

Las Cumbres Observatory Website

This is the project containing the Las Cumbres Observatory website, available online at https://lco.global/.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See the Deployment section of this document for notes on how to deploy the project on a live system.

Prerequisites

Run the application

Please read and customize the provided docker-compose.yml file for your specific database configuration. See the Configuration section of this document for notes on the available configuration options. This example configuration will have the application up and running on port 80.

You can run the current latest available version of this project by running:

$ docker-compose up

If you need to build your own version of this project, you can follow these instructions instead:

$ docker build --pull -t docker.lco.global/mezzanine:latest .
$ docker-compose up

Configuration

This project is configured using environment variables. The available configuration options and their defaults are listed below.

  • DB_HOST - MySQL Database Hostname (default: db.example.com)
  • DB_NAME - MySQL Database Name (default: main_website)
  • DB_USER - MySQL Database Username (default: username)
  • DB_PASS - MySQL Database Password (default: password)
  • SECRET_KEY - Django Secret Key (default: random)
  • EMAIL_USER - SMTP Username (default: None)
  • EMAIL_PASS - SMTP Password (default: None)
  • ADS_TOKEN - Unknown (default: None)
  • ROLLBAR_TOKEN - Unknown: (default: None)

Deployment

This project is intended to be deployed an a Docker orchestration platform, such as Rancher or Kubernetes.

Please read through the Configuration section of this document for notes on the available configuration options. Please set all of the options to values which are known to work for your production environment.

Authors

This project is maintained by the Las Cumbres Observatory staff.

main_website's People

Contributors

fingel avatar jchate6 avatar jnation3406 avatar zemogle avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

main_website's Issues

Science Seminar picture linkage broken

I cannot link pictures to Speaker pages.
ALL pictures from ALL speaker pages have been removed.
Adding new images to the images admin page and then trying to link that to the speaker page breaks the speaker page.

This bug retroactively affects every seminar page that has ever been made.

Seminar pages move from main page to archive before time of talk

I believe that the seminar pages might be moved into archive at the UT time of the talk rather than the local time of the talk. This is problematic for people who might be checking to see what today's seminar is about. I'd like talks to not move into the archive until after the day of the talk. (i.e. if the talk is on 01/15 then the talk remains at the top of the list of seminars until 01/16) I would prefer for this to be local time, but even if this were a UT transition it should still be late enough to not be an issue anymore.

A few Science Seminar page issues

  • The "Back to Science Seminar home -->" link is dead in new (2019) pages. (the href is literally blank) The links on previously made (2018) pages still function. This link should return to the main seminar page.

  • Can we please capitalize "Series" in the main header across the top of all of these pages so that it reads "Seminar Series"?

  • The address is broken at the city/state level and there is no space between CA and 93117. Could this be fixed to be a single line: "Goleta, CA 93117" please?

Seminar page website slug auto-fills incorrect data

I Love that the slug can now be edited. However it pulls from the seminar title which will change and is a bit long in many cases.

It SHOULD pull from the last name and add a incrementing number if the last name matches a previous page.

For example the url should be lco.global/seminar/cartwright/ not lco.global/seminar/the-dark-and-icy-surfaces-of-the-large-moons-of-uranus:-modified-by-system-wide-processes? which is what it would default to if written now.

Mezzanine blocks will not upgrade

When upgrading to Mezzanine 4.0.1 external module mezzanine-blocks fails to register as an app. I suspect this is because it has not been updated for years and Django version has updated. Really the only solution is to find another module or upgrade mezzanine-blocks myself...

Updates to dynamical elements on the Science Seminar page

  • On the main seminar page, list upcoming seminars next -> last from top to bottom
  • On a speaker page change link text to "Return to Science Seminar page" rather than "Science / Science Seminar"
  • Upcoming seminars disappear on the day of the seminar (before their seminar happens).

I am unclear if seminars disappearing early is because seminar times are often 3:30AM rather than 15:30, or what causes this transition. Either way, having the "current seminar" last until end of day Santa Barbara time would be very convenient. I've set the next one for 15:30 as an experiment. I'll try to notice when it disappears from the site.

Broken docker build/admin page

We had an issue today where the admin site for the main website was inaccessible, throwing errors:

raise ValueError("Missing staticfiles manifest entry for '%s'" % clean_name)

When building the image, pip throws the following warnings:

django-contrib-comments 1.9.0 has requirement Django>=1.11, but you'll have django 1.10.8 which is incompatible.
mezzanine 4.3.1 has requirement django<2.1,>=1.11, but you'll have django 1.10.8 which is incompatible.
django-reversion 3.0.2 has requirement django>=1.11, but you'll have django 1.10.8 which is incompatible.

It appears the requirements file doesn't lock the version of mezzanine:

https://github.com/LCOGT/main_website/blob/master/lco_global/requirements.pip#L4

This should probably be changed to install from PyPI, not master.

The container was restarted, and now the admin page is accessible (whitenoise errors are gone)

However, trying to edit a page results in the error:

django.urls.exceptions.NoReverseMatch: Reverse for 'page' not found. 'page' is not a valid view function or pattern name.

Upon further investigation, somehow Django 1.11 is installed in the currently deployed image, even though django is locked to 1.10 in this repo:

https://github.com/LCOGT/main_website/blob/master/lco_global/requirements.pip#L3

Unfortunately, building a docker image from the currently checked out source code results in an image that does not run, so it cannot be deployed. I'm not sure how the current image was built but it looks like the result of local modifications. The main website admin functionality is partially broken, but for fear of totally breaking the whole site, it will remain this way until this can be sorted out, as currently this source code results in a totally broken image.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.