Git Product home page Git Product logo

Comments (2)

QuentinBibas avatar QuentinBibas commented on September 27, 2024

HI!

I'm having the same issue / error on a fresh install.
Tried with both Django 2.2.10 and 2.2.13
How did you manage to get it to work ?

Just tried changing urls.py as per suggested in this stackoverflow post : https://stackoverflow.com/questions/47065438/attributeerror-module-django-contrib-auth-views-has-no-attribute
I could get it to install and run It seems. Testing functionality once I've set it up.

Ok, It's mostly functionnal. The only thing that's not is the MATTERLLO_HOST definition which does nothing.
The server seems to start only on localhost, which isn't compatible with an install after a seperate reverse proxy.
Couldn't determine if manually starting the server on a specific IP/NIC was the cause or not.

It seems that MATTERLOO_HOST works, up to a point.
the "login to trello" buton still wants to use the server IP as the referer. Manually changing the link to my domain name works.

here is my edited matterllo/urls.py file :

# -*- coding: utf-8 -*-
from django.conf.urls import url, include
from django.contrib import admin
from django.contrib.auth import views as auth_views
from django.contrib.auth.views import LoginView
from django.contrib.auth.views import LogoutView

urlpatterns = [
    url(r"^login/$", LoginView.as_view(), name="login"),
    url(
        r"^logout/$", LogoutView.as_view(), {"next_page": "/login"}, name="logout"
    ),
    url(r"^admin/", admin.site.urls),
    url(r"^", include("core.urls")),
]

Also, I've set up automatic launch via systemd :

  • first with a shell script positionned into /etc, the matterllo directory being moved into /etc as well
export MATTERLLO_HOST="my.matterllo.host"
python3 /etc/matterllo/manage.py runserver IP.IP.IP.IP:PORT > /var/log/matterllo.log

then, a matterllo service file (/lib/systemd/system/matterllo.service) containing

[Unit]
Description=Matterllo
After=network.target network-online.target

[Service]
Type=simple
User=root
Group=root
Restart=always
ExecStartPre=/bin/mkdir -p /var/run/matterllo
PIDFile=/var/run/matterllo/service.pid
ExecStart=/bin/sh /etc/matterllo.sh

[Install]
WantedBy=multi-user.target

from matterllo.

Lujeni avatar Lujeni commented on September 27, 2024

Hey thanks for the issue.
I'll take a look this week end and fix the issues.

I'm going to take this opportunity to do a little housework (cleanup, fix and kubernetes deployment)

from matterllo.

Related Issues (20)

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.