Giter Site home page Giter Site logo

sitture / trade-motors Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 24.0 4.9 MB

A Django-based website for http://globaltrademotors.com

License: MIT License

Python 9.09% Dockerfile 0.07% CSS 18.17% JavaScript 42.50% HTML 29.86% PHP 0.32%
django python website admin-panel docker django-application continuous-deployment sitture hacktoberfest

trade-motors's People

Contributors

angelbarrera92 avatar daringer avatar dependabot[bot] avatar haroon-sheikh avatar harveyrendell avatar joshessman avatar juliusmbu1 avatar parth-verma avatar rollerbrick avatar rsm23 avatar shacharoo avatar willboyd8 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

trade-motors's Issues

Fix 1 remaining deprecation warning

Following deprecation warning is shown when running:
i.e. python manage.py runserver

WARNINGS:
?: (1_8.W001) The standalone TEMPLATE_* settings were deprecated in Django 1.8 and the TEMPLATES dictionary takes precedence. You must put the values of the following settings into your default TEMPLATES dict: TEMPLATE_DEBUG.

Modify dockerfile to support running tests.

Currently the tests are run when building the image.

We should be able to use the docker run command to run the tests when needed:

E.g. docker run -d -p 8000:8000 trade-motors:0.1.0 python manage.py test

Fix 2 deprecation warnings

Following 2 warnings are shown when running tests:

/usr/local/lib/python2.7/site-packages/dynamic_preferences/registries.py:4: RemovedInDjango19Warning: django.utils.importlib will be removed in Django 1.9.
  from django.utils.importlib import import_module

/usr/local/lib/python2.7/site-packages/south/modelsinspector.py:20: RemovedInDjango19Warning: django.contrib.contenttypes.generic is deprecated and will be removed in Django 1.9. Its contents have been moved to the fields, forms, and admin submodules of django.contrib.contenttypes.
  from django.contrib.contenttypes import generic

Dockerize the Django app

Create a minimal Docker container to make development easier and toward continuous delivery.

  • Minimal Docker container (Maybe alpine)
  • docker-compose.yml which links to mysql container, i.e. App container connects to mysql container

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.