← Back to team overview

launchpad-dev team mailing list archive

Re: Feature flag images

 

On 14/05/12 23:28, Aaron Bentley wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12-05-14 02:09 AM, Huw Wilkins wrote:
I recently tried to feature flag images. My approach was that I
would have images with the same name inside a sub-directory to the
images folder, which would be named after the feature flag.
How were you using the feature flag?  Were you using it in a template,
or by querying it via Javascript, or checking it in Python?

I was going to use it in a template. I was going to modify the image path to include the feature flag name as a sub-directory.


I ran into a problem where the local development server would
expose the root image folder but none of its sub-directories. It
looks like this is fine in production however.
This doesn't sound like a general problem, because feature flags don't
directly affect images.  If we understand your implementation better,
we can probably suggest solutions.

Right, the issue actually doesn't have anything to do with feature flags. The issue is to do with why the local dev server does not serve sub-directories to the images folder.


Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+xCGwACgkQ0F+nu1YWqI0IygCfRMyd7Ju74HzWhxCTdLDmvpD/
X7cAnA0tG7Sk/+30auxA/UULvh67PMb2
=b9Rs
-----END PGP SIGNATURE-----

_______________________________________________
Mailing list: https://launchpad.net/~launchpad-dev
Post to     : launchpad-dev@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~launchpad-dev
More help   : https://help.launchpad.net/ListHelp



Follow ups

References