Modifying the Default Django Login Page - html

I have a Django project that requires authentication, and the django.contrib.auth code has been working great so far. However, I'd like to edit the provided login page to say something like "MyProject administration" instead of "Django administration", and alter the colors in the CSS files a little bit. I'm having trouble finding where these files are located in the project.
Is there a way to edit the default files, or do I have to copy/rewrite all the functionality in my own files? I'd love to just tweak the defaults, if that's possible.

Yes! can directly modify the framework. the installation folder depends on what operating system you use and if you use virtualenv. you have to find this file in your pc and edit it: https://github.com/django/django/blob/master/django/contrib/admin/templates/admin/login.html
if you use virtualenv can found it in this directory "virtualenv/lib/python3.6/site-packages/django/contrib/admin/templates/admin"

Related

How to edit WHMCS files in computer (tpl files)

I bought this template but I don't know how to edit its files on my computer. It seems the file extensions are .tpl
How can I edit them like HTML files and then upload them to the server?
Whmcs (a webhost and billing manager software) uses the .tpl files to allow for customisations. There is no way to edit them like html, that I know of.
Tpl files basically need a bit of trial and error in modifying them.
The best way would be to install a trial version of Whmcs or if you have it already installed, perhaps install a second development version (you can apply for a free development license from whmcs).
Then use a txt editor like notepad++ (or another html editor software) to edit the tpl files - then upload to your test site - tweak and repeat as needed... yes, it's not user friendly - but that's whmcs for you.
The whmcs documentation gives a helping hand too.

Tailwind: Lost config file (how to recover/regenerate it)?

Summary: I took over managing a TailwindCSS website and don't have the tailwind.config.js file.
Problem: How do I rebuild the TailwindCSS for my site, without the tailwind.config.js file used to create it?
Question: is there a way to reverse generate/create the tailwind.config.js file used to generate the TailwindCSS used on my website?
Detail: I just joined a company where the person I replaced (who left the company), built our corporate website using TailwindCSS. The problem is, I can't find the config file used to build the Tailwind CSS bundle - preventing me from creating new html pages. How can I "reverse generate" from the existing CSS I have to recreate the build config.js file used for Tailwind?
What have I tried: I have tried loading up a single page of our corporate site at https://play.tailwindcss.com/ and iterating (manually) on what the config.js file might have included that generated our corporate website; however, the output is radically off.
As such, is there a technical way to "reverse generate" what the tailwind.config.js was that resulted in the CSS that generated my site?
I would start by setting up a sandbox to experiment with site rebuilding. Try building existing content with default Tailwind config, then compare the output with your live site. Using diff -ur should help you identify specific features that need to be configured. Adjust these config options and build again until the list of differences between your sandbox and the live site are minimal (date stamps or similar).
You might also try doing a grep -r for any config options you know would have been used. Keep in mind that the config file does not have to be called tailwind.config.js (see the docs for more). You might get lucky and find that the config was just named something unexpected.

VS Code change link for marketplace

I have before worked with Python extensions and configured PIP to point to our artifactory in my company, now I would like to do the same with VS Code.
I would like to be able to change the path of where VS Code downloads its extensions, to our own artifactory.
We want to control what users have which extensions, and don't want them to be able to download freely.
Can anyone please help me to which file or configuration I can make to point it to another site?
This is not possible at the moment. There is already an issue concerning this feature https://github.com/Microsoft/vscode/issues/21839 .
You can however disable the Gallery as mentioned by Thally by removing the "extensionsGallery" part from VSCode\resources\app\product.json.
And offer the vsix you want your users to have via any differnt path for selfservice or even just preinstall them under %USERPROFILE%\.vscode\extensions.
VSIX can be downloaded from the store for offline use as Mentioned by t3chb0t in his answer to how-to-install-vscode-extensions-offline
If you are still running into this, an updated answer is to use https://github.com/LOLINTERNETZ/vscodeoffline
So far it has worked well for us in a completely offline environment. The only gotcha that we have run into is that some extensions attempt to reach out and download additional things from github or elsewhere when first run which does not work if you are offline like in my situation. However, if you are online and simply want to control which extensions are available, I think this project will do the trick for you.
Anyway, by adding a product.json file to their user directory or setting env vars, your coworkers will be able to change the marketplace again: https://github.com/VSCodium/vscodium/pull/674

How to manage eqFTP in Brackets to download files from server to pc

I am new to Brackets and I cannot find a solution to my problem.
I have a website and it has a CMS with lots of templates and css in different folders.
I need to modify all of them, one by one, changing styles, adding content and markups and so on.
I just started using Brackets and just installed eqFTP in it following the guide and set everything.
Now how can I download, using eqFTP, all templates and css from the server to my folder project in my pc so I can modify them and upload them all from brackets?
For example: if my templates are in public_html/templates and css are in public_html/styles/ how can I tell to eqFTP to download them in folder project?
dev here.
You should create new connection and then connect to your server, you'll see file tree and you want to right click on folder/file you need to download and choose 'Download'. For files you can actually use doubleclick which will download and open that file.
Hope this helps.

HTML - How to run a file from the user pc?

I'm creating a little project in HTML and there's something that I would like to do.
Imagine that my HTML page is hosted, and you can download there some .ppt and .exe files and place to a specific folder.
Now, that's the problem. Considering that the files are in the right folder, I would like to run these files when the user select their respective options at the HTML page.
Does anyone know how to do it? Thanks :)
This isn't directly possible, for security reasons.
If you control that application or can install something on the user's system, you can associate a file type or URI handler with the application you wish to launch.