Forums

contrib folder location help

How can I find my contrib folder so I can copy the admin index.html page to my templates folder for modifications? I used pythonanywhere and code 9 ide. Neither place have I found that folder.

Here is some background information. Another developer changed the default layout of the admin page. When logging in, I do not see the username or password text because they are in white color against a white background. Another issue is when I login, half the left side of the page is cut off that is used for navigation. So I am only able to read half the text. I checked the templates folder and there is no admin folder there. I am not sure if the default admin index page has been modified.

Any assistance would be greatly appreciated.

Just a thought. If I imported the project from github and the base_site.html or any other file was modified in the local repository. Would that be captured somehow when pushed?

Hi there, I'm assuming you're talking about customising the Django admin pages? I've never done that myself, but as I understand it, you override the admin pages by creating our own versions, and I would imagine the customised versions should be in your repository on github, and if you've cloned that onto PythonAnywhere, things should "just work". If they don't, it might be worth asking the person who did the customisations.

I think there might be a separate problem, which is that your CSS syling isn't being loaded properly. Maybe take a look at http://help.pythonanywhere.com/pages/DjangoStaticFiles

Thanks for the reply. I do not have the reference to get info on where the index file admin is using. The project is rather large and I feel it is like looking for a needle in a haystack.

Can you get any help from the people who developed the project?

No. It's one of those things that you kind of inherit and look at it wondering what is going on. I think once I find a way to determine where that index page is I will be good to go. I have already moved things around to better organize and use best practice.

What about searching in the repo for some representative text from the page you're looking for. Sometimes you have to try a few options, but you can usually narrow it down.

Weird. I copied and paste the href to a path for a bootstrap css file in the header on github and no results found for it. I went to a regular page outside of the admin login for a known page that works using the href to a bootstrap and was able to find the file. Does this mean the file is not part of the project and if so, how is it even reading that css?

What a confusing headache this is.

maybe try searching for some particular css modifier instead of the href?