Code Monkey home page Code Monkey logo

lona-django-demo-project's Introduction

Lona Django Database Demo Project

This is a simple demo project with Lona, Picocss and Django as Database backend.

This project is intended as a simple starting point to create your own Web App with a full-blown database backend :-)

In this demo, we will use SQLite as database backend. But once you figure out how the Django database stuff works, you can still switch to something full-blown, eg. Postgres.

Try the Demo

$ make db
$ make super-user
$ make server

And then go to http://localhost:8080. Log in with the credentials you've just entered :-)

Make Changes

  • Your own Django models go into lona_project/database/models.py.
  • Migrations live here: lona_project/database/migrations/.
  • If you want it to be available in the Django Admin register your model in lona_project/_django/admin.py.
  • The Django manage.py can be used as follows: First source env/bin/activate, then run lona_project/manage.py.
  • Add your views to lona_project/views/.
  • Afterwards define routes to the views in lona_project/routes.py.
  • Want to change the Picocss menu? This resides in lona_project/settings.py.

How to host

I am just running the lona application server with systemd and serve it using my apache webserver. The database is just sqlite since I do not expect any heave load on this tooling. See examples in contrib/.

lona-django-demo-project's People

Contributors

smithchart avatar

Stargazers

Florian Scherf avatar

Watchers

 avatar

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.