Chrome says 'No manifest detected' when manifest.json is served by Django The Next CEO of Stack OverflowDjango serving static pages from SphinxServe a folder different from the static directory in DjangoDjango 1.7 - Serving static filesHow to serve static files with django that has hardcoded relative paths on Heroku/OpenShift/etc?django serving static files/ angularJS appIs it possible to load the progressive web app manifest file from authenticated site?Django - serving a SPA from static folderDjango URL patterns to serve external webpack bundleDjango - serving an Angular appAcquiring CSRF token from Django when index.html is served by nginix

How did scripture get the name bible?

What did the word "leisure" mean in late 18th Century usage?

How can a day be of 24 hours?

Do I need to write [sic] when including a quotation with a number less than 10 that isn't written out?

Identify and count spells (Distinctive events within each group)

What difference does it make matching a word with/without a trailing whitespace?

Does int main() need a declaration on C++?

Could a dragon use its wings to swim?

Finitely generated matrix groups whose eigenvalues are all algebraic

A hang glider, sudden unexpected lift to 25,000 feet altitude, what could do this?

Shortening a title without changing its meaning

pgfplots: How to draw a tangent graph below two others?

Calculate the Mean mean of two numbers

Car headlights in a world without electricity

Can a PhD from a non-TU9 German university become a professor in a TU9 university?

How can I replace x-axis labels with pre-determined symbols?

Masking layers by a vector polygon layer in QGIS

My boss doesn't want me to have a side project

Why did early computer designers eschew integers?

Upgrading From a 9 Speed Sora Derailleur?

Why did the Drakh emissary look so blurred in S04:E11 "Lines of Communication"?

My ex-girlfriend uses my Apple ID to login to her iPad, do I have to give her my Apple ID password to reset it?

Can this transistor (2N2222) take 6 V on emitter-base? Am I reading the datasheet incorrectly?

Prodigo = pro + ago?



Chrome says 'No manifest detected' when manifest.json is served by Django



The Next CEO of Stack OverflowDjango serving static pages from SphinxServe a folder different from the static directory in DjangoDjango 1.7 - Serving static filesHow to serve static files with django that has hardcoded relative paths on Heroku/OpenShift/etc?django serving static files/ angularJS appIs it possible to load the progressive web app manifest file from authenticated site?Django - serving a SPA from static folderDjango URL patterns to serve external webpack bundleDjango - serving an Angular appAcquiring CSRF token from Django when index.html is served by nginix










1















I have an SPA with Django on backend. I try to make it a progressive web app. I made a manifest.json and linked it in my index.html:



<link rel="manifest" href="/static/manifest.json">


Chrome can't detect it. My index.html is a Django template and is stored in templates directory and can't be accessed but by Django route /. Manifest.json is in static directory and served to front-end as a regular static file. I think this is the reason manifest can't be detected - index.html not being accessible. Am I right? If so, could you give me an advice as to how to make it work please?










share|improve this question
























  • What happens when you go to /static/manifest.json directly? Can you see the data?

    – Daniel Roseman
    Mar 7 at 19:52











  • Yes, I can access manifest.json in this way. Although, not index.html if that matters.

    – Andrew Lukjanov
    Mar 7 at 20:08












  • Not sure why you think you should be able to access index.html. It's a template, not a page. And the fact of the template being in a separate directory has no relevance at all.

    – Daniel Roseman
    Mar 7 at 20:11











  • I hope I didn't make myself obscure. I thought the fact index.html not being available on par with manifest was the reason manifest file can't be loaded.

    – Andrew Lukjanov
    Mar 7 at 20:17
















1















I have an SPA with Django on backend. I try to make it a progressive web app. I made a manifest.json and linked it in my index.html:



<link rel="manifest" href="/static/manifest.json">


Chrome can't detect it. My index.html is a Django template and is stored in templates directory and can't be accessed but by Django route /. Manifest.json is in static directory and served to front-end as a regular static file. I think this is the reason manifest can't be detected - index.html not being accessible. Am I right? If so, could you give me an advice as to how to make it work please?










share|improve this question
























  • What happens when you go to /static/manifest.json directly? Can you see the data?

    – Daniel Roseman
    Mar 7 at 19:52











  • Yes, I can access manifest.json in this way. Although, not index.html if that matters.

    – Andrew Lukjanov
    Mar 7 at 20:08












  • Not sure why you think you should be able to access index.html. It's a template, not a page. And the fact of the template being in a separate directory has no relevance at all.

    – Daniel Roseman
    Mar 7 at 20:11











  • I hope I didn't make myself obscure. I thought the fact index.html not being available on par with manifest was the reason manifest file can't be loaded.

    – Andrew Lukjanov
    Mar 7 at 20:17














1












1








1








I have an SPA with Django on backend. I try to make it a progressive web app. I made a manifest.json and linked it in my index.html:



<link rel="manifest" href="/static/manifest.json">


Chrome can't detect it. My index.html is a Django template and is stored in templates directory and can't be accessed but by Django route /. Manifest.json is in static directory and served to front-end as a regular static file. I think this is the reason manifest can't be detected - index.html not being accessible. Am I right? If so, could you give me an advice as to how to make it work please?










share|improve this question
















I have an SPA with Django on backend. I try to make it a progressive web app. I made a manifest.json and linked it in my index.html:



<link rel="manifest" href="/static/manifest.json">


Chrome can't detect it. My index.html is a Django template and is stored in templates directory and can't be accessed but by Django route /. Manifest.json is in static directory and served to front-end as a regular static file. I think this is the reason manifest can't be detected - index.html not being accessible. Am I right? If so, could you give me an advice as to how to make it work please?







django progressive-web-apps






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 8 at 9:39







Andrew Lukjanov

















asked Mar 7 at 19:35









Andrew LukjanovAndrew Lukjanov

981210




981210












  • What happens when you go to /static/manifest.json directly? Can you see the data?

    – Daniel Roseman
    Mar 7 at 19:52











  • Yes, I can access manifest.json in this way. Although, not index.html if that matters.

    – Andrew Lukjanov
    Mar 7 at 20:08












  • Not sure why you think you should be able to access index.html. It's a template, not a page. And the fact of the template being in a separate directory has no relevance at all.

    – Daniel Roseman
    Mar 7 at 20:11











  • I hope I didn't make myself obscure. I thought the fact index.html not being available on par with manifest was the reason manifest file can't be loaded.

    – Andrew Lukjanov
    Mar 7 at 20:17


















  • What happens when you go to /static/manifest.json directly? Can you see the data?

    – Daniel Roseman
    Mar 7 at 19:52











  • Yes, I can access manifest.json in this way. Although, not index.html if that matters.

    – Andrew Lukjanov
    Mar 7 at 20:08












  • Not sure why you think you should be able to access index.html. It's a template, not a page. And the fact of the template being in a separate directory has no relevance at all.

    – Daniel Roseman
    Mar 7 at 20:11











  • I hope I didn't make myself obscure. I thought the fact index.html not being available on par with manifest was the reason manifest file can't be loaded.

    – Andrew Lukjanov
    Mar 7 at 20:17

















What happens when you go to /static/manifest.json directly? Can you see the data?

– Daniel Roseman
Mar 7 at 19:52





What happens when you go to /static/manifest.json directly? Can you see the data?

– Daniel Roseman
Mar 7 at 19:52













Yes, I can access manifest.json in this way. Although, not index.html if that matters.

– Andrew Lukjanov
Mar 7 at 20:08






Yes, I can access manifest.json in this way. Although, not index.html if that matters.

– Andrew Lukjanov
Mar 7 at 20:08














Not sure why you think you should be able to access index.html. It's a template, not a page. And the fact of the template being in a separate directory has no relevance at all.

– Daniel Roseman
Mar 7 at 20:11





Not sure why you think you should be able to access index.html. It's a template, not a page. And the fact of the template being in a separate directory has no relevance at all.

– Daniel Roseman
Mar 7 at 20:11













I hope I didn't make myself obscure. I thought the fact index.html not being available on par with manifest was the reason manifest file can't be loaded.

– Andrew Lukjanov
Mar 7 at 20:17






I hope I didn't make myself obscure. I thought the fact index.html not being available on par with manifest was the reason manifest file can't be loaded.

– Andrew Lukjanov
Mar 7 at 20:17













1 Answer
1






active

oldest

votes


















0














Try



load static
% static "manifest.json" %


The syntax here is % static "path/relative/to/static/folder" %






share|improve this answer


















  • 1





    Writing % static "manifest.json" % results in "/static/manifest.json" so there's no difference.

    – Andrew Lukjanov
    Mar 7 at 20:10











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55051542%2fchrome-says-no-manifest-detected-when-manifest-json-is-served-by-django%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Try



load static
% static "manifest.json" %


The syntax here is % static "path/relative/to/static/folder" %






share|improve this answer


















  • 1





    Writing % static "manifest.json" % results in "/static/manifest.json" so there's no difference.

    – Andrew Lukjanov
    Mar 7 at 20:10















0














Try



load static
% static "manifest.json" %


The syntax here is % static "path/relative/to/static/folder" %






share|improve this answer


















  • 1





    Writing % static "manifest.json" % results in "/static/manifest.json" so there's no difference.

    – Andrew Lukjanov
    Mar 7 at 20:10













0












0








0







Try



load static
% static "manifest.json" %


The syntax here is % static "path/relative/to/static/folder" %






share|improve this answer













Try



load static
% static "manifest.json" %


The syntax here is % static "path/relative/to/static/folder" %







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 7 at 19:38









sun_jarasun_jara

808512




808512







  • 1





    Writing % static "manifest.json" % results in "/static/manifest.json" so there's no difference.

    – Andrew Lukjanov
    Mar 7 at 20:10












  • 1





    Writing % static "manifest.json" % results in "/static/manifest.json" so there's no difference.

    – Andrew Lukjanov
    Mar 7 at 20:10







1




1





Writing % static "manifest.json" % results in "/static/manifest.json" so there's no difference.

– Andrew Lukjanov
Mar 7 at 20:10





Writing % static "manifest.json" % results in "/static/manifest.json" so there's no difference.

– Andrew Lukjanov
Mar 7 at 20:10



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55051542%2fchrome-says-no-manifest-detected-when-manifest-json-is-served-by-django%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved