Comments (6)
Hello @app-generator ,
I am installing it as a custom admin theme using:pip install django-admin-voltSo where should I place my customized HTML file inside my Django app to override default templates?
@sridhar562345 were you able to replace the default HTML file? I'm trying to do the same thing.
Hi @dlopespenna and @sridhar562345
You can override or replace by adding your own file to a directory called admin
somewhere on your template search path (defined in settings.TEMPLATES
). For example, in my settings I have
TEMPLATES = [
{
'BACKEND': ...,
'DIRS': [ BASE_DIR \ 'templates' ],
},
]
and then I can override the dashboard default by adding my own templates/admin/index.html
.
The documentation doesn't provide much info on working with django-admin-volt
, but you can generally just follow the normal Django documentation on the admin page.
from django-volt-dashboard.
Hello @sridhar562345,
Try to edit the dashboard page. The link for the main dashboard is thin one apps/templates/home/index.html
https://github.com/app-generator/django-volt-dashboard/blob/master/apps/templates/home/index.html
from django-volt-dashboard.
Hello @app-generator ,
I am installing it as a custom admin theme using:
pip install django-admin-volt
So where should I place my customized HTML file inside my Django app to override default templates?
from django-volt-dashboard.
Hello @app-generator ,
I am installing it as a custom admin theme using:
pip install django-admin-voltSo where should I place my customized HTML file inside my Django app to override default templates?
@sridhar562345 were you able to replace the default HTML file?
I'm trying to do the same thing.
from django-volt-dashboard.
Hello @app-generator ,
I am installing it as a custom admin theme using:pip install django-admin-voltSo where should I place my customized HTML file inside my Django app to override default templates?
@sridhar562345 were you able to replace the default HTML file? I'm trying to do the same thing.
Hi @dlopespenna,
You will have to fork the repo and change the template according to your use case, that's the only way I got succeded.
I wasn't able to do this by replacing the templates directly in the Django templates.
from django-volt-dashboard.
Hello @app-generator ,
I am installing it as a custom admin theme using:pip install django-admin-voltSo where should I place my customized HTML file inside my Django app to override default templates?
@sridhar562345 were you able to replace the default HTML file? I'm trying to do the same thing.
Hi @dlopespenna,
You will have to fork the repo and change the template according to your use case, that's the only way I got succeded. I wasn't able to do this by replacing the templates directly in the Django templates.
I have copied templates and templatetags from the admin-volt in library to my app. I am facing issue related to templatetags. Apparently you have to add app in settings which is already in installed apps becuase it is my main app. I even renamed the templatetags py file to app name. Screenshot attached for reference.
Please guide me what I am doing wrong in this case.
from django-volt-dashboard.
Related Issues (11)
- circular import issue with python 3.9, django 3.0.3, mysql, anaconda environment. HOT 2
- Readme says use "flask run" to start the app and create users. Is it needed? HOT 3
- navbar dropdown profile stops working
- Gulp error HOT 4
- Could not parse the remainder HOT 2
- Change password not rendering css
- .env should be in .gitignore HOT 1
- how to change the date format of the datepicker component HOT 1
- Is is possible to get access to the admin panel http://127.0.0.1:8000/admin/ HOT 2
- how to change the language of datepicker?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-volt-dashboard.