brmc / django-octopus Goto Github PK
View Code? Open in Web Editor NEWA lightweight AJAX pull framework for django.
License: MIT License
A lightweight AJAX pull framework for django.
License: MIT License
It says:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
The new change will remove fragment_name
and fragment_suffix
on the views in favor of base_template
and ajax_template
. This will eliminate the need for proxy templates and make things cleaner. For example currently, a view might look like this:
SomeView(OctopusDetailView):
template_name = 'template.html'
fragment_name = 'fragment.html'
...
With the following templates:
base.html
{% block content %}
{% endblock content %}
template.html:
{% extends 'base.html' %}
{% include 'fragment.html' %}
fragment.html
<h1>somethingsomething</h1>
Under the new implementation, the same functionality would be achieved like this:
SomeView(OctopusDetailView):
template_name = 'template.html'
base_template = 'base.html'
...
With the following templates:
base.html
{% block fragment %}
{% endblock fragment %}
template.html:
{% extends base_template %}
{% block fragment %}
<h1>somethingsomething</h1>
{% endblock fragment %}
Note that base_template
is a context variable in the second template.html
, not a string
Any one have any thoughts?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.