-
Notifications
You must be signed in to change notification settings - Fork 153
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
PNI Scaffolding #1804
PNI Scaffolding #1804
Conversation
</footer> | ||
</body> | ||
</html> | ||
<script src="/_js/bg-main.compiled.js"></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
technically this is invalid HTML since nothing's allowed to be between </body></html>
or after </html>
- given the current state of browsers, could we just move it to before </body>
and mark it as defer
so that it doesn't actually load until after the DOM has been fully parsed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't matter, but sure.
<div class="creepometer mb-5"></div> | ||
|
||
<img src="{{mediaUrl}}{{product.image}}" width="500"/> | ||
<div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It feels like we've hit upon one of those few legitimate uses for <table>
here =P
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possibly!
@@ -16,3 +16,8 @@ def buyersguide_home(request): | |||
def product_view(request, productname): | |||
product = Product.objects.get(name__iexact=productname) | |||
return render(request, 'product_page.html', {'product': product, 'mediaUrl': settings.MEDIA_URL}) | |||
|
|||
|
|||
@login_required |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢 🇮🇹
@alanmoo – This is obviously a work in progress, but I figure it's better to land in chunks (and safe since it's non-visible to the public and fairly sandboxed).