<|start_filename|>server/templates/account/logout.html<|end_filename|>
{% templatetag openblock %} extends "account/base.html" {% templatetag closeblock %}

{% templatetag openblock %} load i18n {% templatetag closeblock %}

{% templatetag openblock %} block head_title {% templatetag closeblock %}
   {% templatetag openblock %} trans "Sign Out" {% templatetag closeblock %}
{% templatetag openblock %} endblock {% templatetag closeblock %}

{% templatetag openblock %} block content {% templatetag closeblock %}
<h1>{% templatetag openblock %} trans "Sign Out" {% templatetag closeblock %}</h1>

<p>{% templatetag openblock %} trans 'Are you sure you want to sign out?' {% templatetag closeblock %}</p>

<form method="post" action="{% templatetag openblock %} url 'account_logout' {% templatetag closeblock %}">
  {% templatetag openblock %} csrf_token {% templatetag closeblock %}
  {% templatetag openblock %} if redirect_field_value {% templatetag closeblock %}
  <input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}"/>
  {% templatetag openblock %} endif {% templatetag closeblock %}
  <button type="submit" class="btn btn-success btn-block">
      {% templatetag openblock %} trans 'Sign Out' {% templatetag closeblock %}
  </button>
</form>


{% templatetag openblock %} endblock {% templatetag closeblock %}

<|start_filename|>webapp/src/index.html<|end_filename|>
{% templatetag openblock %} load static {% templatetag closeblock %}
{% templatetag openblock %} comment {% templatetag closeblock %}
    =======================================================
    =======================================================

    THIS FILE IS GENERATED from {{ project_name }}/staticbase/src/index.html

    =======================================================
    =======================================================
{% templatetag openblock %} endcomment {% templatetag closeblock %}

<!DOCTYPE html>
<html class="no-js" lang="">
  <head>
    <meta charset="utf-8">
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{{ project_name }}</title>

    <link rel="apple-touch-icon" href="app/extras/apple-touch-icon.png">
    <!-- Place favicon.ico in the root directory -->

    <!-- build:css app/styles/vendor.css -->
    <!-- npm:css -->
    <!-- endnpm -->
    <!-- endbuild -->

    <!-- build:css app/styles/main.css -->
    <link rel="stylesheet" href="app/styles/main.css">
    <!-- endbuild -->
   
    {% templatetag openblock %} block media {% templatetag closeblock %}
    {% templatetag openblock %} endblock {% templatetag closeblock %}
    
    <!-- build:js app/scripts/vendor/modernizr.js -->
    <script src="/node_modules/modernizr/modernizr.js"></script>
    <!-- endbuild -->
    
  </head>
  <body>
    <!--[if lt IE 10]>
      <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
    <![endif]-->
    
    {% templatetag openblock %} block body {% templatetag closeblock %}
    <div class="container">
      <div class="header">
        <ul class="nav nav-pills pull-right">
          <li class="active"><a href="#">Home</a></li>
          <li><a href="#">About</a></li>
        </ul>
        <h3 class="text-muted">{{ project_name }}</h3>
      </div>

      <div class="jumbotron">
        <h1>'Allo, 'Allo!</h1>
        <p class="lead">Always a pleasure scaffolding your apps.</p>
        <p><a class="btn btn-lg btn-success" href="#">Splendid!</a></p>
      </div>

      <div class="row marketing">
        <div class="col-lg-6">
           <p>Template generated with <a href="https://github.com/dkarchmer/django-aws-template">django-aws-template</a><p>
        </div>
      </div>

      <div class="footer">
        <p>♥ django_aws_template </p>
      </div>
    </div>
    {% templatetag openblock %} endblock {% templatetag closeblock %}

    <!-- build:js app/scripts/vendor.js -->
    <!-- npm:js -->
    <script src="/node_modules/jquery/dist/jquery.js"></script>
    <!-- endnpm -->
    <!-- endbuild -->
    
    <!-- build:js app/scripts/plugins.js -->
    <script src="/node_modules/bootstrap-sass/assets/javascripts/bootstrap/affix.js"></script>
    <script src="/node_modules/bootstrap-sass/assets/javascripts/bootstrap/alert.js"></script>
    <script src="/node_modules/bootstrap-sass/assets/javascripts/bootstrap/dropdown.js"></script>
    <script src="/node_modules/bootstrap-sass/assets/javascripts/bootstrap/tooltip.js"></script>
    <script src="/node_modules/bootstrap-sass/assets/javascripts/bootstrap/modal.js"></script>
    <script src="/node_modules/bootstrap-sass/assets/javascripts/bootstrap/transition.js"></script>
    <script src="/node_modules/bootstrap-sass/assets/javascripts/bootstrap/button.js"></script>
    <script src="/node_modules/bootstrap-sass/assets/javascripts/bootstrap/popover.js"></script>
    <script src="/node_modules/bootstrap-sass/assets/javascripts/bootstrap/carousel.js"></script>
    <script src="/node_modules/bootstrap-sass/assets/javascripts/bootstrap/scrollspy.js"></script>
    <script src="/node_modules/bootstrap-sass/assets/javascripts/bootstrap/collapse.js"></script>
    <script src="/node_modules/bootstrap-sass/assets/javascripts/bootstrap/tab.js"></script>
    <!-- endbuild -->
    
    <!-- build:js app/scripts/main.js -->
    <script src="app/scripts/main.js"></script>
    <!-- endbuild -->
    
    {% templatetag openblock %} block js {% templatetag closeblock %}
    {% templatetag openblock %} endblock {% templatetag closeblock %}
  </body>
</html>


<|start_filename|>server/templates/account/signup.html<|end_filename|>
{% templatetag openblock %} extends "account/base.html" {% templatetag closeblock %}

{% templatetag openblock %} load crispy_forms_tags {% templatetag closeblock %}
{% templatetag openblock %} load i18n {% templatetag closeblock %}

{% templatetag openblock %} block head_title {% templatetag closeblock %}
    {% templatetag openblock %} trans "Sign Up" {% templatetag closeblock %}
{% templatetag openblock %} endblock {% templatetag closeblock %}

{% templatetag openblock %} block content {% templatetag closeblock %}

    <h1>{% templatetag openblock %} trans "Sign Up" {% templatetag closeblock %}</h1>

    <div class="row" style="margin-top: 50px">
        <div class="col-sm-8 col-sm-offset-2">

        {% templatetag openblock %} crispy form {% templatetag closeblock %}

        </div>
    </div>

{% templatetag openblock %} endblock {% templatetag closeblock %}

<|start_filename|>server/templates/account/login.html<|end_filename|>
{% templatetag openblock %} extends "account/base.html" {% templatetag closeblock %}

{% templatetag openblock %} load crispy_forms_tags {% templatetag closeblock %}
{% templatetag openblock %} load i18n {% templatetag closeblock %}
{% templatetag openblock %} load account {% templatetag closeblock %}

{% templatetag openblock %} block head_title {% templatetag closeblock %}
    {% templatetag openblock %} trans "Sign In" {% templatetag closeblock %}
{% templatetag openblock %} endblock {% templatetag closeblock %}

{% templatetag openblock %} block content {% templatetag closeblock %}

    <h1>{% templatetag openblock %} trans "Sign In" {% templatetag closeblock %}</h1>

    <p>
        {% templatetag openblock %} blocktrans {% templatetag closeblock %}
            If you have not created an account yet, then please
            <a href="{% templatetag openvariable %} signup_url {% templatetag closevariable %}">sign up</a> first.
        {% templatetag openblock %} endblocktrans {% templatetag closeblock %}
    </p>

    <div class="row" style="margin-top: 50px">
        <div class="col-sm-8 col-sm-offset-2">

        {% templatetag openblock %} crispy form {% templatetag closeblock %}

        </div>
    </div>

{% templatetag openblock %} endblock {% templatetag closeblock %}

<|start_filename|>.vscode/settings.json<|end_filename|>
{
    "python.pythonPath": "~/.virtualenv/django-aws-template/bin/python",
    "python.linting.pylintArgs": [
        "--load-plugins",
        "pylint_django"
    ],
    "python.testing.unittestEnabled": false,
    "python.testing.pytestEnabled": true,
    "python.testing.nosetestsEnabled": false,
    "python.testing.pytestArgs": [
        "--exitfirst",
        "--verbose",
        "--rootdir", "server/",
        "server/apps"
    ],
    "python.linting.pylintEnabled": true,
    "python.linting.enabled": true,
    "files.insertFinalNewline": true,
    "files.trimTrailingWhitespace": true,
}


<|start_filename|>server/templates/base.html<|end_filename|>
{% templatetag openblock %} extends "dist/webapp/index.html" {% templatetag closeblock %}
{% templatetag openblock %} load i18n {% templatetag closeblock %}
{% templatetag openblock %} load static {% templatetag closeblock %}


{% templatetag openblock %} block body {% templatetag closeblock %}
    <div class="container">
      <div class="header">
        {% templatetag openblock %} block navbar {% templatetag closeblock %}
        <ul class="nav nav-pills pull-right">
          <li><a href="/">Home</a></li>
          <li><a href="#">About</a></li>
          {% templatetag openblock %} if user.is_authenticated {% templatetag closeblock %}
              <li><a href="/account/logout">Sign Out</a></li>
          {% templatetag openblock %} else {% templatetag closeblock %}
              <li><a href="/account/login">Sign In</a></li>
          {% templatetag openblock %} endif {% templatetag closeblock %}
        </ul>
        <h3 class="text-muted">{{ project_name }}</h3>
        {% templatetag openblock %} endblock {% templatetag closeblock %}
      </div>

    {% templatetag openblock %} block messages {% templatetag closeblock %}
      {% templatetag openblock %} if messages {% templatetag closeblock %}
        {% templatetag openblock %} for message in messages {% templatetag closeblock %}
          <div class="alert alert-{% templatetag openvariable %} message.tags {% templatetag closevariable %}">  <!-- singular -->
            <a class="close" data-dismiss="alert">×</a>
            {% templatetag openvariable %} message|safe {% templatetag closevariable %}
          </div>
        {% templatetag openblock %} endfor {% templatetag closeblock %}
      {% templatetag openblock %} endif {% templatetag closeblock %}
    {% templatetag openblock %} endblock {% templatetag closeblock %}

    {% templatetag openblock %} block content {% templatetag closeblock %}
      <div class="jumbotron">
        <h1>'Allo, 'Allo!</h1>
        <p class="lead">Always a pleasure scaffolding your apps.</p>
        <p><a class="btn btn-lg btn-success" href="#">Splendid!</a></p>
      </div>

      <div class="row marketing">
        <div class="col-lg-6">
           <p>Template generated with <a href="https://github.com/dkarchmer/django-aws-template">django-aws-template</a><p>
        </div>
      </div>
    {% templatetag openblock %} endblock {% templatetag closeblock %}

      <div class="footer">
        <p>♥ django_aws_template </p>
      </div>
    </div>
{% templatetag openblock %} endblock {% templatetag closeblock %}




<|start_filename|>webapp/gulpfile.babel.js<|end_filename|>
// generated on 2016-03-23 using generator-webapp 2.0.0
import gulp from 'gulp';
import del from 'del';
import {stream as wiredep} from 'wiredep';
import replace from 'gulp-replace';
var gulpLoadPlugins = require('gulp-load-plugins');

const $ = gulpLoadPlugins();

const config = {
  htmlFiles: 'src/*.html',
  fontFiles: 'src/app/fonts/**/*',
  scssFiles: 'src/app/styles/*.scss',
  jsFiles: 'src/app/scripts/**/*.js',
  jsTestFiles: 'test/spec/**/*.js',
  otherFiles: 'src/app/*.*',
  dist: '../staticfiles/dist/webapp',
  otherDist: '../staticfiles',
  templates: '../server/templates/dist/webapp'
};

gulp.task('styles', () => {
  return gulp.src(config.scssFiles)
    .pipe($.plumber())
    .pipe($.sourcemaps.init())
    .pipe($.sass.sync({
      outputStyle: 'expanded',
      precision: 10,
      includePaths: ['.']
    }).on('error', $.sass.logError))
    .pipe($.autoprefixer({browsers: ['> 1%', 'last 2 versions', 'Firefox ESR']}))
    .pipe($.sourcemaps.write())
    .pipe(gulp.dest('.tmp/app/styles'));
});

gulp.task('scripts', () => {
  return gulp.src(config.jsFiles)
    .pipe($.plumber())
    .pipe($.sourcemaps.init())
    .pipe($.babel())
    .pipe($.sourcemaps.write('.'))
    .pipe(gulp.dest('.tmp/app/scripts'));
});

gulp.task('html', ['styles', 'scripts'], () => {
  return gulp.src(config.htmlFiles)
    .pipe($.useref({searchPath: ['.tmp', 'src', '.']}))
    .pipe($.if('*.js', $.uglify()))
    .pipe($.if('*.css', $.cssnano()))
    .pipe($.if('*.js', $.rev()))
    .pipe($.if('*.css', $.rev()))
    .pipe($.revReplace())
    .pipe($.if('*.html', $.htmlmin({collapseWhitespace: false})))
    .pipe(gulp.dest(config.dist))
    .pipe($.rev.manifest())
    .pipe(gulp.dest(config.dist));
});


gulp.task('fonts', () => {
  return gulp.src(require('npmfiles')('**/*.{eot,svg,ttf,woff,woff2}', function (err) {})
    .concat(config.fontFiles))
    .pipe(gulp.dest('.tmp/app/fonts'))
    .pipe(gulp.dest(config.dist + '/app/fonts'));
});

gulp.task('extras', () => {
  return gulp.src([
    'src/app/*.*'
  ], {
    dot: true
  }).pipe(gulp.dest(config.dist + '/app/extras'));
});

gulp.task('clean', del.bind(null, ['.tmp']));

// inject NPM components
gulp.task('wiredep', () => {
  gulp.src(config.scssFiles)
    .pipe(wiredep({
      ignorePath: /^(\.\.\/)+/
    }))
    .pipe(gulp.dest('src/app/styles'));

  gulp.src(config.htmlFiles)
    .pipe(wiredep({
      exclude: ['bootstrap-sass'],
      ignorePath: /^(\.\.\/)*\.\./
    }))
    .pipe(gulp.dest('src'));
});

gulp.task('other', () => {
  return gulp.src(config.otherFiles)
    .pipe(gulp.dest(config.otherDist));
});

gulp.task('build', ['html', 'fonts', 'extras'], () => {
  return gulp.src(config.dist + '/**/*').pipe($.size({title: 'build', gzip: true}));
});

gulp.task('templates', ['build'], () => {
  // Black Magic to convert all static references to use django's 'static' templatetags
  return gulp.src(config.dist + '/*.html')
        .pipe(replace(/href="app([/]\S*)"/g, 'href="{% static \'dist/webapp/app$1\' %}"'))
        .pipe(replace(/src="app([/]\S*)"/g, 'src="{% static \'dist/webapp/app$1\' %}"'))
        .pipe(gulp.dest(config.templates));
});

gulp.task('default', ['clean'], () => {
  gulp.start('templates');
});


<|start_filename|>server/Dockerfile<|end_filename|>
FROM python:3.9-slim-buster

ENV C_FORCE_ROOT 1

# create unprivileged user
RUN adduser --disabled-password --gecos '' myuser

# Install PostgreSQL dependencies
RUN apt-get update && \
    apt-get install -y postgresql-client libpq-dev supervisor netcat gcc

# Step 1: Install any Python packages
# ----------------------------------------

ENV PYTHONUNBUFFERED 1
RUN mkdir /var/app
WORKDIR  /var/app
COPY requirements /var/app/requirements
RUN pip install -U pip
RUN pip install -r requirements/docker.txt
RUN pip install gunicorn

# Step 2: Copy Django Code
# ----------------------------------------

COPY apps /var/app/apps
COPY config /var/app/config
COPY manage.py /var/app/manage.py
ADD runserver.sh /var/app/runserver.sh
ADD server-init.sh /var/app/server-init.sh
ADD runtest.sh /var/app/runtest.sh
RUN mkdir /var/app/logs
COPY locale /var/app/locale

CMD ["/var/app/runserver.sh"]


<|start_filename|>server/apps/authentication/templates/authentication/detailVCard.html<|end_filename|>
{% templatetag openblock %} extends "base.html" {% templatetag closeblock %}
{% templatetag openblock %} load static {% templatetag closeblock %}
{% templatetag openblock %} load i18n {% templatetag closeblock %}

{% templatetag openblock %} block content {% templatetag closeblock %}


{% templatetag openblock %} endblock  {% templatetag closeblock %}

