- 04 Apr, 2018 8 commits
-
-
BERJON Matthieu authored
I updated the django_site table data in order to have a proper name for the declared site (in the current context the name is A||go). Because it's used by default the authentification and registration plugin to generate emails. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
I added in the base template the possibility to display any type of message returned by Django to the user. I added as well the jquery library to be able to remove selected messages if the user wants. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
I changed the url for the authentification and registration in order to fit the legacy rails app. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
I updated the webapps table in order to put all null values to 0 (meaning public and it corresponds to what have been done in the rails app). I changed as well the field to not accept any null values and use a default to 1 (private) if nothing is specified by the user. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
I updated the webapp model and view in order to display only the public applications. I changed the model to not accept any null value and force the default to 1 (private). Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
I added a type of macro in the header template in order to get an active link on the current page. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
I updated the webapp detail view in order to display the information according the its docker name. I updated the url naming to fit the original allgo app. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
I added a uniqueness constraint of the field docker_name in the table webapps because two equivalent same names shouldn't exist in the database. I took the advantage of this change to update the file by removing too many calls and cleaning the file. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
- 03 Apr, 2018 10 commits
-
-
BERJON Matthieu authored
I added the allauth migration for authentification and registration to the SQL table. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
I added and configured the allauth backend for authentification and registration. At the moment the system doesn't manage oauth2 authentification. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
I decided to use django-allauth for authentification because by default it proposes both registration and oauth2. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
For some specifics tasks Django needs a table called django_site. It's necessary for the authentification third party system that we use allauth. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
I created the accounts application and moved everything that was in the main application related to the login/logout/register there. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
I stopped tracking the migrations because at the moment we don't need to because start from a fresh installation not deployed. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
I updated some paths related to the naming of the module in the django apps. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
I renamed the poc module into main for clarity. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
Related to the previous commit, I changed the configuration system and I deleted the old settings architecture. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
I decided to perform something a bit more simpler than what is suggested in Django best practices for configuration (having a base configuration file extended for local, staging and production. I now have a single configuration file setup for production. I overwrite it using environment variables that I load with the virtual environment. If the secret key isn't loaded then we consider that we are in production environment and must load a .env file located at the root of the program. There are 2 mandatory environment variables: - ALLGO_SECRET_KEY - ALLGO_DATABASE_PASSWORD The documentation reference all the environement variables available. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
- 30 Mar, 2018 1 commit
-
-
BERJON Matthieu authored
I updated the container in order to correct several bugs regarding nginx and writing permissions. I added the use of supervisor and gunicorn. I'm using as well Debian Stretch because Jessie doesn't have up to date packages for django and gunicorn. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr> Add of production config I added a production config file for the Django app and updated the wsgi configuration to run in production. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
- 29 Mar, 2018 7 commits
-
-
BERJON Matthieu authored
I updated the redirection according to the right namespace I gave before. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
I stopped tracking the migration files because we changed the migration system by using an SQL migration file. At the moment only the initial migration is done on Django, no particular improvements build on the top of it are necessary at the moment. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
I forgot to finish all the namespace updates and redirection for login and signup. It's not fixed. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
I updated the model to remove the `private`field of the table `dj_webapps`. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
I got rid of the `private` field in the table `dj_webapps`. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
I ordered the list of the apps by descending creation date. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
I added a detailed view for each app. I updated the urls accordingly in the webapp list view. I added as well a name space for the poc app and updated the main menu template accordingly. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
- 28 Mar, 2018 11 commits
-
-
BERJON Matthieu authored
I added all the files necessary to handle user registration as well as password change. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
I put the pagination system in its own template and include it wherever necessary. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
I updated the title tag. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
I added the job list for every registered user. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
I deleted the users view that was here just for a test purpose. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
I updated the webapp list by: - Creating a paginated url to apps/ - Create a class based view - Create a paginated template with cards There are several things that need to be corrected such as the pagination if many pages are created and card images. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
I added a simple signup page. It still needs some work on it such as the place of the password policy and a reset password link. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
A bug was found in the user database. A missing auto_autocrement constraint was preventing the creation of new user by always using the same ID 0. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
At the moment, we decided to remove all unecessary css and keep only the HTML architecture with bootstrap structure. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
I updated the Dockerfile as well as the nginx config and the django application deployement. There are still issues such as the `/vol/nginx` doesn't exist for some unknown reasons making nginx refusing to launch. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
In order to perform the deployement I updated few things. All python commands are replaced with python3 to force the use of them. I updated as well the SQL migration path to ensure that it will be run wherever the script is executed. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
- 27 Mar, 2018 3 commits
-
-
BERJON Matthieu authored
I added the django-environ package necessary to manage easily environmeent variables inside the application. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
I added a better configuration system in order to take into account for local development, staging or production deployments. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-
BERJON Matthieu authored
In order to follow good practices for a Django app development I reorganized the tree. Signed-off-by:
Matthieu Berjon <matthieu.berjon@inria.fr>
-