Coder Social home page Coder Social logo

circleci-public / circleci-demo-python-django Goto Github PK

View Code? Open in Web Editor NEW
115.0 32.0 298.0 129 KB

Example Django application running on CircleCI

Home Page: https://circleci.com/gh/CircleCI-Public/circleci-demo-python-django

License: Creative Commons Zero v1.0 Universal

Python 83.64% CSS 0.11% HTML 16.25%
circleci django python python3 testing demo demo-app example tutorial circleci-demos

circleci-demo-python-django's Introduction

CircleCI Demo Application: Python / Django

CircleCI

This is an example application showcasing how to build test and deploy a Django app on CircleCI 2.0.

You can follow along with this project by reading the documentation.

Features of the demo

  • regularly updated to use latest Python and Django (currently Python 3.6.4 and Django 2.0.1)
  • uses pipenv to install and manage dependencies and virtualenvs on CircleCI
  • shows usage of caching on CircleCI 2.0 to speed up builds. Makes use of Ppipfile.lock to invalidate cache if dependencies change
  • runs tests against a PostgreSQL database
  • store and upload test result in Junit XML format with unittest-xml-reporting to enable Test Summary and Insights on CircleCI

About the app: django_local_library

Tutorial "Local Library" website written in Django. This is based on the excellent MDN Django tutorial..


This web application creates an online catalog for a small local library, where users can browse available books and manage their accounts.

The main features that have currently been implemented are:

  • There are models for books, book copies, genre, language and authors.
  • Users can view list and detail information for books and authors.
  • Admin users can create and manage models. The admin has been optimised (the basic registration is present in admin.py, but commented out).
  • Librarians can renew reserved books

Local Library Model

License Information

Documentation (guides, references, and associated images) is licensed as Creative Commons Attribution-NonCommercial-ShareAlike CC BY-NC-SA. The full license can be found here, and the human-readable summary here.

Everything in this repository not covered above is licensed under the included CC0 license.

circleci-demo-python-django's People

Contributors

desagaz avatar drazisil avatar dsayling avatar dtran320 avatar f1ashhimself avatar hamishwillee avatar jkzilla avatar keybits avatar lokst avatar nramabad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

circleci-demo-python-django's Issues

less User Friendly

This cannot be termed much as an issue but the look and feel of the website can be bloomed by adding bootstrap. This way it will be more attractive as well.

test command not working

In current pipenv, pipenv run "python manage.py test" does not work.

$ pipenv run "python manage.py test"
Error: the command python manage.py test could not be found within PATH or Pipfile's [scripts].

It should be pipenv run python manage.py test .

Update dependencies for security vulnerabilities

pipfile.lock and requirements.txt need the following change applied:
django>=2.0.8

CVE-2018-14574
moderate severity
Vulnerable versions: >= 2.0, < 2.0.8
Patched version: 2.0.8
django.middleware.common.CommonMiddleware in Django 1.11.x before 1.11.15 and 2.0.x before 2.0.8 has an Open Redirect.

CVE-2018-6188
moderate severity
Vulnerable versions: >= 2.0.0, < 2.0.2
Patched version: 2.0.2
django.contrib.auth.forms.AuthenticationForm in Django 2.0 before 2.0.2, and 1.11.8 and 1.11.9, allows remote attackers to obtain potentially sensitive information by leveraging data exposure from the confirm_login_allowed() method, as demonstrated by discovering whether a user account is inactive.

Branch part of cache key

Hi, in .circleci/config.yml, you use {{ .Branch }} in addition to a checkusm of requirements.txt as part of the cache key for the python virtual environment. Could you explain the reasoning behind this? I see this is not the case for the nodejs demo repo with package.json

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.