SELKS icon indicating copy to clipboard operation
SELKS copied to clipboard

Admin page

Open Koploseus opened this issue 5 years ago • 23 comments

Hello, why can't we access to the Django admin page ? to modify some text info?

Koploseus avatar Feb 06 '20 16:02 Koploseus

Could you explain a bit what do you need exactly?

pevma avatar Feb 07 '20 05:02 pevma

In the html code there is some django code {{admin somehting}} i want to access to the admin page to modify some text

Koploseus avatar Feb 07 '20 09:02 Koploseus

I was just helped by a colleague :

Try to overwrite the INSTALLED APPS settings in /etc/scirius/local_settings.py and add django.contrib.admin

pevma avatar Feb 07 '20 16:02 pevma

Thanks ! i am gonna text it Monday !

Koploseus avatar Feb 08 '20 16:02 Koploseus

Hey, there is no "installed app" section in this file :/ i have a lot of django stuff but not this section

Koploseus avatar Feb 10 '20 08:02 Koploseus

You can add that section then and try like that.

pevma avatar Feb 10 '20 11:02 pevma

Done, but can you give the me the full command or modification after adding the django.contrib.admin ?

Koploseus avatar Feb 10 '20 12:02 Koploseus

Then it should be to just point it to the url and add /admin/ at the end.

pevma avatar Feb 10 '20 13:02 pevma

image This is what i have added but now sciruis failed to start

Koploseus avatar Feb 10 '20 13:02 Koploseus

something like https://github.com/StamusNetworks/scirius/blob/5550ef4e9db12a0514727984b40c848b625d580c/scirius/settings.py#L34 but add the django.contrib.admin

pevma avatar Feb 11 '20 16:02 pevma

Ok but in the settings then not in local_setting.py

Koploseus avatar Feb 11 '20 17:02 Koploseus

Still crashing when i am adding the django.contrib.admin part

Koploseus avatar Feb 13 '20 15:02 Koploseus

Still the same problem :/

Koploseus avatar Feb 27 '20 09:02 Koploseus

What is the err message ?

pevma avatar Mar 02 '20 01:03 pevma

no error, just sciruis can't go up again

Koploseus avatar Mar 03 '20 09:03 Koploseus

Sorry - you mean , does not start or does not display anything or ?

pevma avatar Mar 03 '20 13:03 pevma

No display , just scirius can't start (only failed)

Koploseus avatar Mar 05 '20 08:03 Koploseus

ok - is there any err in the logs - /var/log/scirius...?

pevma avatar Mar 05 '20 14:03 pevma

Well not anymore since i have re installed the machine ahah. Can i have the exactly stuff ?

Koploseus avatar Mar 05 '20 14:03 Koploseus


/var/log/scirius-error.log
/var/log/scirius.log
/var/log/scirius/elasticsearch.log

pevma avatar Mar 05 '20 15:03 pevma

I was talking about adding the admin page :)

Showing these logs right now is useless since i have re installed all the machine

Koploseus avatar Mar 05 '20 15:03 Koploseus

I'm not sure the admin interface will allow you to change a template. You need to go directly in the templates directory to do that.

regit avatar Mar 05 '20 17:03 regit

Yeah but it's for modifying the text or else etc

Koploseus avatar Mar 05 '20 18:03 Koploseus