Giter Site home page Giter Site logo

mtlpy / mtlpyweb Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 8.0 8.08 MB

Website of Montréal-Python

Home Page: https://montrealpython.org/

License: Apache License 2.0

Python 9.23% HTML 9.28% CSS 35.57% JavaScript 10.03% Dockerfile 0.06% SCSS 35.82% Procfile 0.02%
django docker pipenv python3

mtlpyweb's People

Contributors

agrant3d avatar dependabot[bot] avatar deuxpi avatar ellmetha avatar hadrien avatar merwok avatar mlhamel avatar nilovna avatar pior avatar rgeoghegan avatar ygingras avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mtlpyweb's Issues

Manage user accounts

https://github.com/mtlpy/mtlpy-django-abandoned/issues/5

  • Change the admin password
  • Create 2 groups:
    • "authors" people that will have access to adding and editing blog posts
    • "members" people that will have the same rights as authors and will also appear on the web site.
  • Assign the correct role to the existing users and create any missing users.
  • Set the accounts as inactive. And activate them once they are ready to write a blog.

Force https for /admin

The /admin site only works under http (https://mtlpy.org leads nowhere). Despite Heartbleed, it would be handy to not send our passwords out on cleartext. Do the following:

  1. Generate a self-signed certificate and dump it in the mtlpy keepass. No need to buy one since we can share it with the admins.
  2. Hack the nginx config so that any requests to /admin require https
  3. Of course, set up https in nginx with the self-signed certificate

Change GA tracker from gtag.js to analytics.js

The GA js lib has been updated to gtag.js.

  • This lib provides complex (tags?) tracking features we don't use.
  • It also uses analytics.js under the hood

We should directly use analytics.js to remove a round-trip.

gray_thumbnail doesn't work properly

For new sponsors it just failed at generating their gray logo, means i had to hack something for our latest sponsor and i can't make it work either with yuldev logo...

:(

Migrate to heroku

Description

We want to migrate our website to heroku.

TODO

To do that we needs to:

  • Setup a free account on heroku
  • Build a empty and working website on heroku
  • Migrate data from the old website
  • Make the current media working
  • Find a better solution for media in the long term

And then we'll needs

  • Migrate to a full account/organization heroku

Enforce usage of mtlpy.org with HTTP redirect

We bought mtlpy.org to get nicer (easier to type/recognize) URLs.

Should we enforce its usage though HTTP redirects?

  • Old and new montrealpython.org URLs would still work
    • montrealpython.org/foobar -> mtlpy.org/foobar

Update navigation bar

  • replace Blog link by Events link
  • remove Calendar page
  • lang link in the nav bar
  • admin link -> the cog

django.template.base.TemplateSyntaxError in sponsor_details

Error in MTLPY Web

django.template.base.TemplateSyntaxError in sponsor_details
'markup' is not a valid tag library: Template library markup not found, tried django.templatetags.markup,localeurl.templatetags.markup,django.contrib.staticfiles.templatetags.markup,django.contrib.admin.templatetags.markup,django.contrib.comments.templatetags.markup,django.contrib.flatpages.templatetags.markup,django_extensions.templatetags.markup,sorl.thumbnail.templatetags.markup,mtlpy.templatetags.markup,mtlpy.pages.templatetags.markup,pagination.templatetags.markup

View on Bugsnag

Stacktrace

mtlpy/views.py:89 - sponsor_details

View full stacktrace

wiki.montrealpython.org leads to the django site

The nginx config (at conf/website-prod.nginx) accepts connections to wiki.montrealpython.org, and passes them to django. I added wiki.montrealpython.org to the allowed hosts environmental variable, so django will take it, but it really shouldn't.

Keep Discus or Remove it?

Do we really need comments on the website, when we have so many communication channels?

Slack, Meetup, Facebook, Linkedin, Tweeter ...

@mtlpy/mtlpyweb

Terminate VPS

Tasks:

  • Backup wiki content (@merwok)
  • Last-chance DB backup
  • request the service termination

Fix the video section

Original issue: https://github.com/mtlpy/mtlpy-django-abandoned/issues/25
Right now we are parsing at each reload the feed from youtube but it only give us the most popular videos.

We should find a way to get all the videos or to create a model which will allow us to save videos links in the db and associated them with the following fields:

  • Title
  • Description
  • Event (MP40, 41, 42, 43, 44, ...)
  • Speaker(s)

We should group those videos by event in the model and maybe associated them with the blog post.

Use real user instead of root to run website

Right now, the code and the virtualenv belongs to root, because gunicorn runs as root before forking to the nobody user. If we could get a user specifically for the website, we could add our ssh keys to it and have a script to do one click deploy.

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.