Commit 76267383 authored by Bruno Meyer's avatar Bruno Meyer
Browse files

upload system

parent 06ac4ae0
The MIT License (MIT)
Copyright (c) 2016 Simple is Better Than Complex
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
# Simple File Upload Example
Example used in the blog post [How to Upload Files With Django](https://simpleisbetterthancomplex.com/tutorial/2016/08/01/how-to-upload-files-with-django.html)
## Running Locally
```bash
git clone https://github.com/sibtc/simple-file-upload.git
```
```bash
pip install -r requirements.txt
```
```bash
python manage.py migrate
```
```bash
python manage.py runserver
```
This diff is collapsed.
$(document).ready(function () {
setup_datatables();
});
function setup_datatables(){
$datatables = $('table.datatable');
if($datatables.length){
$datatables.DataTable({
"paging": false,
"info": false
});
}
}
\ No newline at end of file
html {
min-height: 100%;
position: relative;
}
body {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
padding-bottom: 170px;
padding-top: 60px;
}
#wrap-page {
min-height: 95%;
margin: 0;
padding: 0;
}
/* ============================================ TOP */
#top {
height: 200px;
background-color: #aaa;
border-bottom: 5px solid #666;
text-align: center;
}
h1#title {
color: #33d333;
font-size: 44px;
}
.navbar-text {
color: #afb0c5 !important;
}
/* ============================================ MESSAGES */
/* ============================================ CONTENT */
#content {
min-height: 100px;
padding: 2em 2em;
}
/* ============================================ FOOTER */
#footer {
background-color: #263646;
border-top: 4px solid #31c2e4;
margin-top: 40px;
padding-top: 20px;
padding-bottom: 80px;
color: #FFF;
}
#footer a {
color: #FFF;
font-size: 1.1em;
}
#footer a:hover {
color: #18BC9C;
}
#footer h3 {
padding-bottom: 4px;
border-bottom: 2px solid #FFF;
}
/* ============================================= REPORTS */
.sidebar{
transition: all 0.5s ease-in-out;
padding: 0;
height: 100%;
background-color: #2f4861;
}
.sidebar ul{ list-style:none; margin:0px; padding:0px; }
.sidebar li,
.sidebar li div {
display: flex;
}
.sidebar li a {
flex-grow: 1;
}
.sidebar .drop {
display: inline-block;
padding: 14px 18px;
flex-grow: 0;
}
.sidebar li a,
.sidebar li a.collapsed.active{
padding: 14px 0px 14px 20px;
color: #d3d5d8;
border-left: 0px solid #159e83;
text-decoration: none
}
.sidebar li li a {
padding: 8px auto;
}
.sidebar li a.active{background-color:#2c3e50;border-left:5px solid #159e83; transition: all 0.5s ease-in-out}
.sidebar li a:hover{color:#FFF !important; background-color: #132940}
.sidebar li a i{ padding-right:5px;}
.sidebar ul li .sub-menu li a{ position:relative}
.sidebar ul li .sub-menu li a:hover:after {
content: "";
position: absolute;
left: -5px;
top: 0;
width: 5px;
background-color: #111;
height: 100%;
}
.sidebar ul li .sub-menu li a:hover{ background-color:#222; padding-left:20px; transition: all 0.5s ease-in-out}
.sub-menu{ border-left:5px solid #4a7d73;}
.sidebar li a .nav-label,.sidebar li a .nav-label+span{ transition: all 0.5s ease-in-out}
.sidebar.fliph li a .nav-label,.sidebar.fliph li a .nav-label+span{ display:none;transition: all 0.5s ease-in-out}
.sidebar.fliph {
width: 42px;transition: all 0.5s ease-in-out;
}
.sidebar.fliph li{ position:relative}
.sidebar.fliph .sub-menu {
position: absolute;
left: 39px;
top: 0;
background-color: #222;
width: 150px;
z-index: 100;
}
/* ========================== DEFINICOES ESPECIAIS DE CADA AREA */
/* =========================== PAINEIS ============= */
/* =============================================== PANEL */
.panel-container {
display: -webkit-flex;
display: flex;
justify-content: space-between;
}
.data-panel {
padding: 10px 10px 20px;
margin: 10px;
border-bottom: 2px solid #3c3c3c;
font-size: 1.3em;
flex: 1;
box-shadow: 0 0 1px #DDD;
}
span.data {
margin: 0 1.5em;
}
.panel-line {
display: flex;
}
.data-panel .data-panel {
margin: 2px;
font-size: 1em;
border-bottom: 1px solid #3c3c3c;
box-shadow: none;
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment