-
-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable possibility to use a static file as logo #355
Comments
@BMourguesFieldbox thank you for this suggestion, it's indeed interesting, I will think more about it. |
great solution, instead of from django docs FilePathField |
Good catch ! Didn't think of it, but sure thanks for the suggestion! |
It's better, because you have more control instead of classic |
@FraCata00 @BMourguesFieldbox to allow users to decide which directory to choose the file from, a conf setting must be added for setting the field path, but this would impact migrations. |
@fabiocaccamo the users would do a migration command, cause new field features.. |
@FraCata00 indeed, but that migration will be added to |
@fabiocaccamo why should there be conflicts? |
@FraCata00 I try to explain you step by step:
|
@fabiocaccamo but if you customize the path setting, should not run |
@FraCata00 should test it very well:
|
@fabiocaccamo yessir, after work i'll try it okay? |
@fabiocaccamo I confirm that no new migrations are crreated if the value in settings changed 👍🏻 |
@FraCata00 good news! (should write a couple of test case anyway) |
@fabiocaccamo @BMourguesFieldbox I tested personally yesterday evening in my branch to introduce this functionality N.B.: just add a custom
|
@FraCata00 I would add only a new |
@fabiocaccamo oh, maybe is a better solution |
…o render first the static logo (server-uploaded), after the other logo (client-uploaded) ref to fabiocaccamo#355
@fabiocaccamo sorry for the time *I'm in the office tomorrow morning 😆 ), check PR to solve this issue #378 |
…o render first the static logo (server-uploaded), after the other logo (client-uploaded) ref to fabiocaccamo#355
In the current version, the logo can be user uploaded.
However, this means that the app has to handle user uploaded documents and serve them.
When building the admin for business client, the logo will most likely be in static files, and I think it could save some complexity to have the possibility to use a CharField that would point to a static file
app/logo.png
for example.Then the template would be with a condition
Wdyt ?
Upvote & Fund
The text was updated successfully, but these errors were encountered: